Map w3wp process to the correct Application Pool running in IIS on windows server 2003

Map w3wp process to the correct Application Pool running in IIS on windows server 2003

I came across a situation where I have multiple app pools running on my server and I needed to find that which web app was over-utilized.
My resolution was to kill the w3wp.exe from task manager. But the problem was I am not sure which w3wp should i kill.

I am sharing this on this wiki as I believe its  definitely important for admins.

To do this:

Each site in IIS6 is placed in an Application Pool. Each Application Pool is completely separated from other App Pools by running in its own process called w3wp.exe. Now, if we want to match up the process shown in Task Manager with the Application Pool set up in IIS

There are two ways :-
1.If there is a different user for each application pool, use Windows Task which describes each application pool belongs to the respective site as Task Manager display the user the process runs as.

But, en we have multiple application pools running as the same user??? its a problem right??

For example, if you keep to the default user but create multiple Application Pools, you may want to know which process belongs to which App Pool.

For that Microsoft has given the tool for this
2.Go to your Command Prompt and type in iisapp.vbs (the .vbs is optional) and you'll have an instant list of all the App Pool information you've always wanted to know. You may need to type cscript iisapp.vbs if CScript isn't your default WSH script host.

And done.. its easy right?

Leave a Comment
  • Please add 4 and 6 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Comments
  • Maheshkumar S Tiwari edited Revision 1. Comment: Added Tag and minor edit

Page 1 of 1 (1 items)
Wikis - Comment List
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Maheshkumar S Tiwari edited Revision 1. Comment: Added Tag and minor edit

Page 1 of 1 (1 items)