In this article I’ll show you how to configure a Windows Server 2008 for creating dump files for crushing applications. A dump file is a snapshot of the memory at the time of the crush. This file can be debugged so that the cause of the problem is discovered. A dump file has the .dmp extension.
By default, Windows is configured to catch and save dump files in %SystemRoot%\MEMORY.DMP and it’s set to overwrite any existing file. This means that only one dump file will be saved at any time. Also note that you can configure three types of dump: Small memory dump, Kernel memory dump and Complete memory dump. By default the write debugging information is set to kernel memory dump. You can change any of this settings by navigating to Control Panel/System and Security/System and clicking on “Advanced system settings”. Now click on the “Advanced” tab and press on the “Settings” button right under the “Startup and Recovery” section:
1. a REG_EXPAND_SZ key named DumpFolder
2. a REG_DWORD key named DumpCount with a decimal value (let’s say 5)
3. a REG_DWORD key named DumpType with a value from 0 to 2. Each value represents a dump type as follows:
0: Custom dump
1: Mini dump
2: Full dump
That’s it for this article folks, hope it will serve you well. If you think there is more to be said here, don’t hesitate to leave a comment. Enjoy your day!