检测到适用于Azure App服务的kudu应用程序的CPU使用率高 [英] High CPU usage was detected for the kudu app for Azure App service

查看:45
本文介绍了检测到适用于Azure App服务的kudu应用程序的CPU使用率高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到我们的应用程序CPU使用率很高.在诊断程序中,我发现了以下消息.

I noticed that our app was experiencing high CPU usage. In the diagnostics I found the below message.

在您的应用服务计划中,只有4个实例中的1个实例的'DemoApiApp'的kudu应用检测到CPU使用率很高(39.1%).在此期间,受影响的实例的总体使用峰值为87.8%.kudu进程中较高的CPU使用率通常是由Web作业使用率引起的.受影响的实例名称:RD0003FF1C445A

High CPU usage was detected for the kudu app for 'DemoApiApp'(39.1%) on only one instance out of 4 instances in your app service plan. The affected instance had a peak overall usage of 87.8% during this time. High CPU usage in the kudu process is most often caused by web job usage. Affected instance name: RD0003FF1C445A

推荐答案

请注意,同一App Service计划中的应用共享相同的计算资源.要确定新应用程序是否具有必要的资源,您需要了解现有应用程序服务计划的容量以及新应用程序的预期负载.重载App Service计划可能会导致您的新应用程序和现有应用程序停机.请参考应用服务限制有关更多详细信息.

Note that, apps in the same App Service plan share the same compute resources. To determine whether the new app has the necessary resources, you need to understand the capacity of the existing App Service plan, and the expected load for the new app. Overloading an App Service plan can potentially cause downtime for your new and existing apps. Refer App Service limits for more details.

文档,将您的应用隔离到新的应用服务计划中:

As specified in the documentation, isolate your app into a new App Service plan when:

-该应用程序占用大量资源.

-The app is resource-intensive.

-您希望独立于现有计划的其他应用程序扩展应用程序.

-You want to scale the app independently from the other apps the existing plan.

-该应用需要位于不同地理区域的资源.

-The app needs resource in a different geographical region.

如果您的进程运行速度比预期的慢,或者HTTP请求的延迟高于正常水平,并且该进程的CPU使用率也很高,则可以远程分析您的进程并获取CPU采样调用堆栈来分析该进程活动和代码热路径.请参阅 Azure App中的远程分析支持服务以获取更多详细信息.

If your process is running slower than expected, or the latency of HTTP requests are higher than normal and the CPU usage of the process is also high, you can remotely profile your process and get the CPU sampling call stacks to analyze the process activity and code hot paths. Refer Remote Profiling support in Azure App Service for more details.

希望这会有所帮助.

这篇关于检测到适用于Azure App服务的kudu应用程序的CPU使用率高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