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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

AX Database Slowness and continuing issues.

(0) ShareShare
ReportReport
Posted on by 20

We are on AX 2012 R1

Short Summary of Issue:

After around a week of running after a SQL service restart, the database stops using memory caches to execute queries, and starts depending on file IO.

This makes every query in the system take 20 times longer to run, and makes the system unusable for employees.

 

Current Resolutions:

When we restart the SQL server service, the system works for 1 to 2 weeks, and then we need to restart again.

We also have attempted to utilize the following scripts to clear cached memory, with varied, and temporary results.

DBCC FREEPROCCACHE (This buys us an extra 1-2 days at most, but we can run it several times before it stops fixing the issue)

DBCC FREEPROCCACHE('default') (Same as above)

DBCC FREESYSTEMCACHE('SQL Plans') (Does not seem to help, or actually clear any caches)

DBCC FREESYSTEMCACHE ('ALL') WITH MARK_IN_USE_FOR_REMOVAL (Does not seem to help, or actually clear any caches)

Use TP_AX2012;

Declare @dbid int = db_ID()

DBCC FLUSHPROCINDB (@dbId) (Did not see any improvement)

DBCC FREESESSIONCACHE (This seems to make the situation worse)

I have the same question (0)
  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Hi AnnaP,

    since this question seems to be related to SQL Server, not AX (even though AX database is there), you might also want to post this question to SQL Server forums / communities to reach more SQL experts.

  • TheGoodDBA Profile Picture
    235 on at

    I assume you are on SQL2012.  What service pack level have you applied?  Have you found any known issues with memory caching leaks in updates you have not applied?

    How much RAM is on the SQL Server?

    Have you begun performance monitoring the server to determine the possible trigger points to system degradation?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans