Microsoft KB Archive/303021

= How to Generate a Memory Dump File When a Server Stops Responding (Hangs) =

Article ID: 303021

Article Last Modified on 3/1/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows NT Server 4.0 Standard Edition
 * Microsoft Windows NT Workstation 4.0 Developer Edition

-



This article was previously published under Q303021



SUMMARY
If a Windows NT 4.0-based or a Windows 2000-based server stops responding (hangs), you can create a memory dump file to troubleshoot the issue. When you create a memory dump file, it is similar to forcing a bug check or a Stop error on the server.

To perform the procedure that is described in this article, you must have second computer called Remote Debugger and a NULL modem cable.

NOTE: If you use Windows 2000, you can transfer the memory from the console. If you use this functionality, you do not have to use a Remote Debugger computer; however, Windows may not create a dump file for the computer each time it stops responding.

For additional information about how to create a memory dump file on a Windows 2000-based computer, click the article number below to view the article in the Microsoft Knowledge Base:

244139 Windows Feature Allows a Memory.dmp File to Be Generated with Keyboard



Procedure on the Server
Important Use one of the following procedures to prepare the server before the server hangs the next time.

Windows NT 4.0
Perform the following procedure on a Windows NT 4.0-based server that is not responding:  Right-click My Computer, and then click Properties. Click the Startup/Shutdown tab. Make sure that the Write Debugging Information check box is selected and that the file location is valid. Attach the NULL modem cable to the server's serial port.

NOTE: For the rest of these instructions, use the COM1 port; however, you also can use the COM2 port. Edit the Boot.ini file. To do so:  Copy the typical boot up entry, and then append it to the end of the Boot.ini file. Add the following line, and then mark the description as a DEBUG boot:

/debug /debugport=com1 /baudrate=57600

The Boot.ini file will look similar to the following text:

[boot loader]

timeout=30

default=multi(0)disk(0)rdisk(0)partition(1)\WINNT

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINNT=&quot;Windows NT Server Version 4.00&quot;

multi(0)disk(0)rdisk(0)partition(1)\WINNT=&quot;Windows NT Server Version 4.00 [VGA mode]&quot; /basevideo /sos

multi(0)disk(0)rdisk(0)partition(1)\WINNT=&quot;Windows NT Server Version 4.00 Debug&quot; /debug /debugport=com1 /baudrate=57600

</li></ol> </li> Restart the server, and then click Debug boot.</li></ol>

Windows 2000
Perform the following procedure on a Windows 2000-based server that is not responding: <ol> Right-click My Computer, and then click Properties.</li> Click the Advanced tab, and then click Startup and Recovery.</li> Click Complete Memory Dump, and then make sure the dump file memory location is valid.</li> Attach the NULL modem cable to the server's serial port.

NOTE: For the rest of these instructions, use the COM1 port; however, you also can use the COM2 port.</li> Edit the Boot.ini file. To do so: <ol style="list-style-type: lower-alpha;"> Copy the typical boot up entry, and then append it to the end of the Boot.ini file.</li> Add the following line, and then mark the description as a DEBUG boot:

/debug /debugport=com1 /baudrate=57600

The Boot.ini file will look similar to the following text:

[boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINNT [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINNT=&quot;Microsoft Windows 2000 Advanced Server&quot; /fastdetect multi(0)disk(0)rdisk(0)partition(1)\WINNT=&quot;Microsoft Windows 2000 Advanced Server&quot; /fastdetect /debug /debugport=com1 /baudrate=57600

</li></ol> </li> Restart the server, and then click Debug boot.</li></ol>

Windows NT 4.0 and Windows 2000
<ol> Attach the other end of the NULL modem cable to the Remote Debugger computer on its COM1 port.</li> Install the Debugging tools from the Windows CD.

The debugging tools are located in the Support\Tools folder on the Windows 2000 CD and in the Support\Debug\I386 folder on the Windows NT 4.0 CD. You can also install the Debugging tools from the Web. To do so, visit the following Microsoft Web site:

http://www.microsoft.com/whdc/default.mspx

</li> Run WinDBG.</li> On the File menu, click Kernel Debug.</li> Set the baud rate to 57600, set the COM port to 1, click OK, and then click No to save the workspace.</li> On the Debug menu, click Break.</li> <li>After you receive the message that states that you have pressed CTRL+BREAK, type .crash .</li> <li>On the File menu, click Exit, and then click No to save the workspace.</li> <li>After the dump file is created, use Dumpchk.exe from the Debugging tools to verify the integrity of the dump file.</li> <li>Send the dump file to a Microsoft Support Professional for analysis.</li></ol>

You may have to reduce the physical memory of the server to produce a valid dump file. When you initiate the dump file creation procedure, the contents of the 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. Physical RAM cannot be more than 2 gigabytes (GB) for a complete memory dump file creation procedure. Additionally, the page file on the partition on which the operating system is installed must be at least the size of the physical RAM plus 50 megabytes (MB). If you reach the 2-GB limit or if disk space issues occur on the partition on which the operating system is installed, you may have to reduce the physical RAM of the server. To do so, use the maxmem switch in the Boot.ini file.

For additional information about the MAXMEM switch, click the article number below to view the article in the Microsoft Knowledge Base:

108393 MAXMEM Option in Windows NT BOOT.INI File

Note If your server has a feature such as the Automatic System Restart (ASR) feature in Compaq computers, disable it. It can interrupt the dump process. On Compaq systems, ASR can be disabled in the BIOS. The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

<div class="references_section">