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)

  • TheGoodDBA Profile Picture
    235 on at
    RE: AX Database Slowness and continuing issues.

    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?

  • nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: AX Database Slowness and continuing issues.

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,004 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans