EPM - Configure Procdump to Generate Dump Files from Crashing Processes
Objective
How do you configure a Procdump to generate dump files from a crashing processes?
Environment
10.5;10.6;10.7;10.8;10.9;10.10;11;11.2;11.3;11.4;11.5;20.7;21.1;21.2;21.3;21.4;21.5;21.6;21.7;21.8;21.9;21.10;21.11;21.12;22.1;22.2;22.3;22.4;22.5;22.6;22.8 EPM On-Premise Server (Legacy)
Procedure
In process CRASH scenarios you should first register the ProcDump utility as a "Postmortem Debugger" by calling "procdump -i -ma" and then just wait for the process to crash. ProcDump will automatically generate a full dump for the crashed process (notice the -ma switch in the command outlined below).
Instructions for configuring Procdump to generate dump files from crashing processes -
1. Download ProcDump utility from https://technet.microsoft.com/en-us/sysinternals/dd996900.aspx
2. Execute the following command as administrator on the endpoint (with the location of procdump local to the machine)
<Path>\procdump.exe -ma -i c:\Dumps
(The last parameter should be an existing local directory path. c:\dumps is just an example. )
That registers ProcDump as a "postmortem debugger".
3. Now you can work on the machine as usual.
4. Next time the crash happens ProcDump will automatically generate 1 or more DMP files in the given local folder.
(This remains in effect through reboots as well)
5. ZIP and send us the DMP files.
In process HANG scenarios registering ProcDump utility as a "Postmortem Debugger" is not necessary because a crash that triggers automatic dump doesn't happen. In a HANG scenario you should wait for the process to hang and then manually tell ProcDump to generate a full dump by calling "ProcDump -ma procname.exe". Example: "ProcDump -ma vf_agent.exe" (again notice the -ma switch).
NOTE: 'procname.exe' is replaced with the actual procedure name'
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\procname.exe]
NOTE: 'procname.exe' is replaced with the actual procedure name'
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)
This is basically the same as registering the postmortem debugger. When the procedure crashes Windows should automatically generate a memory dump. See https://msdn.microsoft.com/en-us/library/bb787181.aspx for more details.