Wednesday, July 13, 2011

Configuring the Sitecore performance counters

Issue

When running a local Sitecore CMS 6.x install warning messages were being created about missing Counter category's from Sitecore.Diagnostics.PerformanceCounters.PerformanceCounter.

Counter category 'Sitecore.Data' does not exist on this server. Using temporary internal counter for 'Links.FieldsExamined'. 
Counter category 'Sitecore.Data' does not exist on this server. Using temporary internal counter for 'Links.DataRehttp://www.blogger.com/img/blank.gifad'. 
Counter category 'Sitecore.Data' does not exist on this server. Using temporary internal counter for 'Links.DataUpdated'. 
Counter category 'Sitecore.Jobs' does not exist on this server. Using temporary internal counter for 'Publishing.http://www.blogger.com/img/blank.gifFullPublishings'. 
Counter category 'Sitecore.Jobs' does not exist on this server. Using temporary internal counter for 'Publishing.IncrementalPublishings'. 
Counter category 'Sitecore.Jobs' does not exist on this server. Using temporary internal counter for 'Publishing.ItemPublishings'. 
Counter category 'Sitecore.Jobs' does not exist on this server. Using temporary internal counter for 'Publishing.ItemsExamined'. 
Counter category 'Sitecore.Jobs' does not exist on this server. Using temporary internal counter for 'Publishing.ItemsPublished'. 
Counter category 'Sitecore.Jobs' does not exist on this server. Using temporary internal counter for 'Publishing.ItemsQueued'. 
Counter category 'Sitecore.Jobs' does not exist on this server. Using temporary internal counter for 'Publishing.Replacements'. 
Counter category 'Sitecore.Jobs' does not exist on this server. Using temporary internal counter for 'Publishing.SmartPublishings'. 
Counter category 'Sitecore.Jobs' does not exist on this server. Using temporary internal counter for 'Publishing.TotalPublishings'. 

Solution

The Sitecore-specific performance counters need to be installed. There is an installer at http://sdn.sitecore.net/upload/sdn5/faq/administration/sitecorecounters.zip. On Windows 2008 R2 I needed to run this as an administrator.

After configuring the performance counters they can be selected in PerfMon

See Also: