There is the excellent Start Profiling
button in the SCM portal that works perfect for CPU.
Then there are some sources that refer to a Download GC Dump
button:
https://stackoverflow.com/a/27987593/647845
But that doesn't seem to be available anymore.
Then there is the Download memory dump
button.
But for now I can't figure out how/if I can see the Type / Refcount / Size stastistics that I'm used too.
What is the recommended way to look for memory leaks in a C# Azure Web App?
I managed to do the memory leak analysis by navigating to my App Service in Azure portal, selecting Diagnose and solve problems and afterwards the Diagnostic Tools tile. Now you should see a Collect Memory Dump tile where you can create your memory dump by configuring a blob storage to save it to.
Start with metrics such as page load times, HTTP request times, and Core Web Vitals – time to the first byte, first contentful paint. If you use Sematext Experience you'll see a number of other useful metrics for your web applications and websites there. However, metrics themselves are only a part of the whole picture.
One way to check for memory leak is to press and hold down your Windows key and tap the Pause/Break key to bring up System Properties. Click on the Performance tab and check System Resources for the percentage of free or available RAM.
Try using Kudu console. Go to https://[sitename].scm.azurewebsites.net/support Click Analyze -> Dignostics -> Settings. Make sure Memory dumps is checked And then Click Dignose Now. This will work only in Basic plan and above (Not available for free plan) After some time you will get the dump Open the downloaded file with Visual studio and select "Debug managed memory". You can then see the details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With