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 24, 2014 5:36 AM in response to mswamp

MY MAC IS NO LONGER RUNNING OUT OF APPLICATION MEMORY AND THIS IS HOW


Thank you to everyone who has been contributing to this thread.

I too have had my system "run out of application memory" many times per day since upgrading to Yosemite.

With the help of this thread I traced it to the Mail app, and to my GoDaddy IMAP mail accounts in particular.

I'm posting just to make the solution very clear since I struggled to find the exact steps:


1. Start the Mail app

2. On the Mail menu open Preferences...

3. Click on "Accounts"

4. Click on "Mailbox Behaviors"

5. For each IMAP account, uncheck “Store draft messages on the server”


That was the only change I made, and now my system is no longer running out of application memory.

Oct 24, 2014 6:59 AM in response to emacinbound

Update: since changing the Draft settings with my GoDaddy IMAP account, no memory creep issues.


However, I continue to have issues with Receiving GoDaddy IMAP mail from time to time. It comes through the iPhone 6 fine. However, the new messages will NOT show up in Mac Mail unless I Quite and Restart Mail. Then they appear. This is yet another BUG IMHO. I have no problem with my Gmail messages being received in real-time. It's just the GoDaddy IMAP account - which is where I run my business.


Is anyone else experiencing this type of issue with GoDaddy IMAP accounts?

Oct 24, 2014 7:34 AM in response to Rob Hambly

I think this is all under the same topic. It's an IMAP issue with Mac Mail. I've had this problem since upgrading last week but today (and since I made the changes with Drafts), it's not syncing GoDaddy account at all this morning. Seems like a band-aid one on part of the issue creates another bigger issue - not receiving mail at all.


Thank you to all of you who are informing Apple and GoDaddy about these issues. Looking at this from a pure business perspective, Mac Mail is not the right solution for my business at this point. Hope we can all find a fix soon b/c my patience is running thin.

Oct 24, 2014 7:39 AM in response to emacinbound

Yes I have had the same problem with my GoDaddy IMAP accounts for the past few months, even on Mavericks. I get emails on my iPhone and then they don't show on on my iMac. My workaround is to click on the lightening bolt ("Take All Accounts Offline"), then after they are offline, click the envelope ("Get new messages in all accounts") and then it will retrieve the missing emails.

Oct 24, 2014 7:48 AM in response to emacinbound

I'm glad that several are finding solace in the Draft theory that I had tested. Cool.


As far as not receiving emails to my IMAP GoDaddy account, I've also been having this issue, but it had taken a back seat to the memory leak issue, which, may or may not be related.


Taking the Accounts offline & getting new messages has never worked for me unfortunately, but it's also a great idea & hopefully works for most. Thanks simplegenius.


I'm fortunate because I'm able to tell when I receive an IMAP GoDaddy email because my iPhone receives it, which is sitting right next to me, but when the Mail.app does not, I do this:


1. Highlight my Inbox (So I can do them all at once)

2. Pull-down menu: Mailboxes

3. Select "Rebuild"


After this I again see "all" of my incoming messages. Sometimes I'm doing this several times a day. Again, not a "true" solution", but hopefully it also works for you as a temporary fix.


That entire issue should probably be a separate Discussion actually too.

Oct 24, 2014 9:30 AM in response to emacinbound

Thanks to Doren_Sean_Michael who I believe figured out the uncheck drafts on server option. It has been working for me.


As for the IMAP GoDaddy problems with unreceived email, GoDaddy has been aware of it for at least a year. They have not done squat about it, and it is THEIR problem, not Apple's. I say this because IMAP accounts with other hosts do not have this problem on Macs, just GoDaddy accounts. And this was way before Yosemite. I don't have the link anymore but there is a thread on GoDaddy's forums about this problem that goes back at least a year.


If anyone figures out a permanent solution to the unreceived emails problem, please let us know! Having to constantly check on my phone, or by closing and reopening Mail is getting tremendously annoying...

Oct 24, 2014 10:41 AM in response to mswamp

I'm keeping Activity Monitor open on a second screen so I can keep an eye on it. Every time Mail starts chewing RAM, it's doing the following, trying to index some ungodly number of cache items:

User uploaded file

I haven't teased out any cause and effect relationships (when I do X, Mail starts updating the cache...), but the actual behavior is 100% consistent.


Hopefully, this helps Apple figure out what's going on so it can be fixed.

Oct 25, 2014 7:20 AM in response to mswamp

My method for dealing with the Mail memory leak bug is just to check the Actiivity Monitor every once in a while and when Mail starts using more than 500 MB of RAM to quit and restart it. When I do that it starts up at about 60 MB, quickly goes up to 100 MB and then slowly continues to creep up over the day.


So far it seems that doing this just once a day is enough to keep it from going out of control.


So I'll continue to watch and restart once a day until Apple fixes the bug.


doug

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.