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
Question marked as Top-ranking reply

Oct 29, 2021 4:18 PM in response to akfromnyc

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.

Oct 30, 2021 11:51 PM in response to akfromnyc

As I stated in my reply, usr Activity Monitor and the ps command to figure out which processes are using all your virtual memory.


if the offending process(es) are not obvious, then you have to dig through the ps output and see if there is a group of processess adding up to a collective worse offender.


once you know what, you can decide if you can change your behaviohr, renove the softeare, get a vew version, etc…

Nov 5, 2021 9:03 AM in response to akfromnyc

I ran today in the same problem. Got the notification screen about running out of memory. Firefox was using some 18 Gb RAM out of 16 Gb (?).


But I am unsure is Firefox the real problem.

There seems to be apparently Accessibility related background process ’universalaccessd’. The process in question has tendency to grow its memory usage every time the computer wakes up from sleep (+200-500~Mb) to ridiculous proportions (10-12Gb) until the computer is restarted.


I tested it today couple of times. First time with 30 sleep-wake up cycles and the end result was some 8 Gb memory used. After restarting the computer it again started from around 230 Mb memory usage. After uncountable number of S-WU cycles the memory usage had grown up to 12 Gb.


I did some research and tried to find some solutions (restarting, force quiting the process, unselecting accessibility options, uninstalling previously installed apps and stuff) but every time ’universalaccessd’ appears back and starts growing its memory usage.

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.

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.