Matt Roberts
Matt Roberts

Reputation: 26887

Troubleshooting (managed) memory leaks on an azure web site

There's a lovely blog post here that tells you how to go about looking for memory leaks in an azure web site..

Trouble is, things have moved on, and azure doesn't support giving you a gcdump as described in that post (The URL fro grabbing a gcdump is not valid).

What I want to do is just to work out where a potential memory leak is happening - I've tried:

  1. Using Kudu, I can grab a minidump (I can also grab a minidump WITH memory heap as described here). I've done this but I can't work out what to do with it, if I open it in VS 2015 then I get a rather useless "MiniDump File Summary", like this: enter image description here
  2. I can "profile" the web app, with the "start profiling" button in the Kudu process explorer.. I can then open the resulting diagsession file in VS, but it only tracks CPU utilization, not memory heap information.

Help!

Upvotes: 3

Views: 633

Answers (1)

Zain Rizvi
Zain Rizvi

Reputation: 24636

You can get your memory dumps automatically analyzed by the Web App Support Portal, which could save you some debugging time.

Go to https://<yoursitename>.scm.azurewebsites.net/support and click "Analyze" -> "Diagnose Now" and wait for the analysis to complete (it takes a couple minutes)

Upvotes: 3

Related Questions