none
CrmAsyncService 100% CPU RRS feed

  • Pergunta

  • Bom dia Srs.

    Venho enfrentando um problema de lentidão com meu ambiente de produção Dynamics CRM 4.0
    Windows 2003 Server - Aplicação CRM 4
    Windows 2008 Server - Banco de Dados SQL Server 2008.

    Há alguns dias o ambiente começou a apresentar lentidão e percebi que o Serviço de Processamento Assíncrono (CrmAsyncService) está utilizando 100% de CPU. Efetuei algumas verificações conforme fóruns da Microsoft, percebi que alguns problemas que não sei se interferem nesta lentidão.

    1- Registros Deletados da Base (DeletionStateCode = 2) não estão sendo removidos pelo Job de Limpeza do Bancos de Dados (HardDelete), percebo que o job é executado normalmente e se concluí com sucesso mas os registros continuam na base com o deletionstatecode 2.

    2- Conforme orientação em pesquisa habilitei Trace para verificação de logs de erros mas ainda não consegui identificar o que pode ser.

    Abaixo são os Logs gerados, são diversas linhas mas todas semelhantes a esta postada:

    ------------------------------- AsyncService-----------------------------
    # CRM Tracing Version 2.0
    # LocalTime: 2014-09-19 01:43:33.8
    # Categories:
    # CallStackOn: No
    # ComputerName: CRM01
    # CRMVersion: 4.0.7333.3822
    # DeploymentType: OnPremise
    # ScaleGroup:
    # ServerRole: AppServer, AsyncService, DiscoveryService, WebService, ApiServer, HelpServer, DeploymentService

    [2014-09-19 01:43:33.8] Process:CrmAsyncService |Organization:5102b778-82a6-44b5-a715-ced4a6ce2a89 |Thread:   54 |Category: Platform.Workflow |User: 00000000-0000-0000-0000-000000000000 |Level: Error | WorkflowHost.OnWorkflowTerminated
    >Workflow terminated: {2860C77F-B73F-E411-82DE-000C29DB6ACA} - Microsoft.Crm.Workflow.Activities.StopWorkflowException
       at Microsoft.Crm.Workflow.Activities.StopWorkflowActivity.Execute(ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
       at System.Workflow.Runtime.Scheduler.Run()
    [2014-09-19 01:44:27.3] Process:CrmAsyncService |Organization:5102b778-82a6-44b5-a715-ced4a6ce2a89 |Thread:   50 |Category: Platform.Workflow |User: 00000000-0000-0000-0000-000000000000 |Level: Error | WorkflowHost.OnWorkflowTerminated
    >Workflow terminated: {8C08CC97-B73F-E411-82DE-000C29DB6ACA} - Microsoft.Crm.Workflow.Activities.StopWorkflowException
       at Microsoft.Crm.Workflow.Activities.StopWorkflowActivity.Execute(ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
       at System.Workflow.Runtime.Scheduler.Run()

    ------------------------------------w3wp-CRMWeb------------------------------------

    # CRM Tracing Version 2.0
    # LocalTime: 2014-09-19 10:34:51.8
    # Categories:
    # CallStackOn: No
    # ComputerName: CRM01
    # CRMVersion: 4.0.7333.3822
    # DeploymentType: OnPremise
    # ScaleGroup:
    # ServerRole: AppServer, AsyncService, DiscoveryService, WebService, ApiServer, HelpServer, DeploymentService

    [2014-09-19 10:34:51.8] Process: w3wp |Organization:5102b778-82a6-44b5-a715-ced4a6ce2a89 |Thread:    5 |Category: Platform |User: e0ae5de1-7adf-e311-94ab-0024e86c7967 |Level: Error | MessageProcessor.Execute
    >MessageProcessor fail to process message 'CreateOutlookSubscription' for 'none'.
    [2014-09-19 10:34:51.9] Process: w3wp |Organization:5102b778-82a6-44b5-a715-ced4a6ce2a89 |Thread:    5 |Category: Platform.Sdk |User: e0ae5de1-7adf-e311-94ab-0024e86c7967 |Level: Error | CompositeSoapExtensionExceptionHandler.Handle
    >CrmSoapExtension detected CrmException:
    System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Crm.BusinessEntities.CrmSecurityException: SecLib::CrmCheckPrivilege failed. Returned hr = -2147220960 on UserId: e0ae5de1-7adf-e311-94ab-0024e86c7967 and PrivilegeId: daaab59c-0d93-492e-b25e-c9a2e19497ed
       at Microsoft.Crm.BusinessEntities.SecurityLibrary.CheckPrivilege(Guid user, Guid privilege, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.SubscriptionService.CheckPrivilegeSyncToOutlook(ExecutionContext context)
       at Microsoft.Crm.ObjectModel.SubscriptionService.TryGetUserSubscription(String machineName, Int32 type, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.SubscriptionClientsService.CreateOutlookSubscription(IBusinessEntity entity, ExecutionContext context)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
       at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IPluginExecutionContext context)
       at Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.Crm2007.CrmService.Execute(Request request)
       --- End of inner exception stack trace ---
    [2014-09-19 10:34:52.2] Process: w3wp |Organization:5102b778-82a6-44b5-a715-ced4a6ce2a89 |Thread:    5 |Category: Exception |User: f07678b0-3fe0-de11-83f5-0024e86c7967 |Level: Error | CrmException..ctor
     at CrmException..ctor(String message, Int32 errorCode)
     at CrmSecurityException..ctor(String message, Int32 errorCode)
     at SecurityLibrary.CheckPrivilege(Guid user, Guid privilege, ExecutionContext context)
     at SecurityLibrary.CheckPrivilege(Guid user, EntityMetadata metadata, PrivilegeType type, ExecutionContext context)
     at SecurityExtension.PreDeleteHandler(ExtensionEventArgs e, Object sender)
     at BusinessProcessObject.Delete(BusinessEntityMoniker moniker, ExecutionContext context)
     at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at LogicalMethodInfo.Invoke(Object target, Object[] values)
     at InternalOperationPlugin.Execute(IPluginExecutionContext context)
     at PluginStep.Execute(PipelineExecutionContext context)
     at Pipeline.Execute(PipelineExecutionContext context)
     at MessageProcessor.Execute(PipelineExecutionContext context)
     at InternalMessageDispatcher.Execute(PipelineExecutionContext context)
     at ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
     at RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
     at RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
     at CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
     at CrmService.Execute(Request request)
     at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at LogicalMethodInfo.Invoke(Object target, Object[] values)
     at WebServiceHandler.Invoke()
     at WebServiceHandler.CoreProcessRequest()
     at SyncSessionlessHandler.ProcessRequest(HttpContext context)
     at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
     at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
     at ApplicationStepManager.ResumeSteps(Exception error)
     at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
     at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
     at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
     at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
    >Crm Exception: Message: SecLib::CrmCheckPrivilege failed. Returned hr = -2147220960 on UserId: f07678b0-3fe0-de11-83f5-0024e86c7967 and PrivilegeId: bb4457f2-9b45-4482-a95a-7adef25f388a, ErrorCode: -2147220960
    [2014-09-19 10:34:52.2] Process: w3wp |Organization:5102b778-82a6-44b5-a715-ced4a6ce2a89 |Thread:    5 |Category: Platform |User: f07678b0-3fe0-de11-83f5-0024e86c7967 |Level: Error | MessageProcessor.Execute
    >MessageProcessor fail to process message 'Delete' for 'task'.
    [2014-09-19 10:34:52.3] Process: w3wp |Organization:5102b778-82a6-44b5-a715-ced4a6ce2a89 |Thread:    5 |Category: Platform.Sdk |User: f07678b0-3fe0-de11-83f5-0024e86c7967 |Level: Error | CompositeSoapExtensionExceptionHandler.Handle
    >CrmSoapExtension detected CrmException:
    System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Crm.BusinessEntities.CrmSecurityException: SecLib::CrmCheckPrivilege failed. Returned hr = -2147220960 on UserId: f07678b0-3fe0-de11-83f5-0024e86c7967 and PrivilegeId: bb4457f2-9b45-4482-a95a-7adef25f388a
       at Microsoft.Crm.BusinessEntities.SecurityLibrary.CheckPrivilege(Guid user, Guid privilege, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.SecurityLibrary.CheckPrivilege(Guid user, EntityMetadata metadata, PrivilegeType type, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.SecurityExtension.PreDeleteHandler(ExtensionEventArgs e, Object sender)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Delete(BusinessEntityMoniker moniker, ExecutionContext context)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
       at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IPluginExecutionContext context)
       at Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.Crm2007.CrmService.Execute(Request request)

    ##############################

    Alguém consegue me ajudar?

    Desde já obrigado

    Anderson

    sexta-feira, 19 de setembro de 2014 14:07

Todas as Respostas

  • Boas A. Martins,

    Já resolveu este problema?

    Espero ter ajudado.
    Se respondi a sua pergunta por favor marque como resposta e\ou como útil.


    Pedro Azevedo Crm Specialist 4.0\2011

    sexta-feira, 19 de dezembro de 2014 15:53