Debugging Tools for Windows |
Use the following commands to record and analyze the heap memory allocations in a running process. This analysis focuses on stack traces.
To find the PID of a running process, use Task Manager, Tasklist (Windows XP and later operating systems), or TList.
LogFile specifies the path (optional) and name of the file. If you specify an existing file, UMDH overwrites the file.
Note If a process was not started in Administrator mode, or attempts to write to “protected” paths, it will be denied.
MsgFile specifies the path (optional) and name of a text file. When you use this variable, UMDH writes the verbose messages to the specified file, instead of to stderr. If you specify an existing file, UMDH overwrites the file.
On Windows 2000, if UMDH is reporting errors finding the stack trace database, and you have enabled the Create user mode stack trace database option in GFlags, you might have a symbol file conflict. To resolve it, copy the DBG and PDB symbol files for the application to the same directory, and try again.
umdh -p:2230
umdh -p:2230 -f:dump_allocations.txt
umdh -p:2230 -f:c:\Log1.txt -v:c:\Msg1.txt
umdh -p:2230 -g -f:garbage.txt