Getting “You system has run out of application memory “ error messages after updating to Ventura

I have be getting “You system has run out of application memory “ error messages after updating to Ventura. It started on a 2017 iMac and has followed me to my new MacStudio. My Mac Mail application has not been reliable also. I have had it show up with only two applications running, Finder and Mail. And it can show up with 6 or 7 apps running. Anyone else had this problem. I have reloaded my OS once already. I used the Apple program to move all my apps and data to the new MacStudio.

Mac Studio

Posted on Jan 17, 2023 7:00 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 17, 2023 9:58 AM

If you are getting "Your system has run out of application memory" dialog boxes, and a list of most likely innocent apps listed (and the apps you are listing are totally innocent), 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. 50GB to 100GB would be a good idea to have in reserve.


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. There have even been webpage Javascript bugs that generate memory leaks.

31 replies
Question marked as Top-ranking reply

Jan 17, 2023 9:58 AM in response to Louis in VA

If you are getting "Your system has run out of application memory" dialog boxes, and a list of most likely innocent apps listed (and the apps you are listing are totally innocent), 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. 50GB to 100GB would be a good idea to have in reserve.


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. There have even been webpage Javascript bugs that generate memory leaks.

Jan 17, 2023 1:58 PM in response to Louis in VA

Have done a quick review of the Report but right away a couple of Key Elements that Jump Out.


Q 1 -   macOS Ventura 13.0.1 (22A400) 


A1 - The current version of Ventura as of Dec 13, 2022 is now 13.1


Links below on this topic


Keep your Mac up to date - Apple Support (CA)


About the security content of macOS Ventura 13.1 - Apple Support (CA)


Q 2 -  CleanMyMac 3 Scheduler.app

  Antivirus software: Apple and CleanMyMac


A2 -Any Third Party Applications that will interfere with the normal operation of the OS,  is an invitation for disaster and comprising the Operating System


Certain Applications maybe available on the Apple Apps Store - this only means the Developer is prepared to pay Apple a portion on each sale. What the Application may do to the computer is up to the User to check this out before purchase


Any of the below should be removed as per Developers Instructions


This will include CleanMyMac


Read some of the posting and arrive at your own conclusions.


Specific to CMM ( CleanMyMac ) aka " BrickMyMac "


Some Contributors suggest restarting in Recovery Mode and choosing to Reinstall the Operating System over  the existing installation. 


This may or may not replace elements of the Entire Operating System including the Home Folder ( User Account )  and replace any corrupted or removed elements of the Operating System and make thing right.


Then there are Other Contributors ( like myself ) would suggest  from this link Use Disk Utility to erase a Mac with Apple silicon.


Thereafter to start from scratch and install all Required Application directly from the Apple Apps Store or Directly from the Developer.


If going this route - I suggest Not using Startup Assist to migrate things back as this will probably Re-Introduce the existing  issue that existed when the TM Backup was made 



Jan 17, 2023 7:06 AM in response to Louis in VA

If the new computer is going to be or IS the Apple Silicon M1 / M2 Equipped Computer - would suggest Only Migrating the User Account and nothing more.


Some have had success and others have been left with a mess when Migrating everything.


1 - Apple Silicon with Ventura macOS 13 Only Support everything 64 bit and there is no workaround.


2 - Issues that may exist on the older computer will be migrated to the New Computer. This would badly pollute the new Original and Pristine installation of the new OS.


3 -  Applications, extensions and Software Drivers may or may not even work on the new computer.


4 - IMHO - it would be best to only install new application etc Directly from the Developer or the Apple Apps Store.


5 - Due Diligence on New Applications and make sure they are Ventura / Monterey / Big Sur compatible and factor in the ARMs CPU of the Apple Silicon Computer  


6 - Download the Application Etrecheck directly from the Developer.


This is a Diagnostic Tool that makes no changes to the computer.


It makes a coherent and readable inventory of both the Hardware and Software used on the computer 


The application is free or paid from added features. 


The Report will Not Reveal Any Personal Information. 


Post back the Full Report - copy and paste - >>>> using the Additional Text Icon ( 3rd Icon to last ) <<<<


Jan 17, 2023 2:39 PM in response to Louis in VA

