ran out of application memory

My Mac book air comes out with ran out of application memory. Also force quit comes up. Email kicks me out after I check multiples to delete.

MacBook Air 13″, macOS 12.5

Posted on Jan 16, 2024 9:04 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 16, 2024 1:50 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 -> Storage (tab) 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.

7 replies
Question marked as Top-ranking reply

Jan 16, 2024 1:50 PM in response to Nathan2618

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 -> Storage (tab) 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.

Jan 16, 2024 5:39 PM in response to BDAqua

BDAqua wrote:
Thanks for the fuller explanation Bob! :)

Once I figure something out, and I end up posting the information a few times, I create a System Settings -> Keyboard -> Text Replacement entry (up too 2,000 characters) which I can easily insert into a reply. In this reply my trigger was “,memory” with the leading comma to avoid accidentally triggering the substitution.


I find that a TextEdit “Plain Text” document is the best place to edit my Text Replacement based reply. Then Copy & Paste the text into the Text Replacement “With” field. Most of my Text Replacement triggers have a leading comma, but anything that will not accidentally trigger a Text Replacement will do.


Any URLs in a Text Replacement body, after substituting it into an ACS reply, I triple click to select the entire URL, Cut, then Paste back, and the ACS software turns the URL into a clickable description of the webpage.


If a reply needs an picture, I keep them in an easy to access place. A folder on my Mac, and an Album on my iPhone.


iCloud syncs the Text Replacements to all my devices, so I can easily use them my iPhone or any of my Macs (personal or work).

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.

ran out of application memory

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