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

Oct 23, 2014 12:16 PM in response to Doren_Sean_Michael

I tried Doren's suggestion regarding the Draft folder with my IMAP account and have been using Mail like normal (Sent probably 50 emails) with no issues. Seem's to be a credible work-around. Thanks!


I wanted to clarify, the settings I updated were my GoDaddy IMAP account settings. Important to note because that seems to be a common culprit. For those of you that are wondering what suggestion, here is the quote.....


"The Draft issue sounds plausible and what I've been describing in a few posts as well it does seem to tie in with that behavior. So I ran a few tests and my iCloud account does not seem to be affected (anyone else?), only my IMAP GoDaddy account. I verified that my Draft folder was clean locally and on the server. I was able to trigger it by saving a test Draft but, unfortunately, I was not able to remove the Draft nor after the test email was immediately sent so it continued to sync the Draft folders, I'm guessing, and my only option was to Force+Quit before it locked up my system. Which then left the Draft in the folder. It does appear that we're getting closer to the core issue, alas, still with no real solution yet per se.


Just performed another test. I disabled "Store Draft messages on the server" for my IMAP GoDaddy account and was able to compose an email, save a Draft, and the memory leak did not occur. At least as of yet. If this is the core issue, this might be temp fix? Doesn't help since I really need my Drafts saved on the server, but, at least, I can, possibly, continue to use the app. I'll post updates.


Please let us know if anyone else attempts this and what your results are.


Hopefully it continues to work. Thank you etresoft."


Thanks again Doren....

Oct 23, 2014 1:27 PM in response to Doren_Sean_Michael

Ether one or a combination of the following things seems to be temporarily helping with a GoDaddy IMAP account that would previously have Mail Memory Leak:


- Accounts/Advanced: uncheck the Use IDLE command if the server supports it

- Accounts/Mailbox Behaviors: uncheck Store draft messages on the server

- Check for new messages every 5 minutes, rather than automatically

- Junk Mail: uncheck Enable junk mail filtering


Essentially, it seems that disabling many of the functions that would otherwise automatically talk back to the mail server is helping. Fingers crossed...

Oct 23, 2014 2:57 PM in response to mlwebber

Thanks for mentioning GoDaddy IMAP specifically!


Using Mac Mail with GoDaddy IMAP from 2 machines (plus mobile devices) has never worked all too well for me, with frequent issues including the inbox not updating and emails that had actually been sent lingering or re-appearing in the Drafts folder. Today, after upgrading to Yosemite, the memory leak issue rendered my 20GB iMac unusable and brought me to the brink of despair.


It looks like following your recommendations (1) and (2) above has stabilized my system. Thanks!

Oct 23, 2014 5:00 PM in response to Doren_Sean_Michael

I seem to be back to normal. I did 2 things: (1)Disabling the "drafts saved on server" option through Mail-->Preferences-->Mailbox Behaviors as well as (2) disabling the IDLE command under Advanced for only my 1 godaddy account seems to have done the trick. I have other gmail and icloud accounts I didn't touch. I've been purposefully using Apple Mail heavier than I normally would (and I have 7 email accounts), sending attachments, saving drafts, working on drafts, deleting drafts, etc. to test and I have had zero problems today. Well done Doren!

Oct 23, 2014 5:29 PM in response to BraxDad

I've only had it happen once so far, and I haven't changed any settings yet. I think it is a hard to reproduce memory leak bug and am just keeping a watchful eye on the activity monitor. There probably isn't any "bag of tricks" to avoid it other than quitting Mail and restarting every once in a while. It's been more than 24 hours now since it happened again and I have 7 mail accounts: 4 Gmail, one iCloud and 2 via the cPanel at a hosted site.


Mail is currently using 322 MB of RAM. It's been about that for the last 24 hours now without changing any settings.


Still, it's a bug Apple has to fix and they seemed to acknowledge it after my AppleCare chat.


doug

Oct 23, 2014 5:47 PM in response to Doug Lerner2

Thanks mlwebber & etresoft. I think we were able to narrow down the 4 most effective methods of temporarily resolving this issue it seems. I only had to disable the drafts to get back to normal, but others are reporting that using that in conjunction with a combination of 3 of the other methods from mlwebber are resolving their issues. Albeit this is only a temp fix until Apple updates their software & truly fixes this bug/issue, but, at least, I hope, we all can get back to business as normal for the time being.


Doren (from etresoft’s observations):

- Preferences/Accounts/Mailbox Behaviors: UNCHECK “Store draft messages on the server”


mlwebber:

- Preferences/Accounts/Advanced: UNCHECK “Use IDLE command if the server supports it”

- Preferences/General/Check for new messages: “Every 5 minutes”

- Preferences/Junk Mail: UNCHECK “Enable junk mail filtering”


Please post in this discussion if none of these methods help you and we'll see what we can do. We'd also love to know if these methods also resolve your issue. Thank you.

Oct 23, 2014 6:39 PM in response to Doren_Sean_Michael

Thank you for this post and for making it so easy to follow - you rock 😎. I just went through the list, and I'll be patiently (semi-patiently) waiting an official fix.


Does anyone think a Clean Install of Yosemite this weekend would be beneficial (not just for this (because who knows?) but just in general?) My system is just overall a bit wonky since the upgrade and I have not done a Clean Install since...well, never.

Oct 23, 2014 7:16 PM in response to mswamp

Good news: As others have noted today, unchecking "store draft messages on server" for my GoDaddy IMAP accounts seems to be the one thing this week that has held this problem at bay. So far so good, for most of today. And it makes sense, no? If there is an endless loop created and memory takeover when Mail 8 syncs with the server during message creation, stopping that synchronization by keeping drafts local might well be the workaround we've been looking for. My concern is this: If in fact it is a problem unique to GoDaddy servers, will Apple give it much due? Hope so. IMAP is a longstanding protocol. This should just work.

Oct 24, 2014 5:27 AM in response to mswamp

I've been having similar issues with Mail app crushing all available memory on system leading to 'Application out of memory' messages. No 3rd party plug-ins and no drag/drop, attaching files. I do have a pretty large GMail account that Mail.app is powering. This was working very well until 10.10 Yosemite upgrade. Hope to see a resolution soon as this is preventing me from leaving the Mail.app open while working. When Mail is open you need to keep an eye on Resource Monitor so you can attempt to Quit out of it as it starts to spiral.


Managed to get a screenshot just as it was about to choke (embedded below).


Thanks for any assistance/news/tips.

User uploaded file

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.