11Aug/100

WARN Could not create an instance of the counter …

Sitecore log files bigger than they should be? Are you finding "Could not create an instance of the counter" ... numerous times? Well this seems to be a common problem especially if you have manually installed Sitecore. The problem is that the counters are not installed. Sitecore has realized this and created a script to install the necessary performance counters.

This is the second time I have encountered the following error and figured I should post it on my own site for reference.

Reposted from: http://mtv-on-dotnet-dev.blogspot.com/2010/01/sitecore-log-warn-counter-category.html

The warning:
3828 12:10:43 WARN  Could not create an instance of the counter 'Reflection.ObjectsCreated' (category: 'Sitecore.System')
'Reflection.ObjectsCreated' is the example I chose from my log, however, the actual counter may differ.

The fix:

  • Access the FAQ titled "Sitecore log filling up with warnings."
  • Download the SitecoreCounters.zip. (If you are running Sitecore 6.0, 6.1, or 6.2 - you will not need to download the "the attached xml counters[Sitecore6].zip file")
  • Unzip SitecoreCounters.zip on your Sitecore server.
  • Execute SitecoreCounters.exe. A console window will open and it will scroll through information about which counters it is creating. This took about a minute to run in my environment.
  • You can hit any key in the console window to close it.
  • That's it, no more warnings in your log files.

  • Comments (0) Trackbacks (0)

    No comments yet.


    Leave a comment

    (required)

    No trackbacks yet.

    Close
    E-mail It