This article helps settle an worry where some performance counter libraries end up being corrupted and need to be rebuilt.

You are watching: Unable to rebuild performance counter error 2

Applies to: windows Server 2012 R2Original KB number: 2554336

Symptoms

When you use the power Monitor tool, part counters may be lacking or don"t contain counter data. The performance respond to libraries may end up being corrupted and need to be rebuilt.

You may see the following errors in the application log:

Log Name: applications Source: incubadoradeartistas.com-Windows-IIS-W3SVC-PerfCounters event ID: 2002 Level: Error Keywords: standard Description: setting up Web organization counters failed, please make certain your Web organization counters room registered correctly.Log Name: applications Source: IISInfoCtrs event ID: 1001 Level: Error Keywords: standard Description: unable to review the very first counter index value from the registry. The error code returned by the registry is data DWORD 0.

Cause

This habits may happen if particular extensible counters corruption the registry, or if Windows monitoring Instrumentation (WMI)-based programs modify the registry.

Resolution

To resolve this issue, use the following methods.

Ensure the the counters aren"t disabled in the registry

The counters may be disabled via it is registered settings. Check the following registry areas to ensure that the counters haven"t to be disabled:

HKEY_LOCAL_MACHINESystemCurrentControlSetServices\%servicename%Performance


Note

%servicename% represents any type of service through a performance counter. For example: PerfDisk, PerfOS, etc.


There may be registry keys for DisablePerformanceCounters in any of this locations. Together per the post Disable power Counters, this value have to be set to 0. If the value is anything other than 0 the counter may be disabled.

A value of 1 way the respond to is disabled.A value of 2 way the 32-bit counter is disabled.A worth of 4 way the 64-bit respond to is disabled.

Rebuild all performance counters consisting of extensible and third-party counters

To rebuild all performance counters including extensible and also third-party counters, kind the following regulates at an administrative command prompt. Press ENTER after every command.

Rebuild the counters:

cd c:windowssystem32lodctr /Rcd c:windowssysWOW64lodctr /RResync the counters through Windows management Instrumentation (WMI):

WINMGMT.EXE /RESYNCPERFStop and also restart the performance Logs and also Alerts service.

Stop and restart the Windows monitoring Instrumentation service.

Create a brand-new Data Collector collection (don"t usage an currently Data Collector Set).

Sometimes, to run lodctr /R may not recoup all counters. If you an alert this happening, verify the paper c:windowssystem32PerfStringBackup.INI contains the suitable information. You have the right to copy this document from an identical an equipment to regain the counters. There may be slight differences in this document from machine to machine. But if you notification a drastic difference in size, it might be absent information. Constantly create a back-up copy before replacing. There"s no guarantee that copying this paper from another machine will gain back all counters. If possible, to compare the record to backups the the an equipment to view if the file size has reduced at some point in time.

For countless counters, the location of the ini papers to install perf counters is under windowswinsxs, such as the ini records for IIS.

If you watch the complying with errors:

Log Name: application Source: incubadoradeartistas.com-Windows-IIS-W3SVC-PerfCounters event ID: 2002 Level: Error Keywords: standard Description: setting up Web service counters failed, please make sure your Web service counters room registered correctly.Log Name: application Source: IISInfoCtrs occasion ID: 1001 Level: Error Keywords: standard Description: can not to check out the first counter index worth from the registry. The error code returned by the registry is data DWORD 0.You"ll should use the counter install ini documents in the brochure c:Windowswinsxs.

Multiple folders might exist for counters the you should repair. In those cases, you might need to use trial and also error to find the correct ini files.

For example,

Dir C:Windowswinsxsamd64_incubadoradeartistas.com-windows-iis-metabase*

In this example, try installing the infoctrs.ini from every folder using:

Lodtr infoctrs.ini

When it"s successful, you"ll view the adhering to entry in the applications log:

Log Name: application Source: incubadoradeartistas.com-Windows-LoadPerf occasion ID: 1000 Level: info Description: power counters for the inetinfo (inetinfo) business were loaded successfully. The document Data in the data section contains the brand-new index worths assigned to this service.You need do the same for the adhering to counters:

amd64_incubadoradeartistas.com-windows-iis-w3svc*

lodctr w3ctrs.ini

After i beg your pardon you"ll see:

Log Name: application Source: incubadoradeartistas.com-Windows-LoadPerf event ID: 1000 Level: info Description: performance counters because that the W3SVC (World large Web posting Service) company were invited successfully. The document Data in the data section consists of the brand-new index values assigned to this service.Following this steps, rerun WINMGMT /RESYNCPERF.

See more: Destiny 2 Where To Find Scorn, Where Can I Find Scorn Pikes On The Tangled Shore

More information

There"s a hotfix because that known issues with PerfDisk.dll on windows Server 2008 and Vista systems. This hotfix has been rolled into service Pack 2 because that these operation systems. If you"re at company Pack 1 or below, apply the hotfix 961382.