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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Paging file size and performance

(0) ShareShare
ReportReport
Posted on by 6,603

Hello. We've been experiencing a really performance degradation in the past few weeks. During a maintenance we discovered we had run out of disk space on one of our AOS instance. It was suggested to reduce the pagefile size for that instance from its then current size of 30gb to 10gb. I also understand it's not currently configure to auto-grow. The available disk space hasn't changed much since. The question is would a change like this impact performance and response time in AX? I couldn't give you much more in details but I would like some general comments if anyone is able to share. Thanks much!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Klaas Deforche Profile Picture
    2,433 on at
    RE: Paging file size and performance

    Hi,

    How much RAM do you have on that server? And how much is used normally? How much is used on peak moments? Are you noticing that the AOS runs out of RAM (this is normally logged in the event log, including the amount of RAM applications are using)?

    I'm no pagefile-expert, but I think it is best practice to put your page file on a separate disk than you OS. If you can, you should probably do that. The size of your pagefile depends on how much ram you have, but I am unsure if there is consensus of how large it should be. Maybe you should go with the amount that windows recommends? If your pagefile is heavily used, this probably means that you do not have enough RAM on your machine. A pagefile resides on disk, so swapping stuff from RAM to your page file and back will cause disk IO's. In my experience, many servers have very slow disks. It's all virtual/network/clustered nowadays, but that's certainly not a guarantee for good performance, on the contrary. In my opinion you should avoid reading/writing to hard disk as much as possible, in your case, this probably mean adding more RAM, or installing more AOSes so you can load balance. Maybe you can optimize your processes so they use less RAM?

    Also, you should definitely make sure you have enough disk space on your aoses. You wouldn't want things do go wrong because you run out of disk space, it's just not worth it.

    Did you change something right before you started noticing performance degradation?

  • bankk Profile Picture
    6,603 on at
    RE: Paging file size and performance

    Hi Klaas, we're running a virtual server and it has 48GB of memory. As we've been having these performance issues i occasionally check the resources and memory hovers around 20-25% and I've never seen it go beyond close to 50%. Also, there are no entries in the event log that indicate any sort of memory shortage. System-wise, CPU usage isn't high, there's plenty of disk space now, and memory has not been an issue.

    As far as system changes, we were moving some code into production that night when we ran into the disk space problem. The performance issue isn't system-wide in that every part of AX is impacted. Specific functions like posting invoices, certain reports, some customized functions seem to be impacted. I learned today user experience with the same transaction could be different also meaning personA and personB might be processing an sales invoices but only personA might see the performance issue. It's very strange and I know there's got to be an explanation but a bit confused and baffled as to where to start.

    Thanks much for any additional suggestions.

  • DaxNigel Profile Picture
    2,574 on at
    RE: Paging file size and performance

    In a virtual environment it is almost always related to SQL Server disk IO issues. The SQL server disk IO gets over stressed and you get lots of wait events for data. When multiple users are on the system then one user is the head of the queue the other is waiting, hence the difference in performance. You can also have issues in the system ,un-optimized SQL indexes and table lock issues, but that would require additional analysis.

  • bankk Profile Picture
    6,603 on at
    RE: Paging file size and performance

    DaxNigel...we've already found a missing index which greatly improved one of our long-running report. There are so many other areas which are suffering from performance issues but we're definitely going to concentrate effort on the SQL server.

  • DaxNigel Profile Picture
    2,574 on at
    RE: Paging file size and performance

    I can never express enough the importance of performance reviewing the system on a regular basis. It can make all the difference.

  • bankk Profile Picture
    6,603 on at
    RE: Paging file size and performance

    Absolutely! We're finding that out the hard way. If you have suggested guidelines on how to do so, please, I would appreciate a forward. Thank you.

  • Verified answer
    DaxNigel Profile Picture
    2,574 on at
    RE: Paging file size and performance

    Different people take different approaches, but what I find the most beneficial for most customers is the following approach:

    1. Check SQL is configured correctly.

    2. Check hardware is sufficient for current system requirements.

    3. Check all indexed fields have statistic available.

    4. Determine if the Parameter sniffing issue is relevant to your system. If so take corrective action.

    5. Check the health of the current indexes, and re-build indexes that are necessary.

    6. Check SQL for long running queries. (dont get to stressed on this one, I would look for queries that run for a long time and stand out as areas you either have problems with, or areas you have done lots of customizations)

    7. Use targeted analysis on individual processes.

    Items 1-5 and 7 are key to the system performance. 2 is important as systems change, and you need to evaluate if your current system is still running within the original design criteria, if not you may need to change your hardware configuration.

    Item 7 is the main area I work in once the core system if done (1-5). Using tools like Trace Parser, SQL profiler and SQL database enging tuning this is where most of the benifit will be achieved. Target the process in AX that is causing the problem problems or having the business issues. Trace Parse this process, and review all the SQL calls. Look for un-indexed searches and poor AX code (Select * from, and loops within loops) Evaluate if these can be removed, reduced or optimized. Adjust the system, and run again, did the performance improve. Target 1-5 processes only, then release the changes to production. See how users respond.

    Often small changes to indexes and code will produce big results to the process, and often to the entire system, as one are of the system is used by many other objects, so fixing one issue will help other areas of the system.

    I hope this helps you move forward to improve the performance of your system.

    Please tick the answers your question if you feel that it did help you.

    Nigel

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans