Turn: easy-to-use dump capture tool-procdump

Source: Internet
Author: User

Procdump is a lightweight command line tool developed by the sysinternal team to monitor applications.ProgramAnd generate a crash dump file for developers and administrators to determine the cause of the problem. you can also use it as a dump generation tool in other scripts.

 

With it, you do not need to use the debug diag 1.1 on a 32-bit system or the adplus on a 64-bit system on the same server.

 

Problem description

====================

The task manager finds that the CPU usage of w3wp.exe is between 49% and 60%, which occasionally drops. when w3wp.exe has a CPU of more than 50% and can be maintained for three seconds, two groups of dump are captured. if debug diag or adplus is used, it is difficult because it needs to wait for the time and capture it manually. the easily captured dump does not contain the actions that cause exceptions.

 

Solution-savior procdump

====================

Procdump can easily help us cope with this situation, accelerate the action process, capture the correct data set. it monitors the CPU of the target process within the specified time and captures a memory snapshot (dump) at that point ).

For example:

Procdump-ma-C 50-S 3-N 2 5844 (process name or PID)-0 C: \ dumpfile
-MaGenerate full dump, which includes all the memory of the process. The default dump format includes thread and handle information.

-CWhen the CPU usage reaches this threshold, a dump file is generated.

-SThe CPU threshold must last for several seconds to capture the dump file.

-NThe number of dump files to be crawled before the tool exits.

-ODump File storage directory.

 

The daily command line monitors the CPU of w3wp.exe. When the CPU usage exceeds 50% and exceeds 3 seconds, a dump file is generated, which is repeated twice.

 

The following is an instance record of the command:

C: \ Users \ jaskis \ downloads \ procdump> Procdump-ma-C 50-S 3-N 2 5844-o c: \ dumpfile
Procdump V1.1-writes process dump files
Copyright (c) 2009 mark russinovich
Sysinternals-www.sysinternals.com
Process: w3wp.exe (5844)
CPU threshold: 50% of System
Duration threshold: 3 S
Number of dumps: 2
Hung window check: Disabled
Exception monitor: Disabled
Dump File: C: \ Users \ jaskis \ downloads \ procdump \ w3wp. dmp
Time CPU duration
[23: 48. 35] 59% 1 s
[23: 48. 36] CPU usage below threshold.
[23: 48. 37]54% 1 s
[23:48. 38 ] 55% 2 S
[23:48. 39] 61% 3 S
Process has hit spike threshold.
Writing dump file c: \ Users \ jaskis \ downloads \ procdump \ w3wp_080309_114839pm.dmp... dump written.
[23: 48. 44] 61% 1 s
[23: 48. 45] 59% 2 S
[23: 48. 46] 57% 3 S
Process has hit spike threshold.
Writing dump file c: \ Users \ jaskis \ downloads \ procdump \ w3wp_080309_114846pm.dmp...
Dump written.

 

Download path:

Procdump v3.01

Http://technet.microsoft.com/en-us/sysinternals/dd996900

 

Translated from:

Using procdump.exe to monitor w3wp.exe for CPU spikes

Http://blogs.iis.net/webtopics/archive/2009/08/07/using-procdump-exe-to-monitor-w3wp-exe-for-cpu-spikes.aspx

Procdump is a lightweight command line tool developed by the sysinternal team. It is mainly used to monitor abnormal CPU movements of applications and generate a crash dump file when exceptions occur, for developers and administrators to determine the cause of the problem. you can also use it as a dump generation tool in other scripts.

 

With it, you do not need to use the debug diag 1.1 on a 32-bit system or the adplus on a 64-bit system on the same server.

 

Problem description

====================

The task manager finds that the CPU usage of w3wp.exe is between 49% and 60%, which occasionally drops. when w3wp.exe has a CPU of more than 50% and can be maintained for three seconds, two groups of dump are captured. if debug diag or adplus is used, it is difficult because it needs to wait for the time and capture it manually. the easily captured dump does not contain the actions that cause exceptions.

 

Solution-savior procdump

====================

Procdump can easily help us cope with this situation, accelerate the action process, capture the correct data set. it monitors the CPU of the target process within the specified time and captures a memory snapshot (dump) at that point ).

For example:

Procdump-ma-C 50-S 3-N 2 5844 (process name or PID)-0 C: \ dumpfile
-MaGenerate full dump, which includes all the memory of the process. The default dump format includes thread and handle information.

-CWhen the CPU usage reaches this threshold, a dump file is generated.

-SThe CPU threshold must last for several seconds to capture the dump file.

-NThe number of dump files to be crawled before the tool exits.

-ODump File storage directory.

 

The daily command line monitors the CPU of w3wp.exe. When the CPU usage exceeds 50% and exceeds 3 seconds, a dump file is generated, which is repeated twice.

 

The following is an instance record of the command:

C: \ Users \ jaskis \ downloads \ procdump> Procdump-ma-C 50-S 3-N 2 5844-o c: \ dumpfile
Procdump V1.1-writes process dump files
Copyright (c) 2009 mark russinovich
Sysinternals-www.sysinternals.com
Process: w3wp.exe (5844)
CPU threshold: 50% of System
Duration threshold: 3 S
Number of dumps: 2
Hung window check: Disabled
Exception monitor: Disabled
Dump File: C: \ Users \ jaskis \ downloads \ procdump \ w3wp. dmp
Time CPU duration
[23: 48. 35] 59% 1 s
[23: 48. 36] CPU usage below threshold.
[23: 48. 37] 54% 1 s
[23:48. 38] 55% 2 S
[23:48. 39] 61% 3 S
Process has hit spike threshold.
Writing dump file c: \ Users \ jaskis \ downloads \ procdump \ w3wp_080309_114839pm.dmp... dump written.
[23: 48. 44] 61% 1 s
[23: 48. 45] 59% 2 S
[23: 48. 46] 57% 3 S
Process has hit spike threshold.
Writing dump file c: \ Users \ jaskis \ downloads \ procdump \ w3wp_080309_114846pm.dmp...
Dump written.

 

Download path:

Procdump v3.01

Http://technet.microsoft.com/en-us/sysinternals/dd996900

 

Translated from:

Using procdump.exe to monitor w3wp.exe for CPU spikes

Http://blogs.iis.net/webtopics/archive/2009/08/07/using-procdump-exe-to-monitor-w3wp-exe-for-cpu-spikes.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.