Tech Support > Microsoft Windows > Windows CRM > MSCRMAsyncService eating up all CPU performance
MSCRMAsyncService eating up all CPU performance
Posted by Alex (crm-resultants.nl) on March 12th, 2008


Hi,

We now have implemented a couple of single server/processor 4.0 installations.
But often (on 64bit OS) we see MSCRMAsyncService eating up all CPU and a lot
of memory from time to time; making working with CRM impossible. Could not be
that the service is bussy on something, because CRM is installed from scratch
with no data.

Anyone?

Posted by Robert MacLean on March 17th, 2008


"Alex (crm-resultants.nl)" <Alexcrmresultantsnl@discussions.microsoft.com>
wrote in message news:24DE208A-C9E1-4488-BCB7-7F26F6BAAC98@microsoft.com...
Anything listed in system jobs (settings area) that corresponds to the time
of these spikes?

--
Robert MacLean
http://www.sadev.co.za


Posted by Alex (crm-resultants.nl) on April 25th, 2008




"Robert MacLean" wrote:

No settings done what soever. Clean install.
It does this behavior a couple of times only on x64 systems and only after
reboot of CRM server: The process eats all CPU for about 5 minutes. During
this the process uses about 700 Mb extra internal memory and releases it
again.




Posted by Alex (crm-resultants.nl) on May 2nd, 2008


Migrated crm 32b to x64 version but that did not help:
11 the same errormessages are logged in the eventlog during the 100% CPU time:

Event Type: Error
Event Source: MSCRMAsyncService
Event Category: None
Event ID: 17411
Date: 2-5-2008
Time: 10:13:20
User: N/A
Computer: TD4-CRM1
Description:
Host TD4-CRM1: 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(B oolean longFormat)
at
System.Xml.Serialization.XmlSerializationWriter.Wr iteTypedPrimitive(String
name, String ns, Object o, Boolean xsiType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationWriter1.Write123_Object(String n, String ns, Object o, Boolean isNullable, Boolean needType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationWriter1.Write570_ConditionExpression(S tring
n, String ns, ConditionExpression o, Boolean isNullable, Boolean needType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationWriter1.Write571_FilterExpression(Stri ng
n, String ns, FilterExpression o, Boolean isNullable, Boolean needType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationWriter1.Write575_QueryExpression(Strin g
n, String ns, QueryExpression o, Boolean isNullable, Boolean needType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationWriter1.Write1628_RetrieveMultiple(Obj ect[] p)
at System.Xml.Serialization.XmlSerializer.Serialize(X mlWriter xmlWriter,
Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Serialize(X mlWriter xmlWriter,
Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
at System.Xml.Serialization.XmlSerializer.Serialize(X mlWriter xmlWriter,
Object o, XmlSerializerNamespaces namespaces, String encodingStyle)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Serialize(SoapClientMessage message)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
at Microsoft.Crm.SdkTypeProxy.CrmService.RetrieveMult iple(QueryBase query)
at
Microsoft.Crm.Asynchronous.SdkTypeProxyCrmServiceW rapper.RetrieveMultiple(QueryBase query)
at
Microsoft.Crm.Asynchronous.UpdateContractStatesOpe ration.ExpireContracts()
at
Microsoft.Crm.Asynchronous.UpdateContractStatesOpe ration.InternalExecute(AsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.AsyncOperationCommand.E xecute(AsyncEvent
asyncEvent)
at
Microsoft.Crm.Asynchronous.QueueManager.PoolHandle r.ProcessAsyncEvent(AsyncEvent asyncEvent)
at
Microsoft.Crm.Asynchronous.QueueManager.PoolHandle r.InvokeHandlerInPool(Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text
executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWa itCallback(Object
state)




In the CRMDiagTool :


|Organization:e0e61756-dab3-4350-a712-481acbf018c9 |Thread: 7 |Category:
Platform.Async |User: 00000000-0000-0000-0000-000000000000 |Level: Error |
UpdateContractStatesOperation.InternalExecute
at UpdateContractStatesOperation.InternalExecute(Asyn cEvent asyncEvent)
at AsyncOperationCommand.Execute(AsyncEvent asyncEvent)
at PoolHandler.ProcessAsyncEvent(AsyncEvent asyncEvent)
at PoolHandler.InvokeHandlerInPool(Object state)
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback
callback, Object state)
at _ThreadPoolWaitCallback.PerformWaitCallback(Object state)


"Alex (crm-resultants.nl)" wrote:

Posted by Alex (crm-resultants.nl) on May 2nd, 2008


Fixed it: .net 3.0 Sp1 did the trick, somehow....

"Alex (crm-resultants.nl)" wrote:


Similar Posts