Hang dump generation using ADPlus

Hang dumps can be generated quite easily using ADPlus. ADPlus is a VB script that ships with Windows Debugging tools. It works in 2 modes viz. Hang Mode & Crash Mode. As of now lets worry about the hang mode...

Hang mode
: ADPlus immediately produces full memory dumps for all the processes that are specified on the command line after the script has completed. Each .dmp file that is created is put in a folder that contains the date/time stamp when ADPlus was run. Each file name contains the process name, the process ID, and the date/time stamp when ADPlus was run. While the process memory is being dumped to a file, the process is frozen. After the memory dump file has been created, the process is resumed by using a non-invasive attach/detach with the CDB debugger.

The following are the most frequently used switches.

-hang: This switch configures ADPlus to run in hang mode.

-pn: process name
The -pn switch is used to specify a process name that you want ADPlus to analyze. To specify more than one process, use multiple -pn process name switches.
For example: -pn process1.exe -pn process2.exe

-p: process ID
The -p switch is used to specify the process ID (PID) of a process that you want ADPlus to analyze. To specify more than one process, use multiple -p PID switches.
For example: -p 1896 -p 1702

For more details on ADPlus visit : http://support.microsoft.com/kb/286350

1 comments:

Amit said...

hang dump details