tags:

views:

822

answers:

4

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?

+5  A: 

c:\windows\system32\cscript iisapp.vbs

Little Larry Sellers
Isn't it more appropriately...cscript c:\windows\system32\iisapp.vbs
BlackMael
@BlackMael: Yes. Thank you!
Dave Markle
+2  A: 

lisapp.vbs from microsoft is for exactly that.

MrChrister
A: 

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

JamesRyan
A: 

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.

RJ Russell
I just tried this, as I didn't have IISapp.vbs available.The command line for w3wp.exe is empty. So, no go.
Jørn Jensen