Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Dynamics CRM APP crashing because of xp_userlock (sp_getapplock)

Posted on by 5

Hi,
lately our Dynamics CRM 365 On-prem has been experiencing daily problems. App crashes fully with only thing in event logs that tells us anything:

Query execution time of 37.7 seconds exceeded the threshold of 10 seconds. Thread: 20; Database: ****; Server:****; Query: sp_getapplock.

and this repeats many times over the history.

When querying database (MS SQL server 16) for which sessions are active it reports:

which is being executed by default user under which CRM itself runs on server.

As for the time frame this happens usually only once per day, but on completely unrelated hours.

Does anyone have any ideas why this would be happening since we are running completely out of them?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans