How to fix missing Sitecore performance counters

I have seen the following type of warnings in Sitecore logs:

7584 10:28:32 WARN  Counter category 'Sitecore.Security' does not exist on this server. Using temporary internal counter for 'AccessDenied'.
7584 10:28:32 WARN  Counter category 'Sitecore.Security' does not exist on this server. Using temporary internal counter for 'AccessGranted'.
7584 10:28:32 WARN  Counter category 'Sitecore.Security' does not exist on this server. Using temporary internal counter for 'AccessResolved'.
7584 10:28:32 WARN  Counter category 'Sitecore.Security' does not exist on this server. Using temporary internal counter for 'ModifyRequests'.
7584 10:28:32 WARN  Counter category 'Sitecore.Security' does not exist on this server. Using temporary internal counter for 'ProgrammaticDisabling'.
7584 10:28:32 WARN  Counter category 'Sitecore.Security' does not exist on this server. Using temporary internal counter for 'ProgrammaticEnabling'.
7584 10:28:32 WARN  Counter category 'Sitecore.Security' does not exist on this server. Using temporary internal counter for 'ProgrammaticUserSwitch'.

If you want to verify if your logs have similar errors simply search for the string “Using temporary internal counter for” in your latest log file.
This seems to happen a lot when an older version of Sitecore gets upgraded. Today I happened to stumble into the solution!

To resolve this problem:
1) Download sitecorecounters.zip from Sitecore at http://sdn.sitecore.net/upload/sdn5/faq/administration/sitecorecounters.zip
2) Unzip the archive.
3) Run the SitecoreCounters.exe program on every production / QA server and on every developer machine in order to re-register the Sitecore performance counters.

Advertisements

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