Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1507
  • Last Modified:

How do I collect a memory dump of the w3wp.exe process ?

we're trying to investigate on what's running the Win2008 server CPU with frequent spiking of over 90%.  How can I collect a memory dump of the w3wp.exe process ? Thank you.
  • 2
  • 2
2 Solutions
*** Hopeleonie ***IT ManagerCommented:
Use ProcDump v4.01:

Example: Write a dump of a process named 'outlook' when total system CPU usage exceeds 20% for 10 seconds:

C:\>procdump outlook -p "\Processor(_Total)\% Processor Time" 20

here you will find all the commands:
lapuccaAuthor Commented:
sorry, so do I issue this at command prompt?  Where does this output to?  Sorry, I'm not clear on the steps to do this.  Is this a batch file of some sort?   thanks.
Premkumar YogeswaranCommented:
Setup a Performance Alert and on the action page, have it run a program or batch script to generate the dump.

SysInternals VMMap has command line options for scripting, and may give you the information you need.

vmmap.exe -p w3wp.exe C:\memory.txt
The GUI is quite helpful too.

Refer this link:
*** Hopeleonie ***IT ManagerCommented:
Hi lapucca

Sorry if i was not clear. As described on this page ( http://technet.microsoft.com/en-us/sysinternals/dd996900 ) you will have to run ProcDump on the command-line.

Step by step instructions:

1) Create a folder that is called “dump” under C ( Note the folder can called as you want it...)
2) Download ProcDump to the folder “dump”

3) Unzip procdump.zip
4) Open the command prompt (cmd) as Administrator
5) type cd\ after click the key “enter”
6) type dump\procdump\procdump.exe -n 20 -s 10 -c 90 w3wp.exe c:\dump\procdump
7) Keep cmd open
8) Wait / Reproduce the problem
9) this will create a minidump in the dump folder.  

Note that ProcDump will capture a 32-bit dump of a 32-bit process when running on 64-bit Windows. User this option to create / overrides a 64-bit dump in the step 8.
dump\procdump\procdump.exe -64 -e name_of_your_process.exe c:\dump\procdump

lapuccaAuthor Commented:
Thank you.

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now