Application Memory

I frequently get the message "out of application memory" and am asked to close an application. However I may only be using Thunderbird and Firefox which are essential in checking email.

MacBook Pro

Posted on Jun 18, 2022 9:50 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 19, 2022 10:54 AM

There are 2 reasons for the "Your system has run out of application memory" dialog box.


A) Your boot disk has very low free storage, and macOS cannot create page/swap files to offload virtual memory contents to disk. This is generally not the case, but I mention because if you do have very low free storage, it might apply. Depending on how much virtual memory is being called for, anything under 50-100GB free may trigger the message.


B) A process (or set of processes) have asked macOS for excessive amounts of virtual memory address space. Virtual memory address space requires macOS to create Virtual Memory Page Tables in the kernel address space to keep track of the application virtual addresses given out. Generally, if there is a memory leak (process asks for a virtual address range, uses the addresses, forgets to give them back, asks for another virtual address range, uses the addresses, wash, rinse, repeat), eventually there are so many virtual memory page table entries trying to keep track of the virtual addresses, that macOS no longer has memory available for applications, and you get the "Your system has run out of application memory"


If you look at Applications -> Utilties -> Activity Monitor -> View (menu) -> All Processes -> Memory (tab), you can see what processes are using lots of memory.

3 replies
Question marked as Top-ranking reply

Jun 19, 2022 10:54 AM in response to Kat615

There are 2 reasons for the "Your system has run out of application memory" dialog box.


A) Your boot disk has very low free storage, and macOS cannot create page/swap files to offload virtual memory contents to disk. This is generally not the case, but I mention because if you do have very low free storage, it might apply. Depending on how much virtual memory is being called for, anything under 50-100GB free may trigger the message.


B) A process (or set of processes) have asked macOS for excessive amounts of virtual memory address space. Virtual memory address space requires macOS to create Virtual Memory Page Tables in the kernel address space to keep track of the application virtual addresses given out. Generally, if there is a memory leak (process asks for a virtual address range, uses the addresses, forgets to give them back, asks for another virtual address range, uses the addresses, wash, rinse, repeat), eventually there are so many virtual memory page table entries trying to keep track of the virtual addresses, that macOS no longer has memory available for applications, and you get the "Your system has run out of application memory"


If you look at Applications -> Utilties -> Activity Monitor -> View (menu) -> All Processes -> Memory (tab), you can see what processes are using lots of memory.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Application Memory

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.