I am trying to create a data collector set with a couple of memory counters for an IIS 7 worker process. I know the PID for the worker process. But in the Performance Monitor data collector set Performance Counters Properties UI, in the "Instances of selected object" list, they are listed in the format w3wp#nn.
It appears that the w3wp numbers are 1 through the number of configured worker processes. So on my server with 48 worker processes, they are w3wp#1 - w3wp#48.
So my PID may be 4728, but the instance listed in data collector set properties may be w3wp#15. How do I reconcile a PID to a w3wp#?