IT Infrastructure blog

July 1, 2011

Unable to add performance monitor counters in Windows 2008 Server R2

Filed under: Windows 2008 Servers — Akther @ 2:38 pm
Tags: ,

We were facing this issue in one of the Windows 2008 R2 x64 server and this server is the main Databse server in ERP farm ( MS Dynamics AX is the ERP product)

Ok, Just imagine the pressure from Application and DBA team to solve this issue because they cannot monitor the performance of database and other counters.

The following error occurred while loading performance monitor

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”

Cause

Te issue was perfmon Counters were corrupted, and have to rebuild these with LODCTR from command prompt. (Run As Administrator)

Resolution

Open Command Prompt , type lodctr /r and press ENTER. This will repair the pointers

C:\Windows\system32>lodctr/r

You have to check is there any providers are disabled. You can check the status with lodctr /q.

[Windows SharePoint Services Performance Monitoring] Performance Counters (Enabled)
DLL Name: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN\onetnative.dllOpen Procedure: OpenPerformanceData
Collect Procedure: CollectPerformanceData
Close Procedure: ClosePerformanceData
First Counter ID: 0x00002A0E (10766)
Last Counter ID: 0x00002A12 (10770)
First Help ID: 0x00002A0F (10767)
Last Help ID: 0x00002A13 (10771)

If it says (Disabled) next to a provider, you can enable it with lodctr/e:<provider name>.

Then try to open perfmon  from run it will work and there is no error

Thanks to Rafeeq who is my great colleague helped us to resolve this problem.

 

 

Advertisements

5 Comments »

  1. Just what the doctor ordered! Thanks for publishing this; worked like a charm.

    Comment by Jim Harris — March 18, 2012 @ 4:44 pm | Reply

  2. Thanks so much for this! Worked on Windows 7 Enterprise as well! This error was driving me crazy!

    Comment by SM - March 29 2012 — March 29, 2012 @ 11:25 am | Reply

  3. Thanks a lot Doctor. It workd perfect 🙂

    Comment by R — October 5, 2012 @ 8:47 pm | Reply

  4. Awesome, thanks a lot. NSClient++ modules was getting errors loading the counters like this:
    .\..\..\..\trunk\modules\CheckSystem\CheckSystem.cpp:301: Failed to load counter cpu(\238(_total)\6: query failed: PdhCollectQueryData failed: : -2147481643: No data to return.

    Rebuilding the counters fixed the issue on Windows Server 2008 R2

    Comment by Travis Runyard — April 9, 2013 @ 11:11 pm | Reply

  5. worked a treat many thanks

    Comment by richard — March 26, 2014 @ 2:18 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: