Failed to setup performance counters.
search cancel

Failed to setup performance counters.

book

Article ID: 163243

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

Getting error related to Performance Counter repeatedly in Altiris Log Viewer logs.

Database counters failed to validate, recreating.
Process: AtrsHost (3880), Thread ID: 27, Module: AtrsHost.exe Priority: 2, Source: Altiris.TaskManagement.Performance.DeadlockPerformanceCounter.Validate File: C:\ProgramData\Symantec\SMP\Logs\a.log Failed to setup performance counters. The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly. [System.InvalidOperationException @ System] at System.Diagnostics.PerformanceCounter.InitializeImpl() at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly) at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, Boolean readOnly) at Altiris.ClientTask.Server.RemoteClientTaskManager.PerformanceCounterInstaller()

Environment

8.x

Cause

This behavior may occur if certain extensible counters corrupt the registry, or if Windows Management Instrumentation (WMI) based programs modify the registry.

Resolution

Please refer to Microsoft KB article: https://support.microsoft.com/en-us/kb/2554336 for details and follow the suggestions.

  • Verify if counters are disabled via registry key
    • HKLM\System\CurrentControlSet\Services\%servicename%\Performance
  • Then rebuild Performance Counters with lodctr /R command if required.