ttugates
ttugates

Reputation: 6291

Azure App Service Memory Usage. Where to see full breakdown?

We recently ran out of memory on our sites under an Azure App Service Plan.

This threw a "Memory Resource Exhausted" error on all Apps.

Clicking "CPU Percentage and Memory Percentage" shows a spike to 82% in last 24 hours.

Navigating to "Metrics per Instance (App Service Plan)" I get a visual of all Web Apps.. Adding up ALL their Working Set in MBs added up to 22% at time of 82% App Service Plan usage.

This SO answer suggests viewing memory usage in Kudu.

Does Azure Dashboard or Kudu have any way to show a break down of specifically "App Service Plan" memory usage?

Upvotes: 34

Views: 43000

Answers (2)

Puneet Gupta
Puneet Gupta

Reputation: 2297

Watch a quick video to understand different aspects shown in this view https://www.youtube.com/watch?v=lWeutt1GvRs

  1. Go to the Diagnose and Solve Problems blade for your Azure App in the Azure Portal.
  2. Choose the Availability and Performance category
  3. Choose either Memory Analysis on the left or click on the Memory Usage card on the right
  4. This launches the Memory Analysis tool.

Under the Memory analysis tool:-

  • The very first thing shown is App Service Plan Density – This checks looks for overstuffed App Service Plans and beeps if it finds that you have too many apps in the same app service plan
  • An insight is shown if we detect or more apps consuming high memory
  • Private Bytes consumption for the current app
  • Physical memory in use for each instance allotted to the App Service Plan
  • And then Memory Drill down shows Per instance memory drilldown for each app and its associated process running on that instance.

Screenshot of Memory Drilldown view

App Level Breakdown

enter image description here

Upvotes: 31

taviandir
taviandir

Reputation: 91

A dated question, but I've found a view that shows this data that I believe did not exist at the time this question was posted.

Go to Diagnose and solve problems and search for "memory" in the input box labeled "Search App Service Diagnostics" at the top of the view. Choose Memory Drill Down in the results. There you will see a full breakdown of all the apps running per instance on your App Service Plan:

Screenshot 1: Search results for "Memory" in "Diagnose and solve problems" view Screenshot 1

Screenshot 2: Full breakdown of memory usages per app per instance on your App Service Plan Screenshot 2

Upvotes: 4

Related Questions