Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hello @Udayasri Bhushan Thank you for your patience while we completed the investigation with our backend team.
To help address the questions raised regarding the periodic CPU spikes, we have summarized the findings below.
Q: What was causing the recurring CPU spikes observed approximately every 30 minutes?
A: The backend team identified recurring platform-level activities occurring at approximately 30-minute intervals on the worker instance hosting the App Service Plan. The primary processes observed during these intervals were:
- ImageManager statistics collection activity (ReportStats), which invokes:
- du --summarize --block-size=1 /mnt/lwasv2/images/layers
- Azure Security Monitoring Agent (ASM extension heartbeat)
- Linux memory management process (kswapd0)
These activities are part of normal platform operations and were found to be responsible for the short-lived CPU increases observed during the investigation.
Q: Were the CPU spikes caused by application traffic, scheduled jobs, or container activity?
A: No. We did not identify any abnormal application workload, API traffic, scheduled customer jobs, container restarts, or unexpected container activity that correlated with the observed CPU peaks.
The investigation indicates that the recurring pattern was associated with worker-level platform operations rather than application processing.
Q: Why did Azure Monitor show CPU spikes of approximately 23-24% while the detector analysis showed lower CPU values?
A: The backend confirmed that the difference is due to how the metrics are calculated.
The worker involved in the investigation has two CPU cores. Azure Monitor reports CPU utilization at the App Service Plan level, while the detector normalizes CPU consumption across the total available CPU capacity of the worker.
Because the host has two CPUs (total capacity of 200%), the detector divides the CPU percentage by the number of CPU cores. As a result:
- ~25% CPU shown in Azure Monitor
- Corresponds to ~12.5% CPU in the detector view
Therefore, the App Service Plan metric and the detector data are consistent with each other and reflect the same underlying activity. The difference does not indicate an unidentified workload or additional CPU-consuming process.
Q: Is this behavior expected?
A: Based on the investigation, the observed periodic CPU activity appears to be expected operational behavior associated with worker-level platform processes. The CPU increases were transient, short-lived, and were not associated with application performance degradation.
Additionally, after the worker instance was deallocated from the farm on August 19, the recurring pattern was no longer observed, further supporting the conclusion that the activity was related to the specific worker's platform operations rather than the application itself.
Q: Is any action required from our side?
A: At this time, no action is required.
However, if you continue to observe similar recurring patterns on newly assigned workers, or if you notice any impact on application performance, response times, latency, or availability, please let us know and we will be happy to investigate further.
We appreciate your cooperation throughout this investigation and please feel free to reach out if you have any additional questions.