Yosemite OS 10.10 Mail Memory Leak

Since upgrading to Yosemite I have ran out of memory (MacMini, 16 Gbytes) three or four times. I have traced this to Mail.app. The trigger seems to be when you drag multiple files into the email to have them included. Then, the memory usage starts racing, eventually using up all free memory within seconds. The only way to recover is to use Force Quit from the Activity Monitor, normal Quit from within Mail does not work. See the attached screenshot. By the time I grabbed the screen shot and pressed Force Quit, it was already up to 17 Gbytes of Memory.


Has anyone else came across this problem?


User uploaded file

iPad 2

Posted on Oct 19, 2014 5:17 PM

Reply
326 replies

Nov 19, 2015 2:12 PM in response to MtnBiker

24 hours after toggling off (unchecking) "uncheck the Use IDLE command if the server supports it," I checked them for all four accounts and no problems. AFAIK I didn't do anything to fix the problem except this unchecking and rechecking. I have a total of six IMAP accounts with this option, with I had only unchecked the ones at my host 1and1.

Time will tell.

Dec 8, 2015 7:54 AM in response to Kessa.CZ

Kessa.CZ wrote:


What definitely helped me:


NO drafts, NO 5 minute interval, NO idle checking/unchecking and so on...


1) I backed up complete folder Mail in ~/Library/ and deleted all the accounts from Mail.app

2) I disconnected power cord and let my iMac (2013) without power overnight. (Don't know, if this played some role, but i did it.)
3) Next morning I started it after 7 hours cold.
4) I deleted file Container.plist and folder Data from ~/Library/Containers/com.apple.mail
5) I deleted file Envelope Index and folder V3 from ~/Library/Mail

6) I started Mail.app and set three mail accounts: iCloud, Gmail and one local IMAP account.


Now all works fine and Mail.app takes about 100 MB RAM.


Thank you so much!!!!


I've been using OS X El Capitan (v 10.11.1) for several months and haven't had any problems. A few days ago my computer came to a sudden halt when the Mail app started using 10 GB of ram out of my 12 GB. I've attempted so many things to get this working again and the only thing that helped was deleting the "Data" folder as mentioned in #4. I started by removing the "Container.plist" file but that didn't work. I made a backup to my desktop of the folder and then moved the original to the trash.


I opened Mail and it is now running at 119.4 MB!!!!!


It did remove all the local emails and folder links just under the tool bar. My signatures need to be reassigned again but this is all easy stuff to fix. Thanks again for the help @Kessa.CZ!

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.

Yosemite OS 10.10 Mail Memory Leak

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