Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Memory leak / stuck proces cause AOS to consume all memory

(0) ShareShare
ReportReport
Posted on by 204

Dear community,

I'm having a problem with an AX2012 R3 CU13 AOS which is specfically reserved for mobile device users. I get a notification that a mobile device users is stock logging in. When I open the work user sessions from the Warehouse Management menu the client crashes with an Out of memory exception.

Upon further analysis I found out that some records from the table WHSWorkUserSessions have a really large rowsize and I think this is caused by a corrupt XML path. I think the user login is looping and is continiously writing in the table, cause the AOS to take up all available memory¿?. In this situation the AOS takes up 58/60 GB memory and CPU peaks to 97% which significantly slows down the AOS. Normally the CPU-usage is around 0-5% and RAM-usage is around ~10GB.

The only way I figured out to solve this problem is to delete the whsworkusersession directly through an SQL statement. But after deleting the session the AOS doesn't release the RAM so I think it isn't ending the process. I need to restart the whole AOS for this to be solved, which is quite a pain because there are several mobile device users logged in during business hours. 

Is there any way to view which background processes a specific AOS is running and am I able to end these without having to restart the whole AOS?

Thanks in advance.

pastedimage1599555337459v1.png

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Memory leak / stuck proces cause AOS to consume all memory

    Hi Berthil,

    If the AOS is taking up all the resources, you will need to restart it. I don't think there is any other way you can release the resources.

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,145 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,917 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans