Your system has run out of application memory

Hi-


"Your system has run out of application memory"


I have started receiving this error(?) message frequently of late. Can't understand why - I have 16GB of RAM and activity monitor typically shows plenty of RAM available. How do I fix this annoyance?


Thanks.




iMac Line (2012 and Later)

Posted on Oct 29, 2021 4:11 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 29, 2021 4:18 PM

If you are getting "Your system has run out of application memory" dialog boxes, and a list of most likely innocent apps listed, then here is the explanation.


For the record, 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.


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.


You can also issue the following command from Applications -> Utilities -> Terminal:

ps ax -o vsz,pid,comm | sort -n

which will display the virtual memory used sorted so the largest virtual memory consuming users are at the end. The virtual memory sizes are in 1024 byte units.


NOTE: I have seen situations where no single process is using all the memory, but rather a host of smaller processes are using up all the virtual memory. That is to say, a 100 instances of the same program all running with a moderate amount of memory eventually adds up to a lot of page table entries being used.


I have also seen users with 100's of web browser tabs open, where each tab is being managed by its own separate process. And just because you are not looking at any give tab, does not mean the Javascript running on that web page, is not taking up memory and virtual addresses.

60 replies

Dec 2, 2021 6:59 AM in response to akfromnyc

We have this problem on an iMac (2019), after upgrading to Monterey. Mail when launched, steadily ramps up memory usage until we receive the .. system has run out of application memory message then mail crashes. I've tried everything I've seen posted, without success. Ran Disk First Aid, now trying on OS re-install. Apple needs to get this problem identified and patched quickly.

Jan 10, 2022 4:00 PM in response to tkgb606

I am the originator of this thread - I am running Monterey 12.0.1 and have not had the problem in a month or so. My original problem was terrible on Catalina (and started happening only in 2H 2021), and then appeared infrequently once I upgraded to Monterey, but has been a non-issue for the last month or so. No difference in my usage patterns. Go figure.


Sounds like i should not upgrade to 12.1 (from 12.0.1).

Jan 27, 2022 1:42 AM in response to akfromnyc

Hi! I've got a basic early 2015 "Macbook Air" model with 8GB RAM that started giving me the "Your system has run out of application memory" screen shortly after updating to macOS Monterey 12.1.


I keep using the same set of applications for about 10-15 years – these days it's mostly a few tabs in Safari, one or two documents in Pages and TextEdit, Mail and that's what takes it for the message to pop up. The most basic set you could imagine. But yes, I also put my computer to sleep by closing it often and then have it wake up by physically opening up the Macbook, as some users experiencing the same problem reported, so that may have something to do with it.


Spent like two hours reading various pages linked in this thread but I can't seem to figure out the problem. Sometimes in Activity Monitor there's multiple processes called "Safari Web Content (Cached)" or a process named after the website (e.g. a process named "https://mail.google.com" – your basic Gmail) that seem to grow to a few hundred megabytes but wiping out the cache, restarting Safari, rebooting the computer, even resetting the NVRAM memory etc don't help. In the end the problem always comes back sooner or later.


I'm puzzled and would like to point out this really is a bug: Apple made computers 20 years ago that handled more than this. Reported the problem to Apple. As usual thank you kindly to anyone who might figure out a solution.

Jan 27, 2022 8:10 PM in response to janana01

janana01 wrote:

I would love to do it but i don’t work for apple. Tens of people are complaining it’s obviously a systemic bug. What are YOU doing to resolve this issue? Thank you

By the way. This is a user-to-user technical support forum, with unpaid volunteers providing help.


You are not talking to Apple.


If you wish to talk with Apple you can use this link Get Support


Or you can send Feedback to

https://www.apple.com/feedback/macos.html


Or you can get a free https://developer.apple.com account and file a bug report.


But the volunteers here can only provide help in the way of suggestions and education. We do not have access to any internal Apple information, nor systems, and we definitely do not have access to your system.


Which is why you have to do the investigation, as we have no way to do that for you.

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.

Your system has run 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.