Reputation: 15265
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
Reputation: 20901
There are two ways in which I prefer "task manager" version.
By task manager,
Add "command line" column as shown in the images.
By PowerShell,
cd C:\Windows\System32\inetsrv\
.\appcmd list wp
Upvotes: 4
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
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
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
Reputation: 221
You can also get this information from the IIS Debug Diagnostic Tool
Upvotes: 0