PerfMon problems - Unable to Add Counters

Anonymous
2010-02-02T05:36:57+00:00

Hello everyone.  I registered just to ask this question, which I could not find after quite a long while consulting Google.  I come to you all in hopes that where Google failed, you will not!

I use a program that some of you may be familiar with, called Samurize (http://www.samurize.com/modules/news/), which does a lot of things; what I use it for the most is the ability to, at a glance, discern my CPU usage, RAM usage, network information, uptime, harddrive space, and my calendar schedule, among other things.  I know it's an old program and I know that it was designed for Windows 2000/XP, but it has worked without a hitch (excluding this one) on both Vista and Windows 7.

Recently, though, the ability to monitor CPU, RAM, upload and download speeds, and uptime has gone; all of them give me a flatline, reporting that I'm not using the internet at all, or my computer for that matter (except Uptime, which reports that I've been on my computer for 49 days, 17 hours, 2 minutes, and 47 seconds...it refuses to go up!).  Originally, I thought it was a problem with the program.  It isn't; it has something to do with Perfmon.  When I load up perfmon.exe through the Run box, it loads up with an error, that says:

"Unable to add these counters:

\Memory\Available MBytes

\Memory% Committed Bytes In Use

\Memory\Cache Faults/sec

\Memory\Cache Faults/sec

\PhysicalDisk(*)%Idle Time

\PhysicalDisk(*)\Avg. Disk Queue Length

\Network Interface(*)\Bytes Total/sec"

That's not me accidentally saying the same thing twice...it says what I've typed out verbatim. [Edit:] Just remembered: other system monitors are perfectly fine.  The task manager of course runs fine, but gadgets seem to work fine at reporting my RAM and CPU usage, along with my download and upload speeds. [/edit]

This is pretty much the sum of my progress into the problem.  I've found this page (http://support.microsoft.com/default.aspx/kb/300956), which seems like it would fix the problem...but, being a lazy boned man, I'm hoping that there's an easier solution than that, one that isn't 'reformat.'

Other pertinent information:

Windows 7 x64 Professional

Updated with all official updates

Recently switched from wireless internet to wired (aside from this, I can't thing of any changes I've made with my computer)

Thanks in advance!

Windows for home | Previous Windows versions | Windows update

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.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2010-02-23T21:27:06+00:00

    Hello SensaiOpti,

    I had the same problem. From a level your pointers to the perfmon Counters are corrupted, you have to rebuild these with LODCTR from a elevated command prompt:

    Click Start, type cmd right click cmd.exe, and select Run as administrator.

    At the prompt, type lodctr /r and press ENTER. This will repair the pointers (those are stored in the registry).

    C:\Windows\system32>lodctr /r

    Info: Successfully rebuilt performance counter setting from system backup store

    After this action it is possible that some providers are disabled. You can check the status with lodctr /q.

    C:\Windows\system32>lodctr /qPerformance Counter ID Queries [PERFLIB]:    Base Index: 0x00000737 (1847)    Last Counter Text ID: 0x00001560 (5472)    Last Help Text ID: 0x00001561 (5473)

    [.NET CLR Data] Performance Counters (Enabled)    DLL Name: netfxperf.dll    Open Procedure: OpenPerformanceData    Collect Procedure: CollectPerformanceData    Close Procedure: ClosePerformanceData    First Counter ID: 0x00001080 (4224)    Last Counter ID: 0x0000108C (4236)    First Help ID: 0x00001081 (4225)    Last Help ID: 0x0000108D (4237)

    etc

    If it says (Disabled) next to a provider, you can enable it with lodctr /e:<provider name>. Use for <provider name> the string between the [ ] at the beginning  of the entry.

    Succes

    187 people found this answer helpful.
    0 comments No comments

33 additional answers

Sort by: Most helpful
  1. Anonymous
    2011-02-04T00:07:03+00:00

    Thanks, ProGas.  Saved me a ton of time.

    0 comments No comments
  2. Anonymous
    2011-02-17T10:31:54+00:00

    Perfect answer, very helpful

    HP

    0 comments No comments
  3. Anonymous
    2011-06-23T18:26:56+00:00

    Hi ProGas,

    Worked perfectly,

    Thanks!

    0 comments No comments
  4. Anonymous
    2012-05-30T02:14:05+00:00

    ProGas, thank you for the solution - this worked great!

    0 comments No comments