Windows Performance Counters disappearing from PerfMon

后端 未结 2 1402
臣服心动
臣服心动 2021-01-22 18:09

I\'m Completely Baffled(TM) by this one: On a Win7SP1, 64-bit machine, PerfMon appears to be completely disavowing the knowledge of installed, custom performance co

相关标签:
2条回答
  • 2021-01-22 18:40

    Make sure that you're not mixing x86 and x64.

    I.e. if your perf counters were created using a x64 process, then make sure you're also reading them using a x64 process.

    Additionally, try running as Admin.

    0 讨论(0)
  • 2021-01-22 18:50

    It is likely that the problem lies in the computer, and/or in its configuration, rather than in the code you've posted. I've encountered the same situation, and have failed to encounter why the counters disappear when opening performance monitor. However, I can help you with this:

    • Perfmon will sometimes disable performance counters by flagging it as disabled in the registry. The link might help you find why the counters are being disabled.

    • Monitoring counters can also be done with the tool typeperf. In my experience, typeperf has not disabled the same counters perfmon will, providing you with an alternative in monitoring your counters.

    0 讨论(0)
提交回复
热议问题