This blog emphasizes the process of gathering profiler traces for application hosted on App Service that is experiencing slowness. It also provides guidance on how to review these collected traces to pinpoint the root cause and take steps towards resolving it.
- Access the Azure Portal and navigate to the desired App Service.
- Navigate to "Diagnose and Solve Problems" -> "Diagnostic Tools"
- Choose "Collect .NET Profiler Trace" option.
- Configure the trace options to gather data from the specific application instance, including thread details.
- Reproduce the issue at step 2.
- Access and examine the generated report.
- In the demo application, a delay of approximately 20 seconds was observed. Refer to the browser network traces provided below.
- Analyze the profiler traces to pinpoint the cause of the reported delay.
- After examining the demo app's code, it was evident that a deliberate 20-second delay was introduced in the Privacy method within the Home Controller.
- Note: Default profiler log collection time is 60 seconds and it is possible to increase the default profiling duration by setting an application setting IIS_PROFILING_TIMEOUT_IN_SECONDS with a maximum value of 900 (i.e. 15 minutes).
Updated Jul 08, 2024
Version 5.0Kunal_KV
Microsoft
Joined July 05, 2024
Apps on Azure Blog
Follow this blog board to get notified when there's new activity