Until you resolve this keep Activity Monitor running in the background, so you can quickly switch to Activity Monitor when you get a "Your system has run out of applications memory" and see what processes are guilty.


Lightroom Classic is a heavy user in your current display, but within bounds, considering the kind of stuff it does, which is memory and graphics intensive. But if it and other processes get virtual memory hungry, that is when you get the dialog box warning.


You mentioned contactsd, which is an Apple background daemon that syncs your contacts with iCloud, which keeps all your Apple devices in sync. 25-35GB is non-typical, and indicates an issue with contactsd, unless you happen to have thousands and thousands of Contacts 🥳. Most users have plus or minus 100, or a few hundred, so if you have a lot, it could be stressing contactsd boundaries. In any even, it would be a bug in contactsd.


Your EtreCheck report says you are running 13.0.1. Since 13.1 is available, you should schedule time when you can upgrade your Mac. I DO NOT know if that will address contactsd, but it wouldn't hurt to apply the 13.1 update anyway. Or wait a few weeks, and I'm sure 13.2 will be out. Keeping up with macOS updates is how you maintain your Mac's security.


If you keep Activity Monitor running, and can quickly see what processes are consuming lots of memory, that will help is determining the root cause.


NOTE: With 32GB of RAM, it takes more than 35GB of contactsd virtual memory usage to overwhelm your Mac. There much be other offenders, or contactsd is getting much bigger than 35GB.


You can report contactsd via

Feedback - macOS - Apple

You will not get a reply, and it may or may have any effect, but it a way to tell Apple about your issue.


If you upgrade to 13.1 (or whatever is latest at the time) and still experience this issue, and contactsd is the only offender, then you can also get a free Apple Developer account, and file an actual bug report. This is one step closer to the software development group, than just sending feedback. https://developer.apple.com/account

It has been a long time since I used the free account to file a bug, and I know they have most likely changed how you do that, but I'm sure it can be done.

Jan 17, 2023 2:39 PM in response to Louis in VA

Side notes:


You are using Chrome. Chrome has been known to be a resource hog. If you have lots of tabs open, each one may not float to the top of Activity Monitor, but they do add up. As it is EtreCheck says it is using 2.51GB of virtual memory:

  Google Chrome Helper (Renderer) (30) 2.51 GB (Google LLC)


CleanMyMac is running. A lot of the volunteers in this forum do not like CleanMyMac, as it has been known to create problems of its own.


You are running Sophos Anti-Virus. Again, the volunteers in these forms have seen far more trouble caused by anti-virus packages, then they have ever benefited the users running them.


Why are you running fan control software:

com.crystalidea.macsfancontrol.smcwrite.plist

If you are taxing your M1 Max based Mac so badly that you need to play with the fans, there is something seriously wrong. Or is this left over from when you were running an intel Mac, and it came over via Migration Assistant?


