4.2.7 Preparations for collecting data in the event of a failure
When a problem occurs, you might need to acquire a memory dump or user-mode process dump. In order to collect these dumps when problems arise, you must have already configured the system to output memory dumps and user-mode process dumps.
- Organization of this subsection
(1) Memory dump settings
-
From the Windows Control Panel, double-click System.
-
On the Advanced page, go to Startup and Recovery and click the Settings button.
-
Under Write debugging information, select Kernel memory dump and specify the output file.
- Note:
-
The size of a memory dump is a function of the actual size of the memory. The more physical memory that is installed, the larger a memory dump will be. Make sure there is sufficient disk space to accommodate a memory dump. For more information, see the OS documentation.
(2) User-mode process settings
You can use the following registry key to gain immediate access to user-mode process dumps in order to facilitate debugging when an application program terminates abnormally:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps
For this registry key, set the following registry values:
-
DumpFolder : REG_EXPAND_SZ <dump-output-folder>
(must have write permission for the output folder)
-
DumpCount : REG_DWORD <number-of-dumps-to-save>
-
DumpType : REG_DWORD 2
- Notes:
-
-
These registry settings enable output of user-mode process dump files for other application programs, as well as for JP1. Keep this in mind if you decide to enable output of user-mode process dumps.
-
Whenever a user-mode process dump is output, the amount of available disk space contracts. Make sure that the output folder you specify has sufficient disk space to accommodate the output of user-mode process dumps.
-