Troubleshooting Performance Counter Issues


Cloudamize relies on Windows performance counters to provide accurate usage data for a system's CPU, memory, storage, networking, and more. These performance counters can become corrupt in a number of ways, and Cloudamize is unable to collect the accurate data needed to perform an assessment and provide useful results. The only way to perform an assessment when this occurs is to fix the underlying problem with the performance counters. 


Solution #1

The first solution to try when Windows performance counters are known to be corrupt is attempt to automatically restore the performance counter registry settings. This is done by running a single command from the Windows Command Prompt. Follow the steps below to attempt this fix:

  1. Run Command Prompt as Administrator (right-click Command Prompt; select "Run as Administrator")
  2. Enter the following command then press enter: lodctr /r
  3. Enter the following command then press enter: winmgmt.exe /resyncperf


After running the lodctr command, you will see output as to whether this command succeeded or not.


If the command succeeded, you should contact to determine if the performance counters were fixed and we are able to collect the data we need.

If you would like to verify that the performance counters were fixed, or if you are still experiencing errors with data collection due to performance counters, you can manually enable and disable counters in the Performance Monitor. To do this, type "Perfmon" into a command prompt and start the Performance Monitor application. On the the left hand side of the screen, navigate to Monitoring Tools- Performance Monitor. From here you will see the running counters on the bottom of the chart. Highlight these counters and disable the counters by clicking the red X at the top of the screen. Then click the green + sign to add the performance counters that are needed (see image below). To find out which counters are needed, please submit email to determine which performance counters are missing.


 If you are aware of which ones to add, manually adding them by using this method may resolve the issue. contact to determine if the performance counters were fixed. If you are still experiencing issues after manually adding the counters, proceed to solution 2. 

Solution #2

The second solution to try may be necessary when automatically restoring the performance counter registry settings does not fix the problem. This solution involves checking that counters are not disabled in the registry, and if necessary, manually rebuilding the performance counter library values. We strongly recommend backing up your registry settings before manually changing any values. There are two guides from Microsoft's support site which walk you through these processes, including how to backup the registry settings:

Manually Rebuild Performance Counter Library Values (Server 2008 and 2008 R2)

Manually Rebuild Performance Counter Library Values



After attempting to rebuild the Windows performance counters, you should contact and let us know which steps you have taken. We can then monitor your machines and determine if the issue has been fixed.




Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Please sign in to leave a comment.