Products: IMail Server Plus, IMail Server, IMail Server Premium

How To Enable Crash Dumps

« Go Back

Information

 
Description
Tech support has requested dump files for a service that keeps crashing, how do I set up my server for them and where will the crash dumps be located
Solution
On Windows server 2008 and newer, you will have to create some registry keys and values because this feature in Windows is not enabled by default.

Copy the following into a text document, save, and then rename it to a .reg file.  Then you just have to import the reg file and reboot the server.
 
Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
"DumpFolder"=hex(2):25,00,4c,00,4f,00,43,00,41,00,4c,00,41,00,50,00,50,00,44,\
  00,41,00,54,00,41,00,25,00,5c,00,43,00,72,00,61,00,73,00,68,00,44,00,75,00,\
  6d,00,70,00,73,00,00,00
"DumpCount"=dword:0000000a
"DumpType"=dword:00000002
 
NOTE: Because IMail is running as 32-bit processes, the location of the crash dump files on a 64-bit OS will be located in %WINDIR%\SysWOW64\Config\SystemProfile


If you would like to manually create the registry keys, proceed with the following explanation.  Tech Support will need Full Crash Dumps.
Open the registry and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps key. 
NOTE: If you only have HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting key, you will have to create the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps key.
Then you will need to create the following values
ValueDescriptionTypeDefault value
DumpFolderThe path where the dump files are to be stored. If you do not use the default path, then make sure that the folder contains ACLs that allow the crashing process to write data to the folder.
For service crashes, the dump is written to service specific profile folders depending on the service account used. For example, the profile folder for System services is %WINDIR%\System32\Config\SystemProfile. For Network and Local Services, the folder is %WINDIR%\ServiceProfiles.
REG_EXPAND_SZ%LOCALAPPDATA%\CrashDumps
DumpCountThe maximum number of dump files in the folder. When the maximum value is exceeded, the oldest dump file in the folder will be replaced with the new dump file.REG_DWORD10
DumpTypeSpecify one of the following dump types:
  • 0: Custom dump
  • 1: Mini dump
  • 2: Full dump
REG_DWORD1 (Default) - NOTE WE NEED THIS TO BE 2 TO FIND OUT WHAT THE ISSUE IS.
CustomDumpFlagsThe custom dump options to be used. This value is used only when DumpType is set to 0.
The options are a bitwise combination of the MINIDUMP_TYPE enumeration values.
REG_DWORDMiniDumpWithDataSegs | MiniDumpWithUnloadedModules | MiniDumpWithProcessThreadData.
 
https://msdn.microsoft.com/en-us/library/windows/desktop/bb787181%28v=vs.85%29.aspx
 
VersionAll Versions
Attachment 

 
Customer Service Softwaresalesforce.comHome | Product