- Thread Author
- #1
Environment:
- Windows Server 2022
- IIS 10.0
Issue Summary:
I regularly collect IIS performance metrics using Windows Performance Counters.
Initially, the IIS-related counter sets were all available:
- Web Service
- Web Service Cache
- APP_POOL_WAS
- WAS_W3WP
- W3SVC_W3WP
After a few days, without any configuration changes, the following two IIS counter sets
disappeared completely from Get-Counter / Performance Monitor:
- Web Service
- Web Service Cache
The other IIS counter sets (APP_POOL_WAS, WAS_W3WP, W3SVC_W3WP) still remained visible.
Commands used:
get-counter -listset * | select countersetname
Observed Behavior:
- “Web Service” and “Web Service Cache” do NOT appear in the counter set list.
- No errors in the Event Viewer related to performance counters.
- IIS is running normally and serving requests.
Workaround:
If I remove the IIS role and re-install/enable it again, both counter sets appear again
and work normally.
Expected Behavior:
IIS performance counter sets should remain registered and available as long as the
IIS Web Server role is enabled.
Questions:
1. Why do these two specific IIS counter sets disappear automatically over time?
2. Is this a known issue in Windows Server 2022 IIS performance counters?
3. Are there recommended steps to prevent these counters from getting unregistered?
4. Which logs or components handle the registration/unregistration of IIS counter sets?
Any guidance or official fix would be helpful.
- Windows Server 2022
- IIS 10.0
Issue Summary:
I regularly collect IIS performance metrics using Windows Performance Counters.
Initially, the IIS-related counter sets were all available:
- Web Service
- Web Service Cache
- APP_POOL_WAS
- WAS_W3WP
- W3SVC_W3WP
After a few days, without any configuration changes, the following two IIS counter sets
disappeared completely from Get-Counter / Performance Monitor:
- Web Service
- Web Service Cache
The other IIS counter sets (APP_POOL_WAS, WAS_W3WP, W3SVC_W3WP) still remained visible.
Commands used:
get-counter -listset * | select countersetname
Observed Behavior:
- “Web Service” and “Web Service Cache” do NOT appear in the counter set list.
- No errors in the Event Viewer related to performance counters.
- IIS is running normally and serving requests.
Workaround:
If I remove the IIS role and re-install/enable it again, both counter sets appear again
and work normally.
Expected Behavior:
IIS performance counter sets should remain registered and available as long as the
IIS Web Server role is enabled.
Questions:
1. Why do these two specific IIS counter sets disappear automatically over time?
2. Is this a known issue in Windows Server 2022 IIS performance counters?
3. Are there recommended steps to prevent these counters from getting unregistered?
4. Which logs or components handle the registration/unregistration of IIS counter sets?
Any guidance or official fix would be helpful.