MemoryCleanHelper - memory cleaner apps are almost never recommended. You have 32GB of RAM, and when you running memory cleaner, you force you Mac to access the disk more frequently. This slows your system down, and if it forces more writes, then you reduce the life of your SSD storage (all SSD/NVMe storage has a limited number of write cycles, and then a storage cell goes bad and needs to have a spare used in its place. SSD/NVMe devices have very complex algorithms to do load leveling so no individual storage cell gets too many writes, but when one becomes unreliable, a spare is substituted. But there are a finite number of spares, and if you intentionally increase unnecessary writes, that will just speed up the process of using up spares. Most SSD/NVMe consume storage will last years, but not all users behave like your typical consumer.


VPNs for anything except

  • Required to access your companies internal network.
  • You wish to geolocation shift, so you can watch those UK TV shows.
  • You are in an unfriendly political environment, and it is the only way to get access to the outside world

If that is not your situation, and you think you are protecting yourself, then what you are doing is concentrating all your network traffic through the VPN service provider, which may sell your network accessing habits for additional revenue.


If you pay for your VPN, and your VPN provider has stated in writing that it does not keep logs, and does not sell your data, then it might be OK, but for the most part using a VPN, except for the above reason, is not really all that beneficial to you, as most network traffic today uses encrypted connections, and all your ISP can see is that you connected to site X, but not what you are doing on site X. All that using a VPN does is move who sees that you are accessing site X.


I'm seeing 2 things on your system that make me thing you have been using Migration Assistant for years, and just carrying software you installed years ago over to the new system.

  • Flip4Mac
  • Adobe Flash Player


I do not even know if Flip4Mac is still available. And Adobe Flash Player has been discontinued for years.


You might want to go through the EtreCheck output and do some house cleaning, as I'm sure there is stiff listed you forgot you even used years ago.



Jan 20, 2023 5:49 AM in response to Owl-53

I've turned that to "Never" will see if that helps.


Also last night I left Mail running and this morning I got the same error message "Your system is out of Application Memory". This didn't happen for 3 nights that it was left not running. So the Mail application is the application doing this, or some interaction between it and the "Contacts" application. And the "contactsd" must be a part of that as it's the one in activity monitor that goes up to 38 GB at times!


Any idea about this? Thanks, Louis



Jan 20, 2023 6:33 AM in response to Louis in VA

Yup and Idea but need to ask,


Is the Mail Application and Contacts Application associated with a Third Party Source for the expressed purpose of Syncing.


To put " flesh on the bones " aka details .


Is the Contacts Application using Google as the Source to Sync your contacts information


Same goes to your e-mail Account in Apple Mail.


Have seen time after time where the Google Services ( e-mail and Contacts ) in the Apple Eco-System my work for some but others, a source of headaches.



Jan 18, 2023 3:05 PM in response to Louis in VA

The Mail app may getting over night exercise, because there is a mode called "Power Nap" under the Battery settings that has the Mac wake up periodically to run maintenance scripts, check mail, check for software security updates, etc...


If it is Mail that is guilty, that might be how it was getting itself all worked up when your Mac was sleeping (or maybe we should say Sleep Walking 🤪 ).

Jan 20, 2023 4:40 AM in response to Louis in VA

On the Hardware side of this issue, I personally would defer to the more expert user on your question.


On the Software side, would suggest looking in System Setting >> Lock Screen >>.


Change the " Turn Display off when inactive " to a longer time or disable totally.


The later of the two above would mean the Display will stay active longer or never turn off the Display.


refer to image below


Jan 17, 2023 10:28 AM in response to BobHarris

Bob,

Thank you for all the good info on what is causing the problem. But how do I get rid of it! I have used Activity Monitor and most of the time it looks normal. At times the "contactsd" does go to the top and it taking up 25-35 GB of memory. I also don't have a lot of web browser tabs open at one time. But as you can see from the picture I posted, my web browser application was not even open and it happened. Most of the time it will show up and I can close it. But at times it will hang up the Mac and after a default time will restart the computer, and of course everything now saved is lost. After the restart I get the red startup screen and not the normal one I have picked. Thanks again for replying to my issue, you folks are great to help out here!


This is normal activity monitor screen.

Jan 17, 2023 11:24 AM in response to Owl-53

Good point. The mail app was acting up on the old iMac but I can't remember if the "Out of application memory" error was showing up there. But on the old iMac when I would send mail and click the send button it would hang up and show that the Mail was not responding in the Force Quit box. I would have to force quit it. On the new higher speed MacStudio I have gotten that something (only 2 or 3 times) and in this case it will take a few minutes to send, but it will send. I'm wondering if on the old iMac if I waited long enough (hours) would it have sent the email also? The same thing would happen when I would report the issue to Apple. The report box would not send, and hang things up also.

Jan 17, 2023 2:53 PM in response to BobHarris

Bob,

This is such good advice! I'll start going down you list tomorrow and see how I can get rid of the items.


  • I didn't know CleanMy Mac was running, it's not in my App folder anymore!
  • The fan control is left over from my iMac, I'll get rid of it.
  • I didn't know MemoryCleanHelper was on this Mac, I'll work on getting it off tomorrow also.
  • I'll go down you list one by one and address each one


Thanks again for all the help! I'll let you know how this all works out.


PS: one more item - I usually get the out of App memory error message after the computer has been asleep overnight. I see it after I log in. By leaving the Apple Mail app closed and not open for the last two days overnight the App Memory warning has not showed up. Very interesting.



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.

Getting “You system has run out of application memory “ error messages after updating to Ventura

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