Performance monitor issue...

Anonymous
2023-08-23T05:40:29+00:00

We have used the performance monitor library in our .net application to fetch the CPU details some times it perform wrongly behave and receiving the exception

-> "Cannot load Counter Name data because an invalid index ' ' was read from the registry"

-> when we open the performance monitor -> Unable to add these counters :-

\Memory\Available MBytes

\Memory% Commited Bytes In Use

\Memory\Cache Faults/Sec

\Memory\Cache Faults/Sec

Resolution : Reset the Performance Monitor using CMD then it it working proper..!!

why this happening that i don't know can you brief me on this

Windows for business Windows Server Performance Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-08-24T01:58:57+00:00

    Hello

    Thank you for posting in Microsoft Community forum.

    This issue occurs when the counters cache in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009\Counter+Help becomes corrupted (has blank lines).

    You can try rebuilding the cache by running lodctr /r from an elevated command prompt. If you get an error when running this command, you may need to run it from the C:\Windows\SysWOW64 directory instead.

    If this does not resolve the issue, you may need to check the event log for Event ID 3006 and change the Disable Performance Counters value from 1 to 0 in the registry.

    Best Regards,

    Wesley Li

    3 people found this answer helpful.
    0 comments No comments