performance monitor in windows server 2012

Hi, 

when i run performance monitor I get an error "Unable to add those counters"

I search the internet, there is not any  post that talking about win 2012, in other posts I saw that I need to replace Perfc009.dat file and the Perfh009.dat and are in <var style="color:#333333;font-family:'Segoe UI', Arial, Verdana, Tahoma, sans-serif;font-size:13px;line-height:normal;">DriveLetter</var>:\i386\ but there is not i386 folder in windows server 2012 installation.

http://support.microsoft.com/kb/300956/en-us

Need help,

thanks

Lior

 

August 25th, 2013 11:05am

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

1. Launch Command Prompt as Administrator (right click Runs As Administrator)
2. Drop into the C:\WINDOWS\System32 directory by typing CD\ then CD Windows\System32
3. To rebuild your resource counters type the following command:

lodctr /r

This will rebuild your counter values and may take a few moments so please be patient.

4. If you wish to query the counters to make sure they have set use:

lodctr /q

This will give you something like the following:

Performance 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

5. Now restart the services and check .

Free Windows Admin Tool Kit Click here and download it now
August 25th, 2013 11:38am

Hi,

I already did that, not working. the command lodctr /r take only few seconds.

don't solve the problem

August 26th, 2013 2:19am

 lodctr /r run successfully ?

because my Server 2012 also have same problem and i do exactly same step and now works fine.

please put output of lodctr /q here.

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2013 2:25am

this is the output:

Info: Successfully rebuilt performance counter setting from system backup store

lodctr /q the output is:

Performance Counter ID Queries [PERFLIB]:
    Base Index: 0x00000737 (1847)
    Last Counter Text ID: 0x000031D2 (12754)
    Last Help Text ID: 0x000031D3 (12755)

[.NET CLR Data] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\netfxperf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData

[.NET CLR Networking] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\netfxperf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData

[.NET CLR Networking 4.0.0.0] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\netfxperf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData
    First Counter ID: 0x0000161A (5658)
    Last Counter ID: 0x00001634 (5684)
    First Help ID: 0x0000161B (5659)
    Last Help ID: 0x00001635 (5685)

[.NET Data Provider for Oracle] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\netfxperf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData

[.NET Data Provider for SqlServer] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\netfxperf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData

[.NET Memory Cache 4.0] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\netfxperf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData

[.NETFramework] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\mscoree.dll
    Open Procedure: OpenCtrs
    Collect Procedure: CollectCtrs
    Close Procedure: CloseCtrs

[ASP.NET] Performance Counters (Enabled)
    DLL Name: C:\Windows\System32\aspnet_counters.dll
    Open Procedure: OpenGenericCounters
    Collect Procedure: CollectGenericCounters
    Close Procedure: CloseGenericCounters
    First Counter ID: 0x00001538 (5432)
    Last Counter ID: 0x00001618 (5656)
    First Help ID: 0x00001539 (5433)
    Last Help ID: 0x00001619 (5657)

[ASP.NET_2.0.50727] Performance Counters (Enabled)
    DLL Name: C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_perf.dll
    Open Procedure: OpenVersionedPerfData
    Collect Procedure: CollectVersionedPerfData
    Close Procedure: CloseVersionedPerfData
    First Counter ID: 0x0000146A (5226)
    Last Counter ID: 0x00001536 (5430)
    First Help ID: 0x0000146B (5227)
    Last Help ID: 0x00001537 (5431)

[ASP.NET_4.0.30319] Performance Counters (Enabled)
    DLL Name: C:\Windows\System32\aspnet_counters.dll
    Open Procedure: OpenVersion4Counters
    Collect Procedure: CollectVersion4Counters
    Close Procedure: CloseVersion4Counters
    First Counter ID: 0x00001388 (5000)
    Last Counter ID: 0x00001468 (5224)
    First Help ID: 0x00001389 (5001)
    Last Help ID: 0x00001469 (5225)

[ASP.NET_64_2.0.50727] Performance Counters (Enabled)
    DLL Name: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_perf.dll
    Open Procedure: OpenVersionedPerfData
    Collect Procedure: CollectVersionedPerfData
    Close Procedure: CloseVersionedPerfData
    First Counter ID: 0x000012BA (4794)
    Last Counter ID: 0x00001386 (4998)
    First Help ID: 0x000012BB (4795)
    Last Help ID: 0x00001387 (4999)

[aspnet_state] Performance Counters (Enabled)
    DLL Name: C:\Windows\System32\aspnet_counters.dll
    Open Procedure: OpenStateCounters
    Collect Procedure: CollectStateCounters
    Close Procedure: CloseStateCounters
    First Counter ID: 0x000011D0 (4560)
    Last Counter ID: 0x000012B8 (4792)
    First Help ID: 0x000011D1 (4561)
    Last Help ID: 0x000012B9 (4793)

[BITS] Performance Counters (Enabled)
    DLL Name: C:\Windows\System32\bitsperf.dll
    Open Procedure: PerfMon_Open
    Collect Procedure: PerfMon_Collect
    Close Procedure: PerfMon_Close
    First Counter ID: 0x000011BE (4542)
    Last Counter ID: 0x000011CE (4558)
    First Help ID: 0x000011BF (4543)
    Last Help ID: 0x000011CF (4559)

[ESENT] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\esentprf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData
    First Counter ID: 0x00000AF8 (2808)
    Last Counter ID: 0x000011BC (4540)
    First Help ID: 0x00000AF9 (2809)
    Last Help ID: 0x000011BD (4541)

[FIMSynchronizationService] Performance Counters (Disabled)
    DLL Name: C:\Program Files\Microsoft Office Servers\15.0\Synchronization Service\Bin\mmsperf.dll
    Open Procedure: PrfData_Open
    Collect Procedure: PrfData_Collect
    Close Procedure: PrfData_Close

[InetInfo] Performance Counters (Enabled)
    DLL Name: C:\Windows\System32\infoctrs.dll
    Open Procedure: OpenINFOPerformanceData
    Collect Procedure: CollectINFOPerformanceData
    Close Procedure: CloseINFOPerformanceData
    First Counter ID: 0x00000AB6 (2742)
    Last Counter ID: 0x00000AF6 (2806)
    First Help ID: 0x00000AB7 (2743)
    Last Help ID: 0x00000AF7 (2807)

[Lsa] Performance Counters (Enabled)
    DLL Name: C:\Windows\System32\Secur32.dll
    Open Procedure: OpenLsaPerformanceData
    Collect Procedure: CollectLsaPerformanceData
    Close Procedure: CloseLsaPerformanceData

[MSDTC] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\msdtcuiu.DLL
    Open Procedure: DtcPerfOpen
    Collect Procedure: DtcPerfCollect
    Close Procedure: DtcPerfClose
    First Counter ID: 0x00000A9A (2714)
    Last Counter ID: 0x00000AB4 (2740)
    First Help ID: 0x00000A9B (2715)
    Last Help ID: 0x00000AB5 (2741)

[MSDTC Bridge 3.0.0.0] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\netfxperf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData
    First Counter ID: 0x00000A82 (2690)
    Last Counter ID: 0x00000A98 (2712)
    First Help ID: 0x00000A83 (2691)
    Last Help ID: 0x00000A99 (2713)

[MSDTC Bridge 4.0.0.0] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\NETFXPerf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData
    First Counter ID: 0x00000A6A (2666)
    Last Counter ID: 0x00000A80 (2688)
    First Help ID: 0x00000A6B (2667)
    Last Help ID: 0x00000A81 (2689)

[PerfDisk] Performance Counters (Enabled)
    DLL Name: %SystemRoot%\System32\perfdisk.dll
    Open Procedure: OpenDiskObject
    Collect Procedure: CollectDiskObjectData
    Close Procedure: CloseDiskObject

[PerfNet] Performance Counters (Enabled)
    DLL Name: %SystemRoot%\System32\perfnet.dll
    Open Procedure: OpenNetSvcsObject
    Collect Procedure: CollectNetSvcsObjectData
    Close Procedure: CloseNetSvcsObject

[PerfOS] Performance Counters (Enabled)
    DLL Name: %SystemRoot%\System32\perfos.dll
    Open Procedure: OpenOSObject
    Collect Procedure: CollectOSObjectData
    Close Procedure: CloseOSObject

[PerfProc] Performance Counters (Enabled)
    DLL Name: %SystemRoot%\System32\perfproc.dll
    Open Procedure: OpenSysProcessObject
    Collect Procedure: CollectSysProcessObjectData
    Close Procedure: CloseSysProcessObject

[RemoteAccess] Performance Counters (Enabled)
    DLL Name: C:\Windows\System32\rasctrs.dll
    Open Procedure: OpenRasPerformanceData
    Collect Procedure: CollectRasPerformanceData
    Close Procedure: CloseRasPerformanceData
    First Counter ID: 0x00000A42 (2626)
    Last Counter ID: 0x00000A68 (2664)
    First Help ID: 0x00000A43 (2627)
    Last Help ID: 0x00000A69 (2665)

[ServiceModelEndpoint 3.0.0.0] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\netfxperf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData
    First Counter ID: 0x00000A1A (2586)
    Last Counter ID: 0x00000A40 (2624)
    First Help ID: 0x00000A1B (2587)
    Last Help ID: 0x00000A41 (2625)

[ServiceModelOperation 3.0.0.0] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\netfxperf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData
    First Counter ID: 0x000009FA (2554)
    Last Counter ID: 0x00000A18 (2584)
    First Help ID: 0x000009FB (2555)
    Last Help ID: 0x00000A19 (2585)

[ServiceModelService 3.0.0.0] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\netfxperf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData
    First Counter ID: 0x000009B6 (2486)
    Last Counter ID: 0x000009F8 (2552)
    First Help ID: 0x000009B7 (2487)
    Last Help ID: 0x000009F9 (2553)

[SMSvcHost 3.0.0.0] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\netfxperf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData
    First Counter ID: 0x00000998 (2456)
    Last Counter ID: 0x000009B4 (2484)
    First Help ID: 0x00000999 (2457)
    Last Help ID: 0x000009B5 (2485)

[SMSvcHost 4.0.0.0] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\NETFXPerf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData
    First Counter ID: 0x0000097A (2426)
    Last Counter ID: 0x00000996 (2454)
    First Help ID: 0x0000097B (2427)
    Last Help ID: 0x00000997 (2455)

[Spooler] Performance Counters (Enabled)
    DLL Name: C:\Windows\System32\winspool.drv
    Open Procedure: PerfOpen
    Collect Procedure: PerfCollect
    Close Procedure: PerfClose

[TapiSrv] Performance Counters (Enabled)
    DLL Name: %SystemRoot%\System32\tapiperf.dll
    Open Procedure: OpenTapiPerformanceData
    Collect Procedure: CollectTapiPerformanceData
    Close Procedure: CloseTapiPerformanceData
    First Counter ID: 0x00000966 (2406)
    Last Counter ID: 0x00000978 (2424)
    First Help ID: 0x00000967 (2407)
    Last Help ID: 0x00000979 (2425)

[Tcpip] Performance Counters (Enabled)
    DLL Name: %SystemRoot%\System32\Perfctrs.dll
    Open Procedure: OpenTcpIpPerformanceData
    Collect Procedure: CollectTcpIpPerformanceData
    Close Procedure: CloseTcpIpPerformanceData

[TermService] Performance Counters (Enabled)
    DLL Name: C:\Windows\System32\perfts.dll
    Open Procedure: OpenTSObject
    Collect Procedure: CollectTSObjectData
    Close Procedure: CloseTSObject
    First Counter ID: 0x00000964 (2404)
    Last Counter ID: 0x00000964 (2404)
    First Help ID: 0x00000965 (2405)
    Last Help ID: 0x00000965 (2405)

[usbhub] Performance Counters (Enabled)
    DLL Name: %SystemRoot%\system32\usbperf.dll
    Open Procedure: OpenUsbPerformanceData
    Collect Procedure: CollectUsbPerformanceData
    Close Procedure: CloseUsbPerformanceData
    First Counter ID: 0x00000940 (2368)
    Last Counter ID: 0x00000962 (2402)
    First Help ID: 0x00000941 (2369)
    Last Help ID: 0x00000963 (2403)

[W3SVC] Performance Counters (Enabled)
    DLL Name: %windir%\system32\inetsrv\w3ctrs.dll
    Open Procedure: OpenW3PerformanceData
    Collect Procedure: CollectW3PerformanceData
    Close Procedure: CloseW3PerformanceData
    First Counter ID: 0x00000838 (2104)
    Last Counter ID: 0x0000093E (2366)
    First Help ID: 0x00000839 (2105)
    Last Help ID: 0x0000093F (2367)

[Windows Workflow Foundation 3.0.0.0] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\netfxperf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData
    First Counter ID: 0x0000080C (2060)
    Last Counter ID: 0x00000836 (2102)
    First Help ID: 0x0000080D (2061)
    Last Help ID: 0x00000837 (2103)

[Windows Workflow Foundation 4.0.0.0] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\NETFXPerf.dll
    Open Procedure: OpenPerformanceData
    Collect Procedure: CollectPerformanceData
    Close Procedure: ClosePerformanceData
    First Counter ID: 0x000007E0 (2016)
    Last Counter ID: 0x0000080A (2058)
    First Help ID: 0x000007E1 (2017)
    Last Help ID: 0x0000080B (2059)

[WmiApRpl] Performance Counters (Enabled)
    DLL Name: %systemroot%\system32\wbem\wmiaprpl.dll
    Open Procedure: WmiOpenPerfData
    Collect Procedure: WmiCollectPerfData
    Close Procedure: WmiClosePerfData
    First Counter ID: 0x00000738 (1848)
    Last Counter ID: 0x000007DE (2014)
    First Help ID: 0x00000739 (1849)
    Last Help ID: 0x000007DF (2015)

August 26th, 2013 2:37am

[FIMSynchronizationService] Performance Counters (Disabled)
    DLL Name: C:\Program Files\Microsoft Office Servers\15.0\Synchronization Service\Bin\mmsperf.dll
    Open Procedure: PrfData_Open
    Collect Procedure: PrfData_Collect
    Close Procedure: PrfData_Close

Please Enable this using this cmlet lodctr /e:<provider name>. Use for <provider name> the string between the [ ] at the beginning  of the entry.

lodctr /e:FIMSynchronizationService

may be you need restart Performance.

and then che

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2013 2:50am

still not working, i noticed when I run lodctr /r I get this event:

August 26th, 2013 2:59am

still not working, i noticed when I run lodctr /r I get this event:

Use this link to solve your problem

Event error 3006 - Unable to read the performance counter strings on Windows 7 and Windows Server 2008 R2

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2013 3:03am

I found the solution, there is a regestry key :

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib

Disable Performance Counters was '1' , I changed it to '0' and now it's working.

August 26th, 2013 3:17am

Hi,

Im glad to hear that you have resolved the issue and thanks for sharing your solution in the forum. This will help others who face the same scenario resolve the issue quickly. If there is anything else I can do for you, please do not hesitate to let me know. I will be very happy to help.

Best regards,

Justin Gu

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2013 6:04am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics