Error, "Process performance counter is disabled, so the requested operation cannot be performed"
Last Updated June 11, 2008
I received the following error:
Priority: 1 Date: 2/27/2008 5:10:29 AM Tick Count: 992120765 Host Name: NS Process: w3wp.exe (2420) Thread ID: 7508 Module: AltirisNativeHelper.dll Source: Altiris.ClientTask.Web.ReportTaskData.Page_Load Description: An exception occurred while attempting load task data ( Unhandled exception. Type=System.Exception Msg=An exception occurred while executing the request Src=Altiris.Core.Smg StackTrace= at Altiris.Core.Sockets.SecureRemoting.SecureRemotingClient.SendRequestI(String service, Hashtable input) at Altiris.Core.Sockets.SecureRemoting.SecureRemotingClient.SendRequest(String service, Hashtable input) at Altiris.ClientTask.Web.ReportTaskData.LoadStatusXmlStream() at Altiris.ClientTask.Web.ReportTaskData.Page_Load(Object sender, EventArgs e)
Inner exception. Type=System.Exception Msg=System.InvalidOperationException: Process performance counter is disabled, so the requested operation cannot be performed. at System.Diagnostics.NtProcessManager.GetProcessInfos(PerformanceCounterLib library) at System.Diagnostics.NtProcessManager.GetProcessInfos(String machineName, Boolean isRemoteMachine) at System.Diagnostics.ProcessManager.GetProcessInfos(String machineName) at System.Diagnostics.Process.EnsureState(State state) at System.Diagnostics.Process.get_WorkingSet() at CTDataLoad.DataLoaderThread.OnReportStatusXml(Hashtable input, Hashtable& output) at Altiris.Core.Sockets.SecureRemoting.SecureRemotingServer.ProcessRequestObject(Object work) Src= StackTrace= )
The most common cause of this problem is that the Microsoft Windows Performance Counters for the Performance Object named "Process" is missing. The screenshot below illustrates a properly working Windows Server.
It has also been observed that 3rd party or internally developed applications running on the NS server could be disabling the Process performance objects from running.
Open Performance Monitor by clicking Start > Run > Type in Perfmon and choose Ok.
Verify that the Process Monitor object exists, as illustrated in the screenshot posted above.
If the Process object exists, choose all of the Process objects counters and all instances, click Add, and then watch the graph.
Do they all run successfully?
If the counters are missing, then you will need to enable them.