Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

SDK V9 - Memory Leak

Posted on by Microsoft Employee

HI All,

We were having a CRM online V8.2 in which we have around 4 custom web application that are connecting to that CRM, the performance was great and the customer was satisfied.

Last month we were forced to upgrade the CRM to V9.1 and hence to upgrade the web applications to use the new nuget found here https://www.nuget.org/packages/Microsoft.CrmSdk.XrmTooling.CoreAssembly/

After using the new DLLs we face a nightmare issue, the web applications RAM, CPU and Traffic jump suddenly without any heavy traffic on those web applications and never come back to normal.

I realized something, that there was a memory leak issue on V8.2 that was fixed by an update as mentioned in the above URL and I'm afraid that this may the cause of the issue that we face now, did you face any issue like that lately with V9 ?

"

    8.2.0.5:
         Fix to memory leak in Microsoft.Xrm.Tooling.Connector.TraceLoggerBase.  Trace Listener collection would not be released within a process over a very long time frame over multiple connections. This would manifest as increasing memory consumption over a very long period.
         Fix cleans this up on the .dispose() call on the CrmServiceClient.
         Note: if you have built your own logger based on the Microsoft.Xrm.Tooling.Connector.TraceLoggerBase, you must call .dispose() when you are done with it to clean up the listener collection assigned to it.

"

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans