Windows containers App Plan occupies 4Gb of memory by default

Artem Mikulich 61 Reputation points
2022-09-23T09:07:57.113+00:00

I have a P1V3 App Plan (for Windows containers) located in Central US. This instance is equipped with 8 Gb of RAM.

However when I check Memory Percentage metric, I see that 40% of the expected capacity are occupied and not available. I want to emphasize that I didn't deploy any container yet.

Could you please explain so much memory is lost?244216-screenshot-9-23-2022-12-08-35-pm.png

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

2 answers

Sort by: Most helpful
  1. brtrach-MSFT 15,791 Reputation points Microsoft Employee
    2022-09-24T05:07:54.14+00:00

    @Artem Mikulich We understand you have created a new App Service Container App and are interested in why you are seeing ~40% memory usage.

    We wanted to call out that there is a second site, sitename.scm.azurewebsites.net running on the instance. Also, there are overhead tasks as well that run to support your container. Both of these are running whether or not you have deployed an image to your container. If you deploy a second container to the image, it will also receive its own scm and overhead tasks.

    The amount that the scm site and overhead tasks consume will change over time so it will grow and shrink throughout the day. Beyond that, you could see if restarting the App Service relieves some memory pressure.

    I want to reassure you that what you are seeing is largely normal and does not appear to be alarming to me. You are using a PaaS product, which requires additional overhead resources to run some of the automated tasks and features that are not required in a traditional IaaS VM.

    Beyond that, Microsoft does not really dive deep into the App Service Architecture as this is a PaaS service and we try to offer a managed service as much as possible. For more general App Service Architecture information, we'd suggest you check out this document.

    Please let us know if you have further questions or concerns.

    1 person found this answer helpful.

  2. SUNOJ KUMAR YELURU 14,016 Reputation points MVP
    2022-09-23T11:55:10.073+00:00

    Hi @Artem Mikulich

    Thanks for using Q & A forum.

    I suggest you to check diagnostics tools that come with APP service and check application insights.
    Azure App Service diagnostics

    244303-screenshot-2022-09-23-195409.jpg

    -----

    If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.