How do I find which App Service is consuming a high percentage of CPU in the App Service Plan?

StingyJack 131 Reputation points
2020-02-08T16:39:15.183+00:00

There is no metric for app service CPU %, only CPU Time. Thats not very helpful when the App Service Plan sends an alert saying its using 90% CPU. How do I tell which of the app services in the plan is the one (or ones) that are running so hard?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,865 questions
{count} votes

5 answers

Sort by: Most helpful
  1. TrevorL 36 Reputation points
    2020-09-23T18:17:58.183+00:00

    The reason you can't find the CPU stats for apps within a service plan is that you can't access the information from the service plan page.
    To access it you need to select an app within the service plan that you want to investigate.
    open the service plan on the "overview" page
    click on the "apps/slots" link to display a list of the apps within this service plan
    click on one of the apps listed, anyone is fine
    when the app overview page is shown
    click on the "diagnose and solve problems" on left menu
    now click on "availability and performance"
    on the left menu you will see "high cpu analysis" click this
    it may show a drop down "one web app causing high cpu usage", click the arrow on the right to expand
    you will see several sections, the bottom one is "cpu drill down"
    you can then see usage by each app within the app service.
    you can float over the graph or over the list of apps to see the detail, you can also click on the list of apps to show/hide that apps info

    Why they have created this backwards way of getting the info is anyones guess

    Hope this helps
    T

    7 people found this answer helpful.

  2. Piers Lawson 26 Reputation points
    2020-03-25T12:27:09.583+00:00

    Maybe the poster would like to know of all the Apps within his App Service Plan, which is consuming the most CPU. For example at the moment I have an App Service Plan which is running at 100% CPU but I can't tell which App within the plan is causing it to run at such a high CPU.

    4 people found this answer helpful.

  3. ajkuma 22,401 Reputation points Microsoft Employee
    2020-02-10T17:26:20.6+00:00

    Welcome to Microsoft Q&A! Thanks for posting this question.

    Firstly, to highlight there are two metrics that reflect CPU usage:

    CPU Time: Useful for apps hosted in Free or Shared plans, because one of their quotas is defined in CPU minutes used by the app.

    So, if you’re using Free or Share plans you will see this metric.

    CPU percentage: Useful for apps hosted in Basic, Standard, and Premium plans, because they can be scaled out. CPU percentage is a good indication of the overall usage across all instances.

    On the higher App Service Plan (noted above), from “Diagnosed and solve problems” You can analyze CPU usage of your App on all instances and see a breakdown of usage of all apps on your server farm & also drill down CPU utilization on each instance serving your app and identify the app and the corresponding process causing High CPU in percentage.

    Kindly let us know if this helps or you need further assistance on this topic we would be more than happy assist you.
    2791-webapp-cpu-analysis.jpg

    2 people found this answer helpful.

  4. Kooragayalu, Shashwathi 6 Reputation points
    2020-07-02T14:52:38.733+00:00

    Hi,

    I do not find the tabs which you have mentioned.
    I need to know which app is causing the high CPU percentage for that app service plan .
    Please find the screenshot. And help me solve this issue.
    Thanks in advance
    11136-cpuissue.png

    1 person found this answer helpful.

  5. Puneet Gupta 96 Reputation points Microsoft Employee
    2020-08-05T15:19:33.227+00:00

    We started recording some troubleshooting videos that can guide customers on troubleshooting common issues on Azure App Service. To troubleshoot high CPU - watch this video - https://youtu.be/hxB0JaQk2Z8 and subscribe to the channel - https://www.youtube.com/channel/UCWPqqOAHkb7XgPk1YdAm8tQ

    1 person found this answer helpful.
    0 comments No comments