<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\07511356004\46blogName\75xception\46publishMode\75PUBLISH_MODE_BLOGSPOT\46navbarType\75BLUE\46layoutType\75CLASSIC\46searchRoot\75http://openrent.blogspot.com/search\46blogLocale\75en_US\46v\0752\46homepageUrl\75http://openrent.blogspot.com/\46vt\75-2179510228592399674', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Multiple CLR performance counters appear that have names that resemble "W3wp#1"

When multiple ASP.NET worker processes are running, Common Language Runtime (CLR) performance counters will have names that resemble "W3wp#1" or "W3sp#2"and so on. This was remedied in .NET Framework 2.0 to include a counter named Process ID in the .NET CLR Memory performance object. This counter displays the process ID for an instance. You can use this counter to determine the CLR performance counter that is associated with a process.

If you cannot see a counter named Process ID under the .NET CLR Memory object, the performance counter symbols may not be installed correctly. To resolve this issue, follow these steps:

1. Click Start, click Run, type cmd, and then click OK.
2. At the command prompt, type unlodctr .NetFramework, and then press ENTER.
3. Use the cd command to change to the \Microsoft.Net\Framework\v2.0.50727 folder.
4. At the command prompt, type lodctr corperfmonsymbols.ini, and then press ENTER.

You then need to run the iisapp.vbs command to get the PID of each App Pool. Once you have the PID, run perfmon and add the .Net CLR Memory/Process ID for each instance of w3wp, w3wp#1, w3wp#2, etc…

The corresponding PID will be the only value that perfmon displays for the counter.

As you can see below, I added application pools w3wp#1 and w3wp#2 to perfmon. I have selected w3wp#2, and it shows a constant value of 6892-which corresponds exactly to the PID of the App Pool.