Regarding enabling performance counter

Bhavin Neema asked on January 22, 2019 08:00

I have successfully enabled performance counter. Now when I'm checking in event log it gives below error.

Error writting to counter 'Allocated memory in MB' in category 'Kentico - General (CMS/Default Web Site)'.Make sure you have the counter correctly registered.Original message: System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.at System.Diagnostics.PerformanceCounter.InitializeImpl()at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)at CMS.HealthMonitoring.HealthMonitoringManager.GetCounter(String categoryName, Counter counter, String instanceName)at CMS.HealthMonitoring.HealthMonitoringManager.SetCounterValue(String categoryName, Counter counter, String instanceName, Int64 value)

Can you please suggest me regarding the same.

Recent Answers


daniel jacob answered on May 8, 2019 07:21

it seems like you haven't successfully enabled performance counter, make sure you have the counter correctly registered .

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.