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

Jan 19, 2022 5:27 AM in response to akfromnyc

One of our employees received her brand new iMac M1 with 16mb of memory. She got the same error yesterday. I've attached it. Chrome appeared to be the culprit. There were no extensions other than google's. She onIy had five tabs open and they were all related to work. I had them restart the browser and clean the cache. So we will see.


We purchased quite a number of these machines in order to upgrade the employees' aging ones. So, I wonder how long before this shows up on the other ones?


Jan 27, 2022 4:59 PM in response to janana01

janana01 wrote:

I have the same issue on MacBook Air m1 2020 16GB RAM. Mac OS Monterey 12.1
honestly, I buy apple so I don't have to worry about this stuff so this is so disappointing. is there a recall or a fix for this? unable to use the computer for work.

You have something in the background that is consuming memory, or you have run out of free storage on your boot device.


Go back to the first page of this thread, and read my reply. Then follow the instructions to diagnose what is causing your issue. Is it no storage left on your boot disk or is it a background task consuming all your memory.

Nov 16, 2021 4:11 AM in response to akfromnyc

I just received my M1 Max 10/32c with 32GB RAM and am for the first time seeing this issue. I'm a reasonably heavy After Effects user and Monterey appears to be having problems managing the memory here. Whether this is Adobe or Apple remains to be seen but judging as other users are experiencing the same problem without mentioning Adobe I'm inclined to believe the issue is with OS X. This isn't something I've seen in the 15 some years of using this professionally even with 4/8 or 16GB of RAM my previous machines. Hopefully this can be fixed in a. future update.

Jan 3, 2022 6:08 AM in response to akfromnyc

I am getting this message constantly after updating to monterey, along with other issues with this new os. it shows certain applications using GB of memory even when those applications don't have any files open in them. I haven't changed a single thing in my workflow other than upgrading to monterey. none of the explanations have helped so far as I can clearly see which applications in the list are using the high GB but there's no explanation on how to reduce their footprint. clearly an issue with monterey that needs a fix asap as I can't get any work done with my whole system repeatedly crashing!

Apr 26, 2022 1:25 PM in response to akfromnyc

I have also been having this problem on my brand new MacBook Pro. It happens when almost no applications are running—two or three—Safari, Numbers, and the Finder. It is worse if there are a couple more. I finally did a restart today, and so far it is better, but a brand new computer shouldn't be having really irritating problems like this. OS12.2.1, 8 RAM, 441gig of memory available. My old computer of six years was doing better than this. Not a selling point for Mac.

Nov 25, 2021 9:36 PM in response to revoltforhealthcare

>This is ridiculous. Brand new mac, running only 5 programs - none of which are large editing apps. They are just browsers and small task apps. I'm returning this pos computer


If you read my first reply, I explained why this is happening, and how you can find the offending process (or processes).


But if you want to return your Mac, because it is Christmas season, Apple offers refunds until January 6th (or is it the 8th), assuming you purchased this Mac recently.

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.