web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Multiple (over 150 ESTABLISHED) CrmAsynService connections to the database server

(0) ShareShare
ReportReport
Posted on by 423

How many "CrmAsyncService.exe" connections to the CRM Database-Server (on-premise) are normal? Our server has 150+ ESTABLISHED connections to the database server:

multiple-crmasycnservice-conntions.png

I already checked our plugin code for open SqlConnections but all are IDisposable (used with using).

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Radu Chiribelea Profile Picture
    6,667 on at

    Hello,

    I would personally collect a CRM Platform trace at a Verbose level and have a look at the call stack and see where this roots.

    Are you accessing the CRM DB directly from the Plug-in? Why not get the data via the CRM Web Service?

    Regards,

    Radu

  • bernhards Profile Picture
    423 on at

    Hi Radu, ^^

    Ok, I just turned it on for a short time and now I have a bunch of files. But for what keyword could I search? (I tried the server db IP, the hostname and sql.)

    All of the new plugins are using the web service but there is some legacy code dll that got migrated from the old crm 2011 system and it can be used by some old plugins. Since I am only one crm guy I had no time to investigate it. It can be that some of this old code opens a db connection and did not close it after that.

    What confuses me it that I thought the async service would only handle the email synchronisation?

    Something else is that we are still using Exchange 2010 Sp2...

    Thanks,

    Bernhard

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    I think it could be that you have loads of workflows or system jobs running in async. Its perfectly normal for CrmAsyncService to execute loads of concurrent sql queries.  The fact that the Process ID is  same, not much to worry about in my view.

    Check the System Jobs or Process Sessions to see if there jobs running

    If you do want to check log files, its hard to go through the file as it logs a lot, you can use the trace reader

    www.xrmtoolbox.com/.../MscrmTools.CrmTraceReader

  • Radu Chiribelea Profile Picture
    6,667 on at

    Hi Bernhard,

    As mentioned above - the Async Service handles other asynchronous tasks besides Server Side Synchronization for emails, appointments and tasks. For a full list you can check docs.microsoft.com/.../asyncoperation under OperationType.

    Regarding the traces, you can use the trace parser tool and filter them based on Platform.Sql events - there you could see the generated queries and narrow down to a specific plugin.

    However if you have many plugins or workflows triggered and which are set to run asynchronously + server side synchronization i don't think you should have any issues - unless the connections to the SQL DB were started outside the CRM WebService context.

    Regards,

    Radu

  • Community Member Profile Picture
    on at

    The new plugins are using web services  but there is some legacy code dll , that got migrated from old crm, However if you have many plugins or workflows triggered and which are set to run asynchronously.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans