Identify which w3wp.exe belongs to which Application Pool in IIS7

IIS7 Add comments

If Windows Task manager shows excessive resource usage (CPU or memory, mostly) for an IIS 7 worker process (w3wp.exe), it’s helpful to identify which of your application pools consumes the resources. I haven’t found a way to accomplish this in IIS Manager so I proceeded like so:

At the command prompt:

net start WAS

Note: WAS is the Windows Process Activation Service (btw, pretty silly service name, as it’s nigh impossible to google for WAS).

Run appcmd list wp:

C:\Windows\system32>%windir%/system32/inetsrv/appcmd list wp
WP “5716″ (applicationPool:DefaultAppPool)
WP “968″ (applicationPool:MyOtherAppPool)
WP “5836″ (applicationPool:TheThirdAppPool)

The number in number in the results is the process ID in the results is the Windows process ID (PID).

Now in Windows Task Manager, after having enable the PID column in View>Select Columns… you can identify the offending w3wp.exe by its PID.

image

If you have an easier way to do this, please post in the comments.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

2 Responses to “Identify which w3wp.exe belongs to which Application Pool in IIS7”

  1. Bill Staples Says:

    Sure, it’s easy in IIS Manager. Just click on the ‘Worker Process’ feature in IIS Manager (you have to be clicking on a server in the left hand pane tree view). This will also show you CPU and memory usage for a given AppPool.

  2. dirk Says:

    Thanks Bill, much easier indeed. I guess I was clicking the Application Pools in the left pane and couldn’t move to the worker processes from there.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in