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

Michael Bray picture Michael Bray · Mar 18, 2009 · Viewed 18.6k times · Source

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?

Answer

Sameer Alibhai picture Sameer Alibhai · Feb 24, 2012

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