【问题标题】:Can ApplicationInsights telemetry help diagnose high CPU usage issues?ApplicationInsights 遥测能否帮助诊断高 CPU 使用率问题?
【发布时间】:2020-11-07 11:07:55
【问题描述】:

在工作中,我们有一个应用程序会在很长一段时间(> 1 小时)内周期性地处于高 CPU 使用率的状态。该应用程序托管在 IIS 下,并与其他应用程序一起运行。此应用程序使用 ASP.net MVC 5 在 .NET 4.5 中构建。

我们已将 Application Insights 添加到在此服务器下运行的大多数应用程序中,查看过去的事件我可以看到 CPU 长时间处于峰值状态。如果我比较来自其他 AppInsights 实例的遥测数据,在同一时期几乎没有 CPU 使用率。由此,我可以假设我找到了导致 CPU 使用率高的 Web 应用程序。

接下来,我想确定哪些请求会触发密集的 CPU 使用。 我可以看到在事件之前发送的请求,但在这些峰值期间没有任何运行。

ApplicationInsights 有什么可以帮助我查明导致 CPU 使用率高的请求吗?

【问题讨论】:

    标签: .net asp.net-mvc azure iis azure-application-insights


    【解决方案1】:

    Find and diagnose performance issues with Azure Application Insights

    具体来说,请查看“profiler”,它可以让您对自己的表现有更多的了解。

    【讨论】:

    • 感谢分析器的建议。不幸的是,它没有为我们过去的 CPU 峰值事件正确设置,但我会确保正确设置它。
    • 对于想知道的人来说,在 IIS 下本地运行时,没有对探查器的内置支持。我发现这篇文章提到了如何设置它:unhandled.wordpress.com/2018/02/01/…。可以在 Github 上找到用于探查器代理的软件包:github.com/CawaMS/AIProfiler-Standalone
    猜你喜欢
    • 2020-02-05
    • 2019-09-18
    • 2011-05-10
    • 2010-09-22
    • 1970-01-01
    • 1970-01-01
    • 2021-08-01
    相关资源
    最近更新 更多