Uncategorized

Find which application pool is hosting your application

If you have an IIS 6 with multiple application pools running, and you need to know which w3wp.exe process is actually hosting your application (suppose you have to capture a dump and don’t want to use the “-iis” switch with adplus, which will produce one dump file for every w3wp.exe, dllhost.exe and for inetinfo.exe), then follow these steps to find out:

  1. Using the IIS Manager, note down the Name of the App pool for your application
  2. In the command prompt, go to <WindowsFolder>System32
  3. Type the following command: iisapp.vbs /a <AppPoolName> (Use double quotes around the name if it has a space)
  4. The result will contain the Process ID for your application pool

The greatest mistake you can make is to be continually fearing you will make one. – Elbert Hubbard 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.