Why is Azure App Service autoscaling triggered even when container memory usage is low?
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:
- Whether autoscale rules consider total instance memory or container-specific usage?
- Why
top
inside the container reports significantly lower memory than Azure Metrics? - 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.