I am using .NET console application to gather performance data of the system. For one of the counter i am using query as below:
SELECT CurrentConnections, ConnectionAttemptsPersec
FROM Win32_PerfFormattedData_W3SVC_WebService
This query return four Management objects for my system.
Does Win32_PerfFormattedData_W3SVC_WebService return data per processor core? I have four core processor in my system. If not what is wrong with the query?
So you have four web sites configured in IIS?
(Looking at Perf Mon’s Web Service object – which I believe is the same counter object – I see three instances:
_Total,web-site-1andweb-site-2(plus<All instances>of course).Checking the
Nameproperty as well should help to distinguish them.