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

Posted on 2011-10-11
Last Modified: 2012-10-11
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.
Question by:lapucca
    LVL 18

    Expert Comment

    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:

    Author Comment

    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.
    LVL 17

    Assisted Solution

    by:Premkumar Yogeswaran
    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:
    LVL 18

    Accepted Solution

    Hi lapucca

    Sorry if i was not clear. As described on this page ( ) 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
    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


    Author Closing Comment

    Thank you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Are end users causing IT problems again?

    You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

    Introduction As businesses grow they expand within their original location and often spill over into nearby buildings when space becomes constrained or open up a branch office in another, distant area. If these new offices are outside of the …
    Recently, I was asked to look into SCCM 2007 by my employer, having a degree of experience of earlier versions of SMS and some previous SCCM knowledge I didn't expect the procedure to involve to much time. I read a number of guides concerning it…
    This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
    This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now