Why is Azure App Service autoscaling triggered even when container memory usage is low?

Doosan Pagooah 0 Reputation points
2025-07-04T14:56:20.1766667+00:00

2025-07-04 18_17_01-ssh___169.254.129.2

2025-07-04 18_12_16-

2025-07-04 18_07_23-

We observed that autoscaling was triggered on our App Service Plan when the memory usage for one of the instances (e.g., p1lsdlwk00128G) reached 87%, as reported in Azure Monitor. However, when we SSH'd into the container and checked memory usage using top, the process (dotnet) was using only ~32% memory.

This discrepancy raised confusion, as the container-level memory usage did not match the autoscale trigger thresholds. We understand that Azure autoscaling evaluates memory usage at the instance/App Service Plan level, not just the container.

Could you please confirm:

  1. Whether autoscale rules consider total instance memory or container-specific usage?
  2. Why top inside the container reports significantly lower memory than Azure Metrics?
  3. Is there a recommended way to correlate container memory metrics with autoscale behavior?

We want to ensure autoscaling actions are well aligned with actual application memory needs and avoid unnecessary instance scaling.

Thank you for your guidance.

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

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.