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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

AX - slow despite near 0 database utilization

(3) ShareShare
ReportReport
Posted on by 8
Hi. I am amidst AX upgrade project. 

OS is getting upgraded from 2012 to 2016, SQL server is upgraded from 2012 business intelligence edition to 2016 standard. AX should be 2012 CU9. Operating systems as well as SQL servers have received necessary updates. 
 
As a MS SQL specialist, I have been invited over to tell why AX is slow. I have no access to AX part, however when monitoring database, while running tasks that are reported as slow, the database resource utilization is constantly low - around 2-4% with no peaks whatsoever. 
 
On the side of the database, I have tried everything possible including playing with MAXDOP despite MSFT recommendation, changing compat levels, enabling trace flag T4199 with no obvious pattern in terms of improvement or worsening after database settings change. All these observations (low utilization, no change in AX task runtimes after DB server settings change, ... ) lead me to conclusion that problems lies within AX, not a database. A SQL query that runs on old database server in 55 seconds is executed in 16-21 seconds on the new database server. 

Are there any general areas to check to make AX put some load on the database server, in hope of tasks finishing faster? 

Thanks

 
Categories:
I have the same question (0)
  • Jonas "Jones" Melgaard Profile Picture
    5,008 Most Valuable Professional on at
    It might not be related to SQL Server, but rather the application servers or how the clients have been configured. A performance project requires a holistic review of the entire application, as you said.

    Denis Trunin has written some great articles on optimizing Dynamics AX, from running a performance project to optimizing SQL performance. This article is a good entry point: https://denistrunin.com/performance-projmanage/

    That said, 16–21 seconds feels a bit excessive… How often does this query run?
  • André Arnaud de Calavon Profile Picture
    303,247 Super User 2026 Season 1 on at
    Hi,
     
    As mentioned by Jonas, there can be a lot of root causes of slowness. A query of 55 seconds is possible, but can you tell what exactly is being performed in AX itself? Using several performance tools, it can be identified what exactly is slow. Only then choose to check for database tuning or other mitigation options,
  • Suggested answer
    CU16121119-0 Profile Picture
    8 on at
    Hello, 

    I understand that my generic problem description can only yield generic answers. Sadly, I have neither clue about nor access to AX. That is a competency of different team. 
     
    The 55 and 16 seconds was a mere benchmark to see if the older system performs worse or not. For certain MAXDOP > 1 and compat level 2008 + TF4199, it is more performant than the current PROD system as the significant time decrease (55 → 16 seconds denotes). The goal wasn't to tune the query. 
     
    To explain the problem from a slightly different perspective. Reports being executed on the new AX cannot utilize database server's hardware in any way possible. There's only one report that can and takes 5 minutes (new system) instead of 2+ hours. 

    That gives me clue in the sense that what can properly use the database server runs faster, what can't has a sluggish performance while DB server is idling. 

    It is AX consultant's turn now to seek in AX why new system is slower and can't leverage DB server in any way. 

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 545 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 408

#3
Adis Profile Picture

Adis 267 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans