Michael Bray
Michael Bray

Reputation: 15265

How can I determine which w3wp.exe process belongs to which web site?

I have an IIS6 web server that is hosting two application pools. Occasionally, one of the w3wp processes will spike the CPU for a while, and both app pools seem to suffer the consequences. I'm not sure which one is which, and without that information I don't know which application to blame.

How can I tell which w3wp belongs to which App Pool?

Upvotes: 28

Views: 21184

Answers (6)

There are two ways in which I prefer "task manager" version.

By task manager,

Add "command line" column as shown in the images.

enter image description here enter image description here

By PowerShell,

cd C:\Windows\System32\inetsrv\
.\appcmd list wp

enter image description here

Upvotes: 4

Little Larry Sellers
Little Larry Sellers

Reputation: 270

Goto cmd window then type c:\windows\system32\cscript c:\windows\system32\iisapp.vbs.

Now you will get the list of worker processes along with the app pool name.

Upvotes: 11

Sameer Alibhai
Sameer Alibhai

Reputation: 3178

For IIS7 you need to use APPCMD from %systemroot%\system32\inetsrv\ as an administrator

i.e.

%systemroot%\system32\inetsrv\appcmd list wp

See http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe/#HowToUse for more details

Upvotes: 38

RJ Russell
RJ Russell

Reputation: 133

You can also use Process Explorer from Sysinternals. Right click the columns at the top and select the "Command Line" column. In the Command Line column you will see the name of the web app included in the full command.

Upvotes: 1

JamesRyan
JamesRyan

Reputation: 221

You can also get this information from the IIS Debug Diagnostic Tool

Upvotes: 0

MrChrister
MrChrister

Reputation: 3605

lisapp.vbs from microsoft is for exactly that.

Upvotes: 4

Related Questions