I am getting 'your System has run out of application memory' error on my MacBook Air

2020 MacBook Air keeps giving error code force quit applications. It appears I have 11 GB of application storage used but I am unable to see how much application memory I have remaining. I force quit all of my open applications and the error code did not go away. I am hesitant to download any software such as "clean my Mac" as I don't want to open my Mac to possible malware. Any advice? Or should I just take it in to the Apple Store.


[Re-Titled by Moderator]

Posted on Apr 19, 2024 3:14 PM

Reply
Question marked as Best reply

Posted on Apr 19, 2024 3:30 PM

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. Depending on how much virtual memory is being called for, anything under 50-100GB of free storage may trigger the message.

Apple menu (upper left corner) -> About This Mac -> More Info... -> Storage (scroll down a bit) -> Storage Settings...


B. A process (or set of processes) has asked macOS for excessive amounts of virtual memory address space. In order to keep track of the virtual memory address space, the kernel creates virtual memory page tables. If there is a memory leak (process asks for a virtual address range, forgets to give it back, asks for another range, forgets again, wash, rinse, repeat), eventually there are so many page tables created there is no memory left for applications, and you get the “Your system has run out of applications memory”.


Look at

Applications -> Utilities -> Activity Monitor -> View (menu) -> All Processes -> Memory (tab)

you can see what processes are using lots of memory. Many of these processes will be background agents and daemons used to provide many of the macOS services, as well as your applications.


Also keep in mind that each web browser tab will be a separate process running its own Javascript. If you have lots of browser tabs open, or if one of the browser tabs running Javascript with a bug in it, it is possible these browser tabs will add up to a lot of virtual memory demands, but no individual tab will look all that big.

1 reply
Question marked as Best reply

Apr 19, 2024 3:30 PM in response to ukele123

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. Depending on how much virtual memory is being called for, anything under 50-100GB of free storage may trigger the message.

Apple menu (upper left corner) -> About This Mac -> More Info... -> Storage (scroll down a bit) -> Storage Settings...


B. A process (or set of processes) has asked macOS for excessive amounts of virtual memory address space. In order to keep track of the virtual memory address space, the kernel creates virtual memory page tables. If there is a memory leak (process asks for a virtual address range, forgets to give it back, asks for another range, forgets again, wash, rinse, repeat), eventually there are so many page tables created there is no memory left for applications, and you get the “Your system has run out of applications memory”.


Look at

Applications -> Utilities -> Activity Monitor -> View (menu) -> All Processes -> Memory (tab)

you can see what processes are using lots of memory. Many of these processes will be background agents and daemons used to provide many of the macOS services, as well as your applications.


Also keep in mind that each web browser tab will be a separate process running its own Javascript. If you have lots of browser tabs open, or if one of the browser tabs running Javascript with a bug in it, it is possible these browser tabs will add up to a lot of virtual memory demands, but no individual tab will look all that big.

I am getting 'your System has run out of application memory' error on my MacBook Air

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