Mike Skutta Blog

Sitecore How-To: Identify which w3wp.exe Belongs to which Application Pool

2020-11-10
George West and Mike Skutta

Overview

This is an article in a series of Sitecore how-to articles. These articles are meant to be quick guides to accomplish various tasks within Sitecore. The how-to articles have proven to be very helpful internally at One North https://www.onenorth.com. These articles assume working Sitecore knowledge. I just wanted to share the articles with the community. Hopefully you find them helpful.

How-To

When debugging with Visual Studio, you need to attach to a w3wp process. If you have multiple Application Pools running, however, you will get multiple instances of w3wp.exe running, and it isn’t immediately obvious which one you should attach to to debug a given website. There are steps you can follow to find out which process belongs to your website’s Application Pool.

Step-by-step guide

With Task Manager

  1. Open Task Manager
    1. Shortcut Ctrl + Shift + Esc
  2. Show the Command Line and PID columns by right-clicking the header row and selecting the appropriate item from the multi-list. Command Prompt
  3. Sort by Name to find processes named “IIS Worker Process”
  4. Find the IIS Worker Process that has your website’s name in the Command Line column and take note of the PID. Command Prompt

With the command line

  1. Run cmd.exe as Administrator
  2. Run the following command: C:\Windows\System32\inetsrv\appcmd.exe list wp
  3. Find your website’s Application Pool in the output and take note of the corresponding PID, which is the w3wp.exe process you are looking for. Command Prompt

Similar Posts

Comments