Share via

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
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

    100+ people found this answer helpful.
    0 comments No comments

33 additional answers

Sort by: Most helpful
  1. Anonymous
    2016-02-18T11:53:44+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

    But this does not solve the problem - It shows "unable to restore performance monitor settings" because of "error 2". Pls give a valid solution.

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2012-12-04T05:39:24+00:00

    Thank you ProGas!  It took me two attempts, the first failed with an error code 2, but the second time I did it, it succeeded (On windows 8 pro).  Thanks!

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2012-06-24T03:29:10+00:00

    I type in lodctr /r and i get Error: Unable to rebuild performance counter setting from system backup store, error code is 5. I instead after that just typed in lodctr and i get 

    LODCTR

    Updates registry values related to performance counters.

    Usage:

    LODCTR <INI-FileName>

    INI-FileName is the name of the initialization file that contains

    the counter name definitions and explain text for an extensible

    counter DLL.

    LODCTR /S:<Backup-FileName>

    save the current perf registry strings and info to <Backup-FileName>

    LODCTR /R:<Backup-FileName>

    restore the perf registry strings and info using <Backup-FileName>

    LODCTR /R

    rebuild the perf registry strings and info from scratch based on the cur

    rent

    registry settings and backup INI files.

    LODCTR /T:<Service-Name>

    set the performance counter service as trusted.

    LODCTR /E:<Service-Name>

    enable the performance counter service.

    LODCTR /D:<Service-Name>

    disable the performance counter service.

    LODCTR /Q

    LODCTR /Q:<Service-Name>

    query the performance counter service information, either query all or s

    pecified one.

    LODCTR /M:<Counter-Manifest>

    install Windows Vista performance counter provider definition XML file

    to system repository.

    Note: any arguments with spaces in the names must be enclosed within

    Double Quotation marks.

    This issue started after i had did a system back up and was re updating my windows i am going to look a little further to resolve this but i would appreciate a reply on what i should do just in case i can not find it thank you

    2 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2010-02-03T02:52:55+00:00

    Hi,

    If you are having problems opening performance monitor, then I suggest you to enable built in administrator account and check if it helps.

    Follow the below mentioned steps:

    1. Open the Local Users and Groups manager.
    2. In the left pane, click on the Users folder.
    3. In the middle pane, right click on Administrator and click on Properties.
    4. To Enable the Built-in Administrator Account -

     a) Uncheck the Account is disabled box. 

     b) Go to step 6.

    1. To Disable the Built-in Administrator Account -

     a) Check the Account is disabled box.

    1. Click on OK.
    2. Close the Local Users and Groups window.
    3. Log off, and you will now see the built-in Administrator account log on icon added (enabled) or removed (disabled) from the log on screen.

    NOTE: Click on the Administrator icon to log on to the built-in Administrator account.

    Now from the above provided steps you need to check whether you are able to resolve the issue, if you are able to fix the issue with default administrator account then you need

    to follow the below provided step to create a new user account and check for the issue.

    http://windows.microsoft.com/en-US/windows7/Fix-a-corrupted-user-profile

     Regards,

    Afzal-Microsoft Support.

    Visit our Microsoft Answers Feedback Forum and let us know what you think.

    0 comments No comments