JSI Tip 3033. How to use Umdh.exe to find memory leaks?

Microsft Knowledge Base article Q268343, begins:

"The user-mode dump heap (UMDH) utility works with the operating system to analyze Windows heap allocations for a specific process. This utility and the other tools associated with it are targeted for Windows 2000, although you may be able to use it with Microsoft Windows NT 4.0 Service Pack 5.0 (SP5) or later. This article discusses how you can use UMDH to help locate memory leak problems. A self-extracting executable is include that contains the following tools:

 Umdh.exe     This utility is used to dump the heap allocation information for a process. 
 Gflags.exe     This utility sets the appropriate registry entries for the application that will be analyzed. The operating system looks at the registry entries to determine if an application's heap allocations will be tracked. 
 Tlist.exe     This application lists all of the processes running on a machine and all of their related process IDs. 
 Dhcmp.exe     This tool is used to compare two UMDH dumps to determine where a possible memory leak is occurring. 
 Dhcmpgui.zip     This tool also compares two UMDH logs but has a user interface to make it easier to retrieve information. The .zip file contains the Dhcmpgui.exe file and its source code. 



Please or Register to post comments.

IT/Dev Connections

Las Vegas
September 30th - October 4th

Paul ThurottYou'll have the opportunity to experience:
• The Microsoft
Technology Roadmap
• Office 365 Implementation
• Hyper-V Optimizing
• Windows 8 Deployment
and much more!

Come See Paul Thurrott & Rod Trent in Person!

Early Registration Now Open

Upcoming Training

Mastering SharePoint 2013: Succeeding, Not Just Surviving

Building on the success of the “Mastering SharePoint 2010” seminars, the presenters have updated the content to cover the latest and greatest SharePoint product: SharePoint 2013. While SharePoint 2013 is relatively new on the marketplace, the presenters have been working with SharePoint 2013 for well over a year, and have implemented it with a number of clients in production environments.

Register Now

Current Issue

May 2013 - The NameTranslate object is useful when you need to translate Active Directory object names between different formats, but it's awkward to use from PowerShell. Here's a PowerShell script that eliminates the awkwardness.

CURRENT ISSUE / ARCHIVE / SUBSCRIBE

Windows Forums

Get answers to questions, share tips, and engage with the Windows Community in our Forums.