typeperf -qx not displaying correct result

JasonYangJW 61 Reputation points
2021-02-25T16:21:04.94+00:00

We are using Windows Server 2012 and trying to use ".NET CLR Exceptions" performance counter.
We have 8 applications running on IIS,so there are 8 w3wp processes.

I tried the perfmon GUI, I could find 8 w3wp instances in the ".NET CLR Exceptions" counter.
These instances are named as w3wp, w3wp#1 ... w3wp#7,which was fine.

But it is strange when using "typeperf -qx" to display.
There are 8 instances listed but their names are not displayed like the GUI's.
And I also tried command like, typeperf ".NET CLR Exceptions(w3wp#7)# of Exceps Thrown", it worked fine.

Bellow is the output from these two commands.Why we are getting the wrong result from "typeperf -qx"?

PS C:\Users\Administrator> typeperf -qx ".NET CLR Exceptions"
.NET CLR Exceptions(Global)# of Exceps Thrown
.NET CLR Exceptions(w3wp)# of Exceps Thrown
.NET CLR Exceptions(powershell_ise)# of Exceps Thrown
.NET CLR Exceptions(w3wp)# of Exceps Thrown
.NET CLR Exceptions(w3wp#1)# of Exceps Thrown
.NET CLR Exceptions(w3wp)# of Exceps Thrown
.NET CLR Exceptions(w3wp#1)# of Exceps Thrown
.NET CLR Exceptions(w3wp#2)# of Exceps Thrown
.NET CLR Exceptions(w3wp#3)# of Exceps Thrown
.NET CLR Exceptions(w3wp#4)# of Exceps Thrown
.NET CLR Exceptions(Global)# of Exceps Thrown / sec
.NET CLR Exceptions(w3wp)# of Exceps Thrown / sec
.NET CLR Exceptions(powershell_ise)# of Exceps Thrown / sec
.NET CLR Exceptions(w3wp)# of Exceps Thrown / sec
.NET CLR Exceptions(w3wp#1)# of Exceps Thrown / sec
.NET CLR Exceptions(w3wp)# of Exceps Thrown / sec
.NET CLR Exceptions(w3wp#1)# of Exceps Thrown / sec
.NET CLR Exceptions(w3wp#2)# of Exceps Thrown / sec
.NET CLR Exceptions(w3wp#3)# of Exceps Thrown / sec
.NET CLR Exceptions(w3wp#4)# of Exceps Thrown / sec
.NET CLR Exceptions(Global)# of Filters / sec
.NET CLR Exceptions(w3wp)# of Filters / sec
.NET CLR Exceptions(powershell_ise)# of Filters / sec
.NET CLR Exceptions(w3wp)# of Filters / sec
.NET CLR Exceptions(w3wp#1)# of Filters / sec
.NET CLR Exceptions(w3wp)# of Filters / sec
.NET CLR Exceptions(w3wp#1)# of Filters / sec
.NET CLR Exceptions(w3wp#2)# of Filters / sec
.NET CLR Exceptions(w3wp#3)# of Filters / sec
.NET CLR Exceptions(w3wp#4)# of Filters / sec
.NET CLR Exceptions(Global)# of Finallys / sec
.NET CLR Exceptions(w3wp)# of Finallys / sec
.NET CLR Exceptions(powershell_ise)# of Finallys / sec
.NET CLR Exceptions(w3wp)# of Finallys / sec
.NET CLR Exceptions(w3wp#1)# of Finallys / sec
.NET CLR Exceptions(w3wp)# of Finallys / sec
.NET CLR Exceptions(w3wp#1)# of Finallys / sec
.NET CLR Exceptions(w3wp#2)# of Finallys / sec
.NET CLR Exceptions(w3wp#3)# of Finallys / sec
.NET CLR Exceptions(w3wp#4)# of Finallys / sec
.NET CLR Exceptions(Global)\Throw To Catch Depth / sec
.NET CLR Exceptions(w3wp)\Throw To Catch Depth / sec
.NET CLR Exceptions(powershell_ise)\Throw To Catch Depth / sec
.NET CLR Exceptions(w3wp)\Throw To Catch Depth / sec
.NET CLR Exceptions(w3wp#1)\Throw To Catch Depth / sec
.NET CLR Exceptions(w3wp)\Throw To Catch Depth / sec
.NET CLR Exceptions(w3wp#1)\Throw To Catch Depth / sec
.NET CLR Exceptions(w3wp#2)\Throw To Catch Depth / sec
.NET CLR Exceptions(w3wp#3)\Throw To Catch Depth / sec
.NET CLR Exceptions(w3wp#4)\Throw To Catch Depth / sec
正在退出,请稍候...
命令成功结束。

PS C:\Users\Administrator> typeperf ".NET CLR Exceptions(w3wp#7)# of Exceps Thrown"

"(PDH-CSV 4.0)","\LENOVO-LA0X1666.NET CLR Exceptions(w3wp#7)# of Exceps Thrown"
"02/25/2021 16:36:37.819","155455.000000"
"02/25/2021 16:36:38.820","155455.000000"
"02/25/2021 16:36:39.820","155455.000000"
"02/25/2021 16:36:40.821","155455.000000"
"02/25/2021 16:36:41.822","155455.000000"
"02/25/2021 16:36:42.822","155455.000000"
"02/25/2021 16:36:43.823","155455.000000"

PS C:\Users\Administrator>

Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,526 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,083 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,486 Reputation points Microsoft Vendor
    2021-02-26T09:08:05.073+00:00

    Hi,

    Are the instances missing for other counters or only for the “.NET CLR Exceptions” counter? As the performance counter libraries may become corrupted you can try rebuilding the performance counters by running lodctr.exe /r. It restores counter registry settings and explanatory text from current registry settings and cached performance files related to the registry.

    You can refer to this link for more details.
    https://support.microsoft.com/en-us/help/2554336

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.