How do I generate an application crash dump on the Vault server through Windows Error Reporting?
102
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 16:02 PM
Objective
How do I generate an application crash dump on the Vault server through Windows Error Reporting?
Environment
10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0;13.2 Privileged Access Manager (PAM, self-hosted) Vault
Procedure
There are two parts to enabling Memory DUMP in the Vault server
The first one is to enable DUMP from the Windows server and the second one is to configure the vault to create the DUMP in case the application crash
1. Enable the Vault Application to create the memory DUMP:
Configure the Vault to enable the crash dump release by setting DisableExceptionHandling=Yes in DBParm.ini:
The first one is to enable DUMP from the Windows server and the second one is to configure the vault to create the DUMP in case the application crash
1. Enable the Vault Application to create the memory DUMP:
Configure the Vault to enable the crash dump release by setting DisableExceptionHandling=Yes in DBParm.ini:
A) Open the vault configuration file 'dbparm.ini' (default location 'C:\Program Files\PrivateArk\Server\') and set the parameter 'DisableExceptionHandling=Yes',
B) Save the file and restart the vault service for changes to apply.
Pay attention that we only set this parameter when we can reproduce the issue.
In general setting it to "Yes" will cause other issues that we catch to crash.
2. Enable and Configure Application Crash Dump on the Operating System:
A) Make sure that Windows Error Reporting (WER) is enabled on the Vault server.
B) Update the registry to set up crash file location and collection type.
Always back up the registry before making changes to it.
- Go to the registry editor HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps
- Add a key (registry "folder") with the executable name, e.g. dbmain.exe
- Create a string key DumpFolder, set the value to some folder, e.g. c:\dumps
- Create a numeric key DumpType, and set the value to 2 for getting "Full dump". (Reference: https://docs.microsoft.com/en-us/windows/win32/wer/wer-settings)
NOTE: Sometimes, the LocalDumps key does not exist. If it does not, you can create it by right-clicking on windows error reporting and selecting 'create new key'. The values you create should be as follows:
1. String value DumpFolder with value C:\<dumplocation>. It is recommended you do not use root.
2. DWORD32 value DumpCount - 10 (decimal)
3. DWORD32 value DumpType - 2 (decimal) (2 is a full dump, 1 is minidump)
4. DWORD32 value CustomDumpFlags - 0 (decimal)
- Wait till the crash reoccurs
- Retrieve the application crash file from the location specified in the registry
- remove DisableExceptionHandling=Yes in DBParm.ini after that and restart the vault server service in order to save changes