locked
CrmAsyncService.exe 99% CPU usage RRS feed

  • Question

  •  

    A client has a dev system recently set up. I noticed some poor performance and checked the task manager.  The CrmAsycnService is hogging resources for long stretches of time - pegging cpu usage to 99%. Has anyone seen this or know a possible cause? We have installed several customizations including plugins.  I checked the plugin steps and all are set to run synchronously. Any advice appreciated. Thanks
    Friday, November 21, 2008 12:43 PM

Answers

All replies

  • do you have any messages in the event viewer?

     

    Friday, November 21, 2008 12:56 PM
  • The service just calmed down to and acted up again.. then calmed down again. Several fresh messages from the MSCRMAsycnService. Here is the first followed by two more in this post 

    Event Type: Error
    Event Source: MSCRMAsyncService
    Event Category: None
    Event ID: 17411
    Date:  11/21/2008
    Time:  7:48:15 AM
    User:  N/A
    Computer: XXXXXXXXXXXXXX

    Description:
    Hos tXXXXXXXXX: failed while monitoring asynchronous operations queue. Exception: System.InvalidOperationException: There was an error generating the XML document. ---> System.Net.WebException: The request was aborted: The request was canceled.
       at System.Net.ConnectStream.InternalWrite(Boolean async, Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
       at System.Net.ConnectStream.Write(Byte[] buffer, Int32 offset, Int32 size)
       at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
       at System.IO.StreamWriter.Write(Char value)
       at System.Xml.XmlTextWriter.InternalWriteEndElement(Boolean longFormat)
       at System.Xml.Serialization.XmlSerializationWriter.WriteTypedPrimitive(String name, String ns, Object o, Boolean xsiType)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write123_Object(String n, String ns, Object o, Boolean isNullable, Boolean needType)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write570_ConditionExpression(String n, String ns, ConditionExpression o, Boolean isNullable, Boolean needType)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write571_FilterExpression(String n, String ns, FilterExpression o, Boolean isNullable, Boolean needType)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write575_QueryExpression(String n, String ns, QueryExpression o, Boolean isNullable, Boolean needType)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write1628_RetrieveMultiple(Object[] p)
       at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
       --- End of inner exception stack trace ---
       at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
       at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Serialize(SoapClientMessage message)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.Crm.SdkTypeProxy.CrmService.RetrieveMultiple(QueryBase query)
       at Microsoft.Crm.Asynchronous.SdkTypeProxyCrmServiceWrapper.RetrieveMultiple(QueryBase query)
       at Microsoft.Crm.Asynchronous.UpdateContractStatesOperation.ExpireContracts()
       at Microsoft.Crm.Asynchronous.UpdateContractStatesOperation.InternalExecute(AsyncEvent asyncEvent)
       at Microsoft.Crm.Asynchronous.AsyncOperationCommand.Execute(AsyncEvent asyncEvent)
       at Microsoft.Crm.Asynchronous.QueueManager.PoolHandler.ProcessAsyncEvent(AsyncEvent asyncEvent)
       at Microsoft.Crm.Asynchronous.QueueManager.PoolHandler.InvokeHandlerInPool(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

     

    There are about 10 identical errors then an Information entry:

    Event Type: Information
    Event Source: MSCRMAsyncService
    Event Category: None
    Event ID: 17419
    Date:  11/21/2008
    Time:  7:49:16 AM
    User:  N/A
    Computer: xxxxxx1
    Description:
    Host xxxxxx1: starting service MSCRMAsyncService.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    and finally this

    Event Type: Information
    Event Source: MSCRMAsyncService
    Event Category: None
    Event ID: 17408
    Date:  11/21/2008
    Time:  7:49:18 AM
    User:  N/A
    Computer: xxxxxxxxx1
    Description:
    Host xxxxxxxx1: started monitoring asynchronous operations queue.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    Friday, November 21, 2008 1:03 PM
  • Friday, November 21, 2008 2:56 PM