转自http://support.microsoft.com/kb/241215/
How to use the Userdump.exe tool to create a dump file
<script type="text/javascript">function loadTOCNode(){}</script>Article ID | : | 241215 |
Last Review | : | October 11, 2007 |
Revision | : | 7.5 |
This article was previously published under Q241215
On This Page
SUMMARY
<script type="text/javascript">loadTOCNode(1, 'summary');</script>
You can use the Userdump.exe tool to generate a user dump of a process that shuts down with an exception or that stops responding (hangs).
MORE INFORMATION
<script type="text/javascript">loadTOCNode(1, 'moreinformation');</script>To create a dump (.dmp) file for a process that shuts down with an exception
<script type="text/javascript">loadTOCNode(2, 'moreinformation');</script>1. | Run the Setup.exe program for your processor. Notes
| ||||||
2. | In Control Panel, double-click Process Dump. | ||||||
3. | On the Exception Monitoring tab, click New, add the appropriate program name to the Monitor list, and then click OK. For example, add a program name such as Lsass.exe, Winlogon.exe, Mtx.exe, or Dllhost.exe. | ||||||
4. | In the Monitor box, click the program name that you added in step 3, and then click Rules. | ||||||
5. | Click to select Custom Rules, select the type of error that you want to trigger for the program that you added in step 3 in the Custom rules list, and then click OK. For example, select the Access violation (c0000005) error type. |
To create a dump file for a hanging process
<script type="text/javascript">loadTOCNode(2, 'moreinformation');</script>1. | Run the Setup.exe program for your processor. Notes
| ||||||
2. | When the program stops responding, move to the version of Userdump.exe for your processor at the command prompt, and then type the following command:
userdump PID
Note In this command, PID is a placeholder for the process ID (PID) of the program that has stopped responding. To obtain the PID of the program, open Task Manager, and then click the Process tab. |
• | Process self-dumping. You can configure the Userdump.exe tool to automatically create a dump file for a certain program when that program encounters a certain kind of error, such as an exception handler block or a top-level unhandled exception filter. |
• | Hot-key process snapshot. You can associate a single keystroke with an image binary to trigger the Userdump.exe tool to create a dump file. |
• | Exception monitoring. The Userdump.exe tool can monitor programs for exceptions and can automatically generate dump files when certain exceptions occur. You can configure whether an exception triggers a dump file for each program by using the Process Dump utility. You can access the Process Dump utility from Control Panel. |
REFERENCES
<script type="text/javascript">loadTOCNode(1, 'references');</script>
To download version 8.1 of the Userdump.exe tool and its documentation, visit the following Microsoft Web site:
http://www.microsoft.com/downloads/details.aspx?FamilyID=E089CA41-6A87-40C8-BF69-28AC08570B7E&displaylang=en
(http://www.microsoft.com/downloads/details.aspx?FamilyID=E089CA41-6A87-40C8-BF69-28AC08570B7E&displaylang=en)
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
258833
(http://support.microsoft.com/kb/258833/) How to troubleshoot high CPU utilization of an MTS or COM+ process
To download the latest Debugging Tools for Windows (32-bit version), visit the following Microsoft Web site:
http://www.microsoft.com/whdc/devtools/ddk/default.mspx
(http://www.microsoft.com/whdc/devtools/ddk/default.mspx)
APPLIES TO
• | Microsoft Windows Server 2003, Standard x64 Edition |
• | Microsoft Windows Server 2003, Enterprise x64 Edition |
• | Microsoft Windows Server 2003, Standard Edition (32-bit x86) |
• | Microsoft Windows Server 2003, Enterprise Edition (32-bit x86) |
• | Microsoft Windows XP Professional x64 Edition |
• | Microsoft Windows XP Professional |
• | Microsoft Windows XP Home Edition |
• | Microsoft Windows 2000 Service Pack 1 |
• | Microsoft Windows 2000 Service Pack 2 |
• | Microsoft Windows 2000 Advanced Server |