asp.net.netmemory-leakscrash-dumpsdebugdiag

DebugDiag: How to inject LeakTrack.dll manually


I have a crash dump from production to identify a memory leak. When I used DebugDiag (v2 update 2), I get a report

DebugDiag did not detect LeakTrack.dll loaded in w3wp.DMP, so no leak analysis was performed on this file. If you are troubleshooting a memory leak, please ensure LeakTrack.dll is injected into the target process using the DebugDiag tool before or generating new dumps

. I'm not able to find a way to inject LeakTrack.dll from DebugDiag UI or after going through the documentation. How do I inject LeakTrack.dll manually?


Solution

  • In the Debug Diag installation folder, there should be a DebugDiag.Collection.exe. If you run it, select Cancel, then switch to the processes tab. Choose your process and from the context menu, select "Monitor for leaks". This will inject the DLL.

    Monitor for leaks