Wednesday, April 11, 2018

Unable to add performance monitor counters in Windows 2008 Server R2

Unable to add performance monitor counters in Windows 2008 Server R2

Filed under: Windows 2008 Servers

Tags: lodctr /r, performace counter

We were facing this issue in one of the Windows 2008 R2 x64 server and this server


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.

No comments:

Post a Comment