IIS Worker Process Performance Monitoring Tips

(For IIS 6 and above)

Scenario 1: Performance Monitor (Perfmon) has been part of Windows for a long time, but if you have many application pools and only one of them experience high CPU or memory usage issue, how to use Perfmon to track its long term usage trend?

  1. Follow this article and ask perfmon to log Process object in the “Process_PID” way, https://support.microsoft.com/kb/281884 (no need to restart the server after changing this registry key).
  2. Run “cscript %windir%\system32\iisapp.vbs” at command prompt on the server (IIS 6) to see which w3wp serves the application pool for your web application and know its PID (such as 3496).
  3. Launch perfmon and monitor the Process object for w3wp_3496.

For IIS 7 and above, please run “%windir%\system32\inetsrv\appcmd list wp” instead in step 2.

(Will add more scenarios in the future).