Error, "Process performance counter is disabled, so the requested operation cannot be performed"

Article:TECH40069  |  Created: 2008-05-30  |  Updated: 2008-11-26  |  Article URL http://www.symantec.com/docs/TECH40069
Article Type
Technical Solution



Issue



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= )


Environment



Task Server 6.0

Cause



Multiple:
  1. 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.

 

  1.   
  2. 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.

Solution



  1. Open Performance Monitor by clicking Start > Run > Type in Perfmon and choose Ok.
  2. Verify that the Process Monitor object exists, as illustrated in the screenshot posted above.
  3. If the Process object exists, choose all of the Process objects counters and all instances, click Add, and then watch the graph.
  4. Do they all run successfully?  
  5. If the counters are missing, then you will need to enable them.
  6. Microsoft provides several KB articles to handle this situation. Begin by reading http://support.microsoft.com/default.aspx?kbid=300956  If the steps in this KB not work properly, and if your server is Microsoft Windows Server 2003, try the next step
  7. Download and install the Windows Server 2003 Resource Kit on the Notification Server or Task Server
  8. Open the Windows Server 2003 Resource Kit command prompt
  9. Type in "exctrlst.exe" to bring up the Extensible Counter List as shown in the screenshot below:
  10. Scroll down to select the PerfProc Performance Counter as highlighted in the screenshot above.
  11. Toggle the "Performance Counters Enabled" checkbox on and off several times, then make sure it remains Enabled. 
    (indicated by the Red Arrow in the screenshot above)
  12. If it was still open, close Perfmon, reopen Perfmon and the Process Performance object will now be available.
  13. Restart the Altiris Object Host Service
  14. Restart the Altiris Client Task Dataloader Service
  15. The problem should be resolved.


Legacy ID



41884


Article URL http://www.symantec.com/docs/TECH40069


Terms of use for this information are found in Legal Notices