How to determine which website/app pool is "#3" in PAL report?

Feb 3, 2014 at 8:00 PM
I'm trying to work with PAL to help diagnose an IIS 7.5 performance issue and here's what I see:

Possible Handle Leak: More than 250 handles between overall Min and overall Max and an increasing trend of more than 100 handles per hour \SERVER\Process(w3wp#3)\Handle Count

I'm struggling trying to figure out which website is "#3" according to PAL.

My setup:
  • Windows 2008 R2
  • IIS 7.5 w/ ASP.NET
  • 25+ websites spread across six app pools
Here's what I've tried:

appcmd list wp - lists process id and app pool identity (but no ordinal "#1" etc)
IIS -> Site -> Worker Processes - lists process id and app pool identity
Process Monitor - lists process id and app pool identity
Process Explorer - lists process id and app pool identity
Looking at the names of the IIS site id (which fails b/c many sites share same app pool)

I can't seem to figure out the mapping PAL has between #1 and #25 for IIS sites. It seems like it's just an ordinal sort (#1 is "first w3wp.exe we encounter" and #2 is "the next one in the list"). Is there a way to map these numbers to specific app pools/websites?
Feb 4, 2014 at 6:59 AM
Hi MrSanFranMan,

The #3 is just a number that Performance Monitor assigns to the counter instance to make it unique. It is not a process ID.
Use the counter \Process(w3wp#3)\ID Process to get the process ID (PID) of the counter instance and compare it to the output from appcmd.