Debug CPU utilization and memory utilization spikes among group of applications running

Dipali Chitroda 0 Reputation points
2024-03-28T17:05:06.37+00:00

cpu_spikes

I have around 8 applications running under a single App Service Plan. All of them run on Linux operating system.

I see some sudden spikes in CPU utilization and memory utilization for this app service plan. I want to debug the application which causes these sudden CPU spikes. However, I am not able to find a way to debug it. Can somebody guide me how to debug this issue. I have attached the screenshot of my CPU spikes.

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

1 answer

Sort by: Most helpful
  1. hossein jalilian 2,535 Reputation points
    2024-03-28T18:08:14.6966667+00:00

    Hello Dipali,

    Thanks for posting your question in the Microsoft Q&A forum.

    By implementing these strategies, you can efficiently diagnose and mitigate issues related to CPU and memory utilization:

    1. Implement comprehensive logging within your applications to capture relevant information during spikes, including timestamps and request details.
    2. Enable Application Insights for each application. This robust monitoring tool provides valuable telemetry data such as request rates, response times, and dependency calls, aiding in pinpointing performance bottlenecks.
    3. Leverage profiling tools like Perf, GDB, and Valgrind to analyze CPU and memory usage at the code level.
    4. Enable diagnostic logging for both your App Service Plan and individual applications.

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful