Memory leakage debugging with umdh

Source: Internet
Author: User
Tags tools and utilities

P The user-mode dump heap (umdh) utility works with the operating system to analyze windows heap allocations for a specific processp Umdh is released with NPMsP using umdh to find a user-mode memory leak1. preparing to use umdh 1. gflags/I Imagename+ Ust2. detecting increases in heap allocations with umdh 1. take several snapshots of heap memory 1. umdh-P: 124-F: log1.txt 2. umdh-P: 124-F: log2.txt 3. umdh-P: 124-F: log3.txt 2. compare log files recorded at different times to determine which allocations are growing1. umdh-V log1.txt log2.txt> logcompare1.txt 2. umdh-V log1.txt log3.txt> logcompare2.txt3. restore Default setting 1. gflags/I Imagename-Ust

List of tools and documentation

Microsoft debugging tools for Windows except des a number of debuggers and other tools. some of them are described in this documentation, and others are described elsewhere. the following list briefly describes each tool and where its documentation can be found.

Debuggers

Debugging tools for Windows clients des the following debuggers. These are described throughout this documentation, and are referred to by their individual names or collectively as "the debugger ":

Windbg (windbg.exe)

A user-mode and kernel-mode debugger with a graphical interface.

KD (kd.exe)

A kernel-mode debugger with a console interface.

CDB (cdb.exe)

A user-mode debugger with a console interface.

Ntsd (ntsd.exe)

A user-mode debugger with a console interface. CDB and ntsd are both ally identical. in this documentation, whenever a reference is made to "CDB", it applies to both CDB and ntsd. when these two debuggers differ, it is noted. (See CDB and ntsd for details .)

Additional tools and utilities

Debugging tools for Windows also nodes the following tools and utilities:

Logger (logger.exe and logexts. dll)

A tool and an extension DLL that record the function calland other actions of a program. logger is described in this documentation; see logger and logviewer.

Logviewer (logviewer.exe)

A tool that displays the logs created by logger. logviewer is described in this documentation; see logger and logviewer.

Adplus (autodump +, adplus. vbs)

A console-based Microsoft Visual BASIC script that can automatically create memory dump files and log files with debug output from one or more processes. adplus is described in this documentation; see adplus.

Dbgrpc (dbgrpc.exe)

A tool used to display Microsoft Remote Procedure Call (RPC) state information. dbgrpc is described in this documentation; see RPC debugging and using the dbgrpc tool.

Kdbgctrl (kernel debugging control, kdbgctrl.exe)

A tool that controls and configures the kernel debugging connection. kdbgctrl is described in this documentation; see using kdbgctrl.

Srcsrv (srcsrv. dll)

A source server that can be used to deliver source files while debugging. srcsrv is described in this documentation; see srcsrv.

Symsrv (symsrv. dll)

A symbol server that the debugger can use to connect to a symbol store. symsrv is described in this documentation; see symsrv.

Symstore (symstore.exe)

A tool used to create a symbol store. symsrv is described in this documentation; see using symstore.

Symproxy

A tool used to create a single HTTP symbol server on your network that all your debuggers can point. this has the benefit of pointing to multiple symbol servers (both internal and external) with a single symbol path, handling all authentication, and increasing performance via symbol caching. symproxy is described in this documentation; see symproxy.

Agestore (agestore.exe)

A tool that removes old entries in the downstream store of a symbol server or a source server. agestore is described in this documentation; see agestore.

DBH (dbh.exe)

A tool that displays information about the contents of a symbol file. DBH is described in this documentation; see DBH.

Pdbcopy (pdbcopy.exe)

A tool that removes private symbol information from a symbol file, and controls which public symbols are encoded in the file. pdbcopy is described in this documentation; see pdbcopy.

Dumpchk (dump file checking utility, dumpchk.exe)

A tool used to validate a memory dump file. dumpchk is described in this documentation; see dumpchk.

Dbgsrv (dbgsrv.exe)

A process server used for remote debugging. dbgsrv is described in this documentation; see process servers (user mode ).

Kdsrv (kdsrv.exe)

A kd connection server used for remote debugging. kdsrv is described in this documentation; see KD connection servers (kernel mode ).

Dbenuplx (dbenuplx.exe)

A repeater (small Proxy Server) used for remote debugging. dbgsrv is described in this documentation; see repeaters.

The remote tool (remote.exe)

A remoting tool that can be used to remotely control any console program, including kD, CDB, and ntsd. The remote tool is described in this documentation; see remote tool and remote debugging through remote.exe.

Gflags (Global flags Editor, gflags.exe)

A tool used to control registry keys and other settings. gflags is described in this documentation; see gflags.

The kill tool (kill.exe)

A tool used to terminate a process. The kill tool is described in this documentation; see kill tool.

The breakin tool (breakin.exe)

A tool used to cause a user-mode break to occur in a process. breakin.exe is not described in this documentation. UseBreakin /?Command for help with this tool.

The list tool (file list utility, list.exe)

List.exe is not described in this documentation. UseLIST /?Command for help with this tool.

Tlist (task list viewer, tlist.exe)

A tool used to list all running processes. tlist is described in this documentation; see tlist.

Rtlist (remote task list viewer, rtlist.exe)

A tool used to list running processes via a dbgsrv process server. rtlist is not described in this documentation. UseRtlist /?Command for help with this tool.

Umdh (User-mode dump heap utility, umdh.exe)

A tool used to analyze heap allocations. umdh is described in this documentation; see umdh.

Usbview (Universal Serial Bus viewer, usbview.exe)

A tool used to display the USB devices connected to a computer. usbview is described in this documentation; see usbview.

If you perform a custom install of debugging tools for Windows and select the SDK feature and all of its subfeatures, the libraries, headers, and samples used to build debugger extensions will be installed.

Documentation
"Debugging tools for Windows" (debugger. CHM)

This is the documentation you are currently reading. It is the central documentation for debugging tools for Windows.

"Debug help library" (dbghelp. CHM)

This documentation describes the dbghelp API and the imagehlp API, and also explains how to create your own symbol server. this is installed when you peform a custom install of debugging tools for Windows and select the sdk feature and its subfeatures.

Tools outside the debugging tools for Windows package

The following related tools are not part of the debugging tools for Windows package:

Dr. Watson (drwtsn32.exe)

A tool used for automatically creating dump files and sending error reports to Microsoft online crash analysis (OCA ). dr. watson is partially described in this documentation; see dr. watson. the other features of dr. watson are described in the Help file associated with drwtsn32.exe.

Build utility (build.exe)

A compiler and linker used to build debugger extensions and other programs. The build utility and its documentation can be found in the Windows Driver kit, and in earlier versions of the Windows DDK.

Binplace (binplace.exe)

A tool used to control symbol files for build products. binplace and its documentation can be found in the Windows Driver kit, and in earlier versions of the Windows DDK.

Application verifier (appverif.exe and ! Avrf)

A tool used to test user-mode applications. This tool consists of two components: the appverif.exe utility and! AvrfExtension command. All the features of application Verifier that are debugger-related are described in application verifier. The other features of application verifier are described in the Help file associated with appverif.exe.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.