Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug Azure Web App memory leaks?

There is the excellent Start Profiling button in the SCM portal that works perfect for CPU.

enter image description here

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?

like image 886
Dirk Boer Avatar asked Mar 16 '16 08:03

Dirk Boer


People also ask

How do I check for a memory leak in Azure 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.

How do I find a memory leak on a Web application?

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.

How do you check if there are memory leaks?

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.


Video Answer


1 Answers

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 enter image description here Open the downloaded file with Visual studio and select "Debug managed memory". You can then see the details. enter image description here

like image 184
Gandhali Samant Avatar answered Sep 18 '22 08:09

Gandhali Samant