09.02.2014 Views

Windows sysinternals

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

228 Part II Usage Guide<br />

Command-Line Syntax<br />

The following code block shows the full command-line syntax for ProcDump, and Table 7-1<br />

gives brief descriptions of each of the options. They are discussed in greater detail in the<br />

following sections.<br />

procdump [-c percent [-u]] [-s n] [-n count] [-m commit] [-h] [-e [1] [-b]] [-t]<br />

[-p counter threshold]<br />

[-ma | -mp] [-r] [-o] [-64]<br />

{ {processname | PID} [dumpfile] | -x {imagefile} {dumpfile} [arguments] }<br />

TABLE 7-1 ProcDump Command-Line Options<br />

Option<br />

Description<br />

Target Process and Dump File<br />

processname<br />

PID<br />

dumpfile<br />

Name of the target process. It must be a unique instance and already running.<br />

Process ID of the target process.<br />

Name of dump file. This is optional if the process is already running; it’s required<br />

if using –x.<br />

–x Starts the target process, using imagefile and command-line arguments.<br />

imagefile Name of executable file to launch.<br />

arguments Optional command-line arguments to pass to new process.<br />

Dump Criteria<br />

–c percent CPU usage above which to capture a dump.<br />

–u Used with –c to scale threshold against number of CPUs present.<br />

–s n Used with –c, sets duration of high CPU usage to trigger a dump.<br />

Used with –p, sets duration of a performance counter threshold exceeded to<br />

trigger a dump.<br />

Used with –n and no other dump criteria, dumps process every n seconds.<br />

–n count Used with –c, –s, or –p, specifies number of dumps to capture.<br />

–m commit Specifies commit charge limit in MB at which to capture a dump.<br />

–h Captures a dump when a hung window is detected.<br />

–e Captures a dump when an unhandled exception occurs. If followed with 1, it also<br />

captures a dump on a first-chance exception.<br />

–b Used with –e, treats breakpoints as exceptions. Otherwise, it ignores them.<br />

–t Captures a dump when the process terminates.<br />

–p counter Captures a dump when the named performance counter exceeds the threshold.<br />

threshold<br />

Dump File Options<br />

–ma<br />

–mp<br />

Include all process memory in the dump.<br />

“Miniplus”; creates the equivalent of a full dump but with large allocations<br />

omitted.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!