3

I am looking to analyze memory leaks for the web app deployed in azure.

Referring to following urls

we were able to extract memory dump and analyze them. but since we were not able to inject the LeakTrack dll / enable memory leaks tracking when collecting the dump, we are getting message that leak analysis was not performed due to not injecting the dll on performing memory analysis.

please suggest how to find out memory leakages from analyzing the dump in this scenario.

1 Answers1

0

As you said, DebugDiag currently can't create reflected process dumps, and ProcDump doesn't have a way to inject the LeakTrack dll to track allocations. So, we could get around by working with both tools.

We can simply go to the Processes tab in DebugDiag, right click the process, and chose "Start Monitory for Leaks." We can do that by scripting DebugDiag and ProcDump to do the individual tasks we've set out for them.

Once we have the PID of the troubled process, we can use a script to inject the LeakTrack dll into the process. With the PID known and the script created, we can launch DebugDiag from a command line. Such as:

 C:\PROGRA~1\DEBUGD~1\DbgHost.exe -script "your LeakTrack dll path" -attach your PID

For more detail, you could refer to this article.

Here is also the reference case.

Joey Cai
  • 18,968
  • 1
  • 20
  • 30
  • please help me understand this. how can we access DebugDiag UI or program files folder of the tool when we do not have vm access such as in IaaS. – Durgaprasad Potnuru Mar 12 '18 at 09:17
  • I am not clear if you could access DebugDiag. You could refer to this [article](https://arcserve.zendesk.com/hc/en-us/articles/206136986-How-to-generate-a-Memory-Dump-for-a-VMWare-Virtual-Machine-when-the-machine-becomes-unresponsive-). – Joey Cai Mar 13 '18 at 09:55
  • yeah we cannot access I think. talked to MS people, looks like we cannot perform memory leak analysis with injected dll. the way to go seems to be analyzing dumps at two different times during the event, and see which items are constantly eating up the memory. – Durgaprasad Potnuru Mar 13 '18 at 13:03
  • 1
    Marking the best response as answer, though I feel it did not address problem that was reported completely. – Durgaprasad Potnuru Aug 01 '18 at 04:23