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 :
Microsoft Dynamics AX (Archived)

AOS - Out of memory - Maximum users per AOS?

(0) ShareShare
ReportReport
Posted on by 17,788

Twice I've seen our AOS (R3 6.3.3000.1310 binaries) crash with an "Out of memory" event.

Note that the OS itself was not out of memory (as proved by ongoing Perflog monitoring showing >4GB free on the OS at all times).

I've been debating whether the problem is an excessive number of users on the AOS (roughly 100 users/400 sessions at peak load), or a memory leak.  I've seen posts in these forums where people claim you can run 3,000 users on an AOS with enough hardware.  At 100 users, the Ax32Serv.exe consumes about 10 GB of RAM.  I have a hard time believing that the AOS can effectively manage 30 times that, or 300 GB of RAM, assuming a linear scaling.

Alternately, since it appears that the AOS is doing its own internal memory management (maybe getting larger blocks of RAM from the OS and breaking it up itself), it could just be a straight bug with its own memory management, not an OS problem.

Best practices and official recommendations aside, how many users per AOS can we reliably run in the real world? 

Thanks in advance for your feedback.

The first event.

Log Name: Application
Source: Dynamics Server 01
Date: 6/30/2016 2:08:47 PM
Event ID: 110
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Object Server 01: Out of memory.

This is followed by a 2nd AX event.

Log Name: Application
Source: Dynamics Server 01
Date: 6/30/2016 2:08:47 PM
Event ID: 110
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Object Server 01: Unexpected situation
More Information: Out of memory.

And then finally the crash handled by the OS.

Log Name: Application
Source: Application Error
Date: 6/30/2016 2:08:50 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Description:
Faulting application name: Ax32Serv.exe, version: 6.3.3000.1310, time stamp: 0x56b2d8c1
Faulting module name: KERNELBASE.dll, version: 6.3.9600.18292, time stamp: 0x56fcb50a
Exception code: 0xc0000005
Fault offset: 0x0000000000008a5c
Faulting process id: 0x56a0
Faulting application start time: 0x01d1cf44ad024cfb
Faulting application path: C:\Program Files\Microsoft Dynamics AX\60\Server\DAX_PROD\Bin\Ax32Serv.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: b1f63800-3eed-11e6-80e7-00155d7b0c57
Faulting package full name:
Faulting package-relative application ID:

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    303,730 Super User 2026 Season 1 on at

    Hi Brandon,

    During monitoring there was about 4GB memory available. Is this really free for only the physical memory or also including the disk capacity?

  • Brandon Wiese Profile Picture
    17,788 on at

    It was free RAM.  Plus the OS is virtual and using Dynamic RAM, and it still had another 6 or 8 GB of headroom to expand, and the Hyper-V host had 80-90 GB free.  There's absolutely no evidence to support that the AOS was unable to allocate more memory from the OS.  Everything points to plenty of memory from every angle.

    This was just one of three AOS in a cluster.  I added a 4th last night to try to reduce the number of users per instance, but I cannot find any hard and fast rules to support that decision.

  • André Arnaud de Calavon Profile Picture
    303,730 Super User 2026 Season 1 on at

    In that case I cannot explain this behavior without more information. At another customer we are running about 120-140 users per AOS. We do see an additional memory consumption in the afternoons on the SQL server, but cannot explain it yet.

    Probably you can use event tracing and upload a crash log on LCS (Crash and hang analysis tool) to learn about the processes which might cause it.

  • Brandon Wiese Profile Picture
    17,788 on at

    I uploaded a crash dump to LCS, and the analysis was unimpressive.

    Thread 44 was the faulting thread.

    The call stack for thread 44 --

    Call stack

    FRAME TYPE CLASS X++ FUNCTION NATIVE FUNCTION RELATED HOTFIXES

    00 Native ntdll!ZwGetContextThread

    01 Native msvcr100!_getptd_noexit

    02 Native 02 00000000`43c37650 00000000`00000000 0xaaaaaaaa`aaaaaaaa

    No relevant hotfixes.

    I'll probably start an upgrade to CU11 "just because".

  • André Arnaud de Calavon Profile Picture
    303,730 Super User 2026 Season 1 on at

    Good luck with your attempt. You could also create an incident for Microsoft Support.

  • Douglas Noel Profile Picture
    3,905 on at

    Hi,

    one question: Did you specify some settings for maxmemload aos switch?

    I remember some strange out of memory messages during log in a new Client with a message saying aos is out of memory currently having a NEGATIVE number if bytes available. This happens even if there was enough memory avail. In this situation the real memory avail on the aos server was neat 4GB or between 6 and 8 GB.

    The number of bytes shown were -2xxxxxxxxx. A similar number if running a Ax32.exe client on a 64 bit OS having currently near 4 GB or between 6 or 8 GB free and use one of the WinApi functions to give out the free space.

    Regards Douglas

  • Brandon Wiese Profile Picture
    17,788 on at

    Out of the box settings, nothing changed except to add the connectioncontext registry entry so the session Id's are visible from SQL.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans