A reliable way to see statistics on specific processes in the IIS6 application pool

In perfmon in Windows Server 2003, there are counter objects to get statistics on processor time and time. The only problem is that in an environment with multiple application pools, there is no way to reliably identify the correct workflow. In perfmon, they are all called "w3wp", and if there are more than one, then they are w3wp, w3wp # 1, w3wp # 2, etc. Even these names are unreliable - the number depends on which one started first, and obviously changes when the application pool is processed, because the process is destroyed and restarted.

I did not find any ASP.NET specific counters, and for some reason my IIS object does not share instances - there is only one โ€œglobalโ€ instance.

Ultimately, I just want the% Processor Time and Working Set counters to be configured for a specific IIS application pool. Any suggestions?

+1
source share
2 answers

We always collect statistics for all w3wp processes, and we will capture the PID. This is one of the counters in the process group.

There is a script for this site in the System32 system32 folder called IISApp.vbs, which will list all the processes and their PIDs. You will need to run this to capture the PID.

I am sure that there should be a better way, but it worked when we needed to conduct special monitoring.

+2
source

A w3wp instance may not be displayed if the workflow is inactive for a long time. The user interface must be used for a short period of time so that the workflow (w3wp) can be displayed in instances.

+1
source

Source: https://habr.com/ru/post/1299722/


All Articles