Memory leak for Mail App 16.0 / Ventura 13.5 / New MacBook Air M2 (June 2023)

When my Mail.app 16.0 is open it's memory usage slowly increases to over 300 GB over a period of a few hours at which point I get a warning that the (virtual) memory is full on my Mac (physical memory 24 GB) - MacOS Ventura 13.5. This happens again after quitting app or rebooting Mac.


I have not been able to find a fix for this - is there one? Has Apple acknowledged this is an issue?


I have seen others reporting having the same issue - see for example Memory leak on my MacBook Pro? - Apple Community



MacBook Air (M2, 2023)

Posted on Aug 4, 2023 11:08 AM

Reply
Question marked as Best reply

Posted on Aug 4, 2023 1:54 PM

Have you installed and run any "cleaning", "optimizing", "speed-up", anti-virus or VPN apps on your Mac?


Give this a try: boot into Safe Mode according to How to use safe mode on your Mac and test to see if the problem persists. Reboot normally and test again.


NOTE 1: Safe Mode boot can take up to 3 - 5 minutes as it's doing the following; 

• Verifies your startup disk and attempts to repair directory issues, if needed

• Loads only required kernel extensions (prevents 3rd party kernel/extensions from loading)

• Prevents Startup Items and Login Items from opening automatically

• Disables user-installed fonts 

• Deletes font caches, kernel cache, and other system cache files


NOTE 2: if you have a wireless keyboard with rechargeable batteries connect it with its charging cable before booting into Safe Mode. This makes it act as a wired keyboard as will insure a successful boot into Safe Mode.


35 replies
Question marked as Best reply

Aug 4, 2023 1:54 PM in response to Richard Gaitskell

Have you installed and run any "cleaning", "optimizing", "speed-up", anti-virus or VPN apps on your Mac?


Give this a try: boot into Safe Mode according to How to use safe mode on your Mac and test to see if the problem persists. Reboot normally and test again.


NOTE 1: Safe Mode boot can take up to 3 - 5 minutes as it's doing the following; 

• Verifies your startup disk and attempts to repair directory issues, if needed

• Loads only required kernel extensions (prevents 3rd party kernel/extensions from loading)

• Prevents Startup Items and Login Items from opening automatically

• Disables user-installed fonts 

• Deletes font caches, kernel cache, and other system cache files


NOTE 2: if you have a wireless keyboard with rechargeable batteries connect it with its charging cable before booting into Safe Mode. This makes it act as a wired keyboard as will insure a successful boot into Safe Mode.


Dec 18, 2023 12:57 AM in response to vetteman01

I missed this Jeff, sorry, actually I think this will delete all my mailboxes on my Mac as I created them with a POP account so if I understand this correctly, (now using IMAP). There is no copy on the server (I've checked) although the emails themselves are stored in the University server in the inbox. Presumably I could reinstall them from a backup but I suspect this would take many hours.

Simon

Jan 11, 2024 4:25 AM in response to vetteman01

Important note to this message ... while this is true with IMAP email accounts, if you have old emails that have every been downloaded using POP as your setup, you will lose those emails if you delete the Mailboxes in Mail. This can apply to many of us who have had email for years, or even if you inadvertently chose POP (POP3) at any point when setting up in the past. So be careful out there.

Jan 19, 2024 12:09 AM in response to vetteman01

After 4 weeks of normal Mac Mail activity, the memory leak started again yesterday, now having to force quit every 20 min unless I keep an eye on Activity Monitor and see Mail starting to increase its memory use. So frustrating. I am thinking of updating to Sonoma but then I'll be unable to use MsgFiler the best app I have ever used for rapid filing of emails. Cmon Apple please sort this!

Nov 13, 2023 5:15 AM in response to Richard Gaitskell

I'm seeing the same thing Ventura 13.6.1 on macbook pro M1 Pro 16" with 16Gb.

For me the ramp up in memory usage by mail happens very quickly and randomly - normally first I know about it is when the system 'out of memory' alert pops up when Mail has a footprint of about 62Gb. By that point its almost impossible to exit mail normally and only option is to force quit. Sometimes long periods between this happening. Sometimes multiple times in quick succession. No clear pattern I can see.

I'm am concerned with impact on SSD lifetime - have been using SSD reporter to monitor. Apparently down to 96% lifetime left.

Nov 25, 2023 6:11 AM in response to vetteman01

I have over 50 folders on my MacMail account that I use for my job which is an IMAP account downloading mail stored on a server at my University. The folders have been compiled for years and containing important work emails and which I'll need to use in the future. If I uninstall my accounts and re-install will I have lost all my folders? That would be much worse than force quitting between 5-10 times a day!

Nov 26, 2023 11:03 AM in response to simonrheller

When you delete accounts on the Mac, you will not lose your folders (mailboxes) permanently as these folders (mailboxes) are also stored on your provider's servers. Deleting accounts only deletes the files residing on your Mac, not the ones on your provider's servers. When you create a fresh account on your Mac, Mail re-downloads everything on the provider's server again, including your original folder (mailbox) structures.


The only way you will lose your folder (mailbox) structure permanently is if you intentionally select and delete files/folders (individually or in groups) within Mail on your Mac, in which case Mail syncs with the provider's server, erasing items there also. This is an intentional act as you are specifically telling the system that these files/folders are to be deleted everywhere.


Hope this helps!


Jeff

Memory leak for Mail App 16.0 / Ventura 13.5 / New MacBook Air M2 (June 2023)

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