Azure 应用服务计划概述显示与 Application Insights 实时指标不同的 CPU 使用情况

Azure App Service Plan Overview shows different CPU usage than Application Insights Live Metrics

我有一个包含大量应用服务的 Azure 应用服务计划(P1V2 层)。每个应用服务都附加到一个 Application Insights 实例。

应用服务计划概述显示 CPU 使用情况摘要为 100%,但 Application Insights Live Metrics 显示非常低的 CPU 使用情况。

是否有关于值非常不同的解释,或者我做错了什么?

这些图片展示了我所看到的。 (请注意,第一个用时大约 1 小时,第二个用时超过 60 秒,但在我查看此内容的整个过程中,数字都是一样的。

关于两个图表的区别:

What is shown in 'Live Metrics Stream' is the CPU usage of w3wp process, whereas what is shown in App Service Plan level is the total Machine CPU usage.


对于 Application Insight 中的 100% CPU 使用率。您可以使用 诊断和解决问题 来查看问题所在。


您也可以查看 this issue 以找出正在占用的进程 CPU 请查找 total_cpu_time/user_cpu_time/privileged_cpu_time。 .