Azure App Service Memory is not adding up to total RAM

Golf League Tracker 6 Reputation points
2021-03-06T16:14:59.56+00:00

My site runs on the S1 service plan, which has 1.75 gigs of ram. I have only 1 app service, and the memory usage vs memory available does NOT add up to 1.75. About 400-500 meg are "missing", so I'm trying to understand where it went.

I've checked a number of sources for comparison:

1) App Service / Metrics, show "Average memory working set", which the max in the last 24 hours is ~800 meg.
2) This matches the total amount in the process explorer
3) However the "available memory" only shows ~350-400

I double checked the process explorer in Kudu and it matches what the Azure dashboard is reporting. I don't have ANY OTHER APPS running, so I'm at a loss how this memory is reported or where it's going

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

2 answers

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,361 Reputation points
    2021-03-09T02:14:35.727+00:00

    Thanks for asking question! If I have understood right you are using S1 Pricing Tier. This is the whole instance memory which you see at app service plan level. This includes all memory used by system processes + application's processes. And most of the time 50 % of memory might be consumed by the processes or services running for the operating system as that is just the base memory usage for processes running on the machine.

    Process explorer of KUDU shows the process memory for that sandbox which does not include system processes.

    So when you look only at app level, you see the memory consumed for that application.

    Also, RAM – Often referred to as physical memory and This is fixed on an instance.

    Refer to What is private bytes, virtual bytes, working set? for concepts are important to understand w.r.t memory.

    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 Memory Analysis on the left
    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.

    75620-demo5.png

    Hope this helps.


  2. Mahendar Potharaju 26 Reputation points
    2023-05-02T21:09:26.4466667+00:00

    My app service plan have with zero apps but why it is showing 63% memory usage