Select the product you need help with
How to generate a kernel dump file or a complete memory dump file in Windows Server 2003Article ID: 972110 - View products that this article applies to. On This PageINTRODUCTIONThis step-by-step article describes how to generate,
collect, check, and analyze kernel dump files and complete memory dump files
from a Windows Server 2003-based system. Note Ideally, you should only generate such dump files when a Microsoft Customer Support Services Engineer explicitly asks you to do this. Kernel dump file debugging or complete memory dump file debugging should be the last resort after all the standard troubleshooting methods are exhausted. If you must contact Microsoft Customer Support and Services (CSS), this article will help you obtain the specific information that is required for CSS to identify the problem. You must be logged on as an administrator or a member of the Administrators group to complete this procedure. If your computer is connected to a network, network policy settings may prevent you from completing this procedure. A manual kernel dump file or a complete memory dump file is useful when troubleshooting several issues because the process captures a record of system memory at the time of a crash. Warning Depending on the speed of the hard disk on which Windows is installed, dumping more than 2 gigabytes (GB) of memory may take a long time. When you start the dump file creation procedure, the contents of physical RAM are written to the paging file that is located on the partition on which the operating system is installed. When you restart the computer, the contents of that paging file are written to the dump file. Even in a best case scenario, where the dump file is configured to reside on another local hard disk, lots of data is read and written to the hard disks. This can cause a prolonged server outage. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 254649
(http://support.microsoft.com/kb/254649/
)
Overview of memory dump file options for Windows Vista, Windows Server 2008, Windows Server 2003, Windows XP, and Windows 2000
MORE INFORMATIONPaging fileTypically, for regular functionality of the Windows Server 2003-based system, you set the paging file size on the server. For more information about how to determine the appropriate paging file size, click the following article number to view the article in the Microsoft Knowledge Base:889654 Depending on what kind of memory dump file that you
are trying to collect, the minimum size of the paging file varies. Windows
Server 2003 has three options for memory dump files:
(http://support.microsoft.com/kb/889654/
)
How to determine the appropriate page file size for 64-bit versions of Windows Server 2003 or Windows XP
Step 1: Create a paging file
Partition sizeIn Windows Server 2003 or earlier versions of Windows, the partition on which the operating system is installed must be at least the size of how much physical RAM is installed plus 1 megabyte (MB). For Windows Server 2003, you may have to reduce the physical memory of the computer to produce a complete memory dump file that is valid. If the computer has more than 4 GB of physical memory or if there is insufficient disk space for the paging file on the partition on which the operating system is installed, you may have to reduce the computers' physical RAM. To reduce the physical memory on the computer, use the maxmem or burnmemory switch in the Boot.ini file as described in the following TechNet or MSDN-based articles:Boot.ini options reference: http://technet.microsoft.com/en-us/sysinternals/bb963892.aspx Boot parameters to manipulate memory:
(http://technet.microsoft.com/en-us/sysinternals/bb963892.aspx)
http://msdn.microsoft.com/en-us/library/ms791501.aspx For more information, click
the following article number to view the article in the Microsoft Knowledge
Base:
(http://msdn.microsoft.com/en-us/library/ms791501.aspx)
833721
(http://support.microsoft.com/kb/833721/
)
Available switch options for the Windows XP and the Windows Server 2003 Boot.ini files
Important This section, method, or task contains steps that tell you how to
modify the registry. However, serious problems might occur if you modify the
registry incorrectly. Therefore, make sure that you follow these steps
carefully. For added protection, back up the registry before you modify it.
Then, you can restore the registry if a problem occurs. For more information
about how to back up and restore the registry, click the following article
number to view the article in the Microsoft Knowledge Base: Note On a 32-bit version of Windows Server 2003 for which the Physical
Address Extension (PAE) is enabled, the paging file can extended beyond 4 GB
(4,096 MB). To determine whether PAE is enabled, follow these steps:
322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows
237740
(http://support.microsoft.com/kb/237740/
)
How to overcome the 4,095 MB paging file size limit in Windows
Step 2: Create a complete memory dump fileImportant This section, method, or task contains steps that tell you how to
modify the registry. However, serious problems might occur if you modify the
registry incorrectly. Therefore, make sure that you follow these steps
carefully. For added protection, back up the registry before you modify it.
Then, you can restore the registry if a problem occurs. For more information
about how to back up and restore the registry, click the following article
number to view the article in the Microsoft Knowledge Base: 322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows
Note If you want to enable the Complete memory dump option, manually set the CrashDumpEnabled registry entry under the following registry subkey to 1: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl 885117
(http://support.microsoft.com/kb/885117/
)
"Kernel Memory Dump" is displayed in Startup and Recovery, but a complete memory dump is performed in Windows 2000 or in Windows Server 2003
Disk spaceThere must be sufficient free space in the selected location to write the memory dump file. By default, the memory dump file is written to the %SystemRoot%\Memory.dmp file. If there is insufficient free space on the %SystemRoot% drive, you can redirect the dump file to another location that has sufficient free space.Step 3: (optional) Change the location where the dump file is writtenTo change the dump file path in the Startup and Recovery options on a Windows Server 2003-based computer, follow these steps:
For more information, click the following article number to view the article in the Microsoft Knowledge Base: 886429
(http://support.microsoft.com/kb/886429/
)
What to consider when you configure a new location for memory dump files in Windows Server 2003
Step 4: Install hotfixes to resolve memory dump file problemsHotfixes for Windows Server 2003 RTM-based computersThe following hotfixes may resolve problems that occur when you try to create a memory dump file in Windows Server 2003 RTM-based computers:
Hotfixes for Windows Server 2003 SP1The following hotfixes may resolve problems that occur when you try to create a memory dump file in Windows Server 2003 Service Pack 1-based computers:
Hotfixes for Windows Server 2003 SP2The following hotfixes may resolve problems that occur when you try to create a memory dump file in Windows Server 2003 Service Pack 2-based computers:
Methods to generate a manual memory dump fileThere are several methods to generate a manual kernel dump file or a complete memory dump file. These methods include using the NMI, keyboard (PS2/USB), remote kernel, or NotMyFault.exe tools.Step 5: Generate a manual memory dump by using the NotMyFault toolIf you can log on while the problem is occurring, you can use the Microsoft Sysinternals NotMyFault tool. To do this, follow these steps:
Step 6: Generate a manual memory dump by using the keyboardImportant This section, method, or task contains steps that tell you how to
modify the registry. However, serious problems might occur if you modify the
registry incorrectly. Therefore, make sure that you follow these steps
carefully. For added protection, back up the registry before you modify it.
Then, you can restore the registry if a problem occurs. For more information
about how to back up and restore the registry, click the following article
number to view the article in the Microsoft Knowledge Base: 322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows
Step 7: Generate a complete crash dump file or a kernel crash dump file by using an NMI on a Windows-based systemImportant This section, method, or task contains steps that tell you how to
modify the registry. However, serious problems might occur if you modify the
registry incorrectly. Therefore, make sure that you follow these steps
carefully. For added protection, back up the registry before you modify it.
Then, you can restore the registry if a problem occurs. For more information
about how to back up and restore the registry, click the following article
number to view the article in the Microsoft Knowledge Base:
For more information, click the following article number to view the article in
the Microsoft Knowledge Base: 322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows927069 If you try to collect an NMI dump file, you have to
create the NMICrashDump registry entry. To enable this feature, follow these
steps:
(http://support.microsoft.com/kb/927069/
)
How to generate a complete crash dump file or a kernel crash dump file by using an NMI on a Windows-based system
Step 8: Generate a manual memory dump by using a remote debuggerFor more information, click the following article number to view the article in the Microsoft Knowledge Base:303021 Note In WinDbg, you can use the .crash command. This command creates the memory dump file on the
destination computer. Or, if you want to copy the memory dump file by using a
null modem, a USB device, or an IEEE 1394 device, use the .dump command.
(http://support.microsoft.com/kb/303021/
)
How to generate a memory dump file when a server stops responding (hangs)
Step 9: Restart the serverYou must restart the server for the settings to take effect.BIOS-level server hardware recovery mechanismSome computers have a feature at the BIOS level to do hardware recovery. For example, a computer may have one of the following features:
Step 10: Test whether you can obtain a manual memory dump fileWarning It is critical that you test whether you can obtain a manual memory dump file. If a dump file is corrupted or truncated, the problem must occur again for you to obtain a good memory dump file.To test whether you can obtain a good dump file on a computer, use NotMyFault, or press the RIGHT CTRL key while you press the SCROLL LOCK key two times. After the server restarts, wait for disk activity to stop. The dump file should be the same size as physical memory. If you have problems obtaining a manual memory dump file, you may have to update the SCSI controller firmware and driver from the hardware vendor. Step 11: Obtain the stop error message that appears on a blue screen after a memory dump file is generatedYou can configure Windows Server 2003 to write an event log message that has the stop error message that appears on a blue screen. By default, Windows Server 2003 is set to write event log messages.Note
Event ID: 1001 Source: BugCheck Description: The computer has rebooted from a bugcheck. The bugcheck was : 0xc00000E2 (0xffffffffffffffff, 0x0000000000000001, 0x0000000000000000, 0x0000000000000000). A dump was saved in: C:\WINDOWS\MEMORY.DMP. How to use DumpChk.exe to check a memory dump fileFor more information about how to do this, click the following article number to view the article in the Microsoft Knowledge Base:156280
(http://support.microsoft.com/kb/156280/
)
How to use Dumpchk.exe to check a memory dump file
Step 12: Delete the test dump fileDelete the test dump file because a new memory dump file is generated when this problem next occurs.Step 13: Wait for the problem to reoccurWhen the issue occurs, you can collect the memory dump file by using the following tools or methods:
Step 14: Compress the Memory.dmp fileUse the WinZip tool to compress the Memory.dmp file.Step 15: Upload the compressed file to the secure file transfer siteAfter you compress the file, upload the file to the secure file transfer site.How to obtain a utility to automate the registry keys and paging files
307973
(http://support.microsoft.com/kb/307973/
)
How
to configure system failure and recovery options in Windows
How to read the memory dump files that Windows creates for debuggingTo download and install the latest version of the Windows debugging tools, visit the following Microsoft Web site:http://www.microsoft.com/whdc/devtools/debugging/default.mspx For more information,
click the following article number to view the article in the Microsoft
Knowledge Base:
(http://www.microsoft.com/whdc/devtools/debugging/default.mspx)
315263 For more information, click the following
article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/315263/
)
How
to read the small memory dump files that Windows creates for
debugging
824344 For more information about debugging in Windows, see
the following books:
(http://support.microsoft.com/kb/824344/
)
How to debug Windows services
How to verify Windows debug symbolsFor more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:311503
(http://support.microsoft.com/kb/311503/
)
Use the Microsoft Symbol Server to obtain debug symbol files
138258
(http://support.microsoft.com/kb/138258/
)
Windows NT debug symbol setup information
148659
(http://support.microsoft.com/kb/148659/
)
How to set up Windows NT debug symbols
148660
(http://support.microsoft.com/kb/148660/
)
How to verify Windows debug symbols
258205
(http://support.microsoft.com/kb/258205/
)
How to use Rebase to extract symbols for DrWtSn32.exe
296110
(http://support.microsoft.com/kb/296110/
)
How to install the debug symbols for use with Visual Studio products
319037
(http://support.microsoft.com/kb/319037/
)
How to use a symbol server with the Visual Studio .NET debugger
814411 The third-party products that this
article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the
performance or reliability of these products.
(http://support.microsoft.com/kb/814411/
)
Hotfix packages do not include debug symbol files
REFERENCESFor more information about this topic, visit the following Microsoft Web site: http://msdn.microsoft.com/en-us/library/cc266483.aspx
(http://msdn.microsoft.com/en-us/library/cc266483.aspx)
PropertiesArticle ID: 972110 - Last Review: May 31, 2012 - Revision: 5.0 APPLIES TO
| Article Translations
|


Back to the top








