How to generate a process dump using procdump.exe
Objective
How to generate a process dump using procdump.exe
Environment
10.5;10.10;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5;12.6;12.7;13.0 Privileged Access Manager (PAM, self-hosted) Vault Server;Vault
Procedure
Download procdump.exe from Microsoft Technet:
https://technet.microsoft.com/en-us/sysinternals/dd996900.aspx
Create a folder on the machine you wish to capture a process dump from and place the exe in that folder
Run an elevated command prompt and CD to the directory you created to store procdump.exe:
procdump -e -w -ma <process name>
Leave command prompt open while you create the crash so procdump can pick up the event.
Note: "process name" will be the value of the Event Viewer error's "Faulting Application Name" field.
Dump file will be created in the location procdump.exe is stored.
Additional Notes:
In process HANG scenarios registering ProcDump utility as a "Postmortem Debugger" is not necessary because crash that triggers automatic dump doesn't happen. In HANG scenario you should wait for the process to hang and then manually tell ProcDump to generate full dump by calling "ProcDump -ma procname.exe". E.g. "ProcDump -ma vf_agent.exe" (again notice the -ma switch).
In process CRASH scenarios you should first register ProcDump utility as a "Postmortem Debugger" by calling "procdump -i -ma" and then just wait for the process to crash. ProcDump will automatically generate full dump for the crashed process (notice the -ma switch in the command)
If you clearly see the crash and "faulting" event in the event log but the ProcDump utility still doesn't generate DMP file then try the procedure below:
- Create the following registry key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting\LocalDumps\consent.exe]
- Create the following registry values:
"DumpCount" (type REG_DWORD). Value: 5 (note: the maximum number of dump files in the folder).
"DumpType" (type REG_DWORD). Value: 2 (note: full dump)
Additional Information
Details
Q:- Create a folder on the machine you wish to capture a process dump from and place the exe in that folder
- Run an elevated command prompt and CD to the directory you created to store procdump.exe
- Run: procdump -e -w -ma <process name>
- Leave command prompt open while you create the crash so procdump can pick up the event.
notes:
In process HANG scenarios registering ProcDump utility as a "Postmortem Debugger" is not necessary because crash that triggers automatic dump doesn't happen. In HANG scenario you should wait for the process to hang and then manually tell ProcDump to generate full dump by calling "ProcDump -ma procname.exe". E.g. "ProcDump -ma vf_agent.exe" (again notice the -ma switch).
In process CRASH scenarios you should first register ProcDump utility as a "Postmortem Debugger" by calling "procdump -i -ma" and then just wait for the process to crash. ProcDump will automatically generate full dump for the crashed process (notice the -ma switch in the command)
If you clearly see the crash and "faulting" event in the event log but the ProcDump utility still doesn't generate DMP file then try the procedure below:
1. Create the following registry key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting\LocalDumps\consent.exe]
2. Create the following registry values:
"DumpFolder" (type REG_EXPAND_SZ). Value: "c:\dumps" (note: must be existing local folder).
"DumpCount" (type REG_DWORD). Value: 5 (note: the maximum number of dump files in the folder).
"DumpType" (type REG_DWORD). Value: 2 (note: full dump)