Memory leaks can be a serious issue if your server has some web application running on it. A memory leak can slow down your web application after applying some dll on it. So, in this case, we can track memory leaks by creating a memory dump file with the very small tool i.e “DebugDiagx64“.
Supported Operating System
- Windows Server 2012
- Windows 8
- Windows Server 2012 R2
- Windows 8.1
- Windows 10
- Windows Server 2016
Track Memory Leaks and create dump with DebugDiagx64 Tool
- DebugDiagx64 tool comes with the option to track memory usage of a running process with the help of a small dll called LeakTrack.
- LeakTrack can attach to the process in question and monitor memory allocations and their related call stacks.
- Since the dll is injected into the process it can have a slight impact on performance.
DebugDiagx64 can be downloaded from Microsoft.
Once the download is finished, run DebugDiagx64 installer on your Windows system.
Check on terms and click next.
Do not change anything here, keep the default options and click next and install the software.
Steps to configure DebugDiag Tool
Go to start and find and open the newly installed software “DebugDiag 2 Collection“.
Keep the point on default “Crash” click next.
Select very first option if not selected and hit next.
Do not change anything in this step hit next.
Leave here default path the root directory of the windows.
Installation is done, click on finish.
You will see the below message once the installation is done, simply click on Yes to open Debug tool.
Steps to save Memory dump with DebugDiag tool
On my local system, I have sorted by Memory and found svchost.exe is taking high memory on the server.
Open the DebugDiag tool and click on “Virtual Bytes” which will sort processes on top which are consuming high memory. Here, we can see “svchost.exe” is consuming more memory.
Note : To check only web application consumption, click on “Web application pool“.
Right-click on the process and go for “Create Full Userdump“. You must see the message of dump successfully created.
You will find downloaded dumps in the “C:\Program Files\DebugDiag\Logs\Misc” directory.
This tool is very useful for IIS web application. We can take a memory dump of web applications that is causing high memory usage in the server. We can take IIS web application dump by sorting web application pool from Debug tool.