Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Environment running low on memory, crashes when memory intensive task is started

(2) ShareShare
ReportReport
Posted on by 14
Hey all, 
 
Currently investigating an issue where a memory intensive task causes a AOS crash. 'OutOfMemory'.
 
What i am seeing is that the batch-aos is constantly running on low memory, and when the process is started it runs out of memory. 
 
We are aware of the issues with this memory intensive task, and have already taken steps to fix this issue. But for now the fix has not been released.
 
What i'am cuirious about is where is all the memory of the BatchAOS going before the task is started. Is there any way to retrieve this information? Cant seem to pinpoint a single activity in LCS. (bear in mind in quite new to the LCS monitoring)

See the task is started at 7:38:00 and causes a crash at 7:44:00. But before starting the available memory is already low. 


A few hours later(12:49), the memory has decreased some, but not nearly as low as 1300Mb:


Any way i can investigate further? 

Thanks!
Categories:
  • Jouke Profijt Profile Picture
    14 on at
    Environment running low on memory, crashes when memory intensive task is started
    So, status update.
     
    While not certain that the issue has been resolved, Microsoft support had given us information about running batch tasks which were taking up the most time/resources. 
     
    We've reorganized these batches to run at different times, as these seemed to have a conflict in the tables which were in use. 
     
    We also updated the batch-priority as all batches were running on low priority. Now most jobs run as normal priority, our problematic task which is quite important for the customer has been assigned reserved capacity. 
     
    After this change the task has successfully run 3 times for a larger set. 
     
    Only thing that we see now is that the BatchAOS's seem to restart every morning and the available memory still seems to decrease throughout the day:
     
    This might be normal behaviour? i'm not sure. 
     
     
  • Jonas "Jones" Melgaard Profile Picture
    3,122 Super User 2025 Season 1 on at
    Environment running low on memory, crashes when memory intensive task is started
    No, it's not possible to see exactly what is consuming memory or causing a memory leak in Microsoft hosted environments. My advice is to contact Microsoft Support and check whether this is a known issue or if something can be scaled.

    However, if you want to dig a bit deeper, you can take a look at this article: https://denistrunin.com/performance-powerbibatch/

    I built a dashboard similar to Denis’s at my former job to debug AOS Batch memory consumption. Maybe you can correlate the memory consumption with the batch schedule. Notice his "Batch tasks schedule" example.
     

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!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 293,309 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,160 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans