Azure Web App metrics - Memory working set does not show correct memory usage

Maxim Joyal 15 Reputation points
2023-10-18T06:10:55.02+00:00

We have a web app and there are some process running in the webapp, as we can see in below image that 9.8gb of memory is being utilized,

User's image

But in web app metrics there is no spike at all in metric "Average Memory working set/Memory working set", It just shows around 100-150mb of usage.

User's image

But in app service plan metric we can see the correct output.

User's image

Why the web app metric is not showing the memory being utilized by the process?

Azure AI Metrics Advisor
Azure AI Metrics Advisor
An Azure artificial intelligence analytics service that proactively monitors metrics and diagnoses issues.
82 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,085 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,020 questions
{count} votes

2 answers

Sort by: Most helpful
  1. ajkuma 27,771 Reputation points Microsoft Employee
    2023-10-18T13:21:19.65+00:00

    Thanks for posting this question.

    Based on my understanding of your issue description -- the Memory percentage seen on the App Service Plan (ASP) vs the memory utilized on the Web App level would be different due to system processes.

    Just to highlight, it’s the whole memory which you see at ASP level. This includes all the memory used by system processes and application processes.

    Furthermore, you may leverage Memory analysis tool from diagnostic blade to fetch drill-down view of

    --You may leverage App Service diagnostics from Azure Portal> Navigate to your App Service app in the Azure Portal. (screenshot below)
    -In the left navigation, click on Diagnose and solve problems - Review - “Availability and Performance” >> “Memory Analysis”

    --Memory analysis tool to fetch more insights on:  App Service Plan Density, Private Bytes, Physical memory, Memory drilldown/Per instance/app.

    --Average memory working set:  The average amount of memory used by the app [in megabytes (MiB)].

    --Memory working set:    The current amount of memory used by the app (in MiB).

    Reference: Monitor apps in Azure App Service

    Kindly let us know, I’ll follow up with you further.

    1 person found this answer helpful.

  2. Maxim Joyal 15 Reputation points
    2023-10-25T05:57:30.5933333+00:00

    From last 2 days the metric started to show proper memory utilization.

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.