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

Dec 16, 2014 5:40 AM in response to Krag

Every entry only mentions "MAIL," I have the same problem as all posted here BUT I don't use apple/google mail so I don't even have the icon you all are referring to on my Activity Monitor. (I am using Entourage).

Literally every task I try to do I have the beachball spinning, SAFARI, GOOGLE, BOOKMARKS, WORD, EXCEL, ITUNES, ALL OF THEM. I wait FOR several minutes for something to open and then I cannot even type my entry for another minute or two. Do you all only have a problem in APPLE MAIL?

If we are all having this problem who won't have this problem with Yosemite? Is Apple trying to crash the world? I am glad to hear that many of you have more ram than I do as it has been suggested to me by Apple that I buy more ram - but obviously that does no good. Please, how to fix this? My computer is basically unusable.

Dec 16, 2014 6:54 AM in response to Ayshford10

The spinning beach ball and delays are easier - I found this suggestion on one of the other discussions the other day and it worked beautifully for me. Here you are. The first one didn't work for me, but the rest did the trick.

Have you emptied the Safari cache lately? Press Command + Option + E on your keyboard. Quit and relaunch Safari to test.

If emptying the cache didn't help, try troubleshooting third party plugins.

Back to Safari > Preferences. This time select the Security tab. Deselect: Allow all other plug-ins. Quit and relaunch Safari to test.

If that made a difference, instructions for troubleshooting plugins here.

And try this DNS.

Open System Preferences > Network > Advanced > DNS

Click + and type:

208.67.222.222

Click + again and do the same.

208.67.220.220

Click OK. Quit and relaunch Safari to test..

Dec 16, 2014 4:27 PM in response to mswamp

There are many posts, but no solutions. I scanned several pages of responses, but didn't find anyone using the Rebuild command (in the Mailboxes menu) for each successive mailbox. You might also first delete all drafts, and then junk mail, and then all trash. If the basic Rebuild doesn't work, try rebuilding the Index files (instructions for both are at http://osxdaily.com/2013/08/01/rebuild-mailbox-reindex-messages-mail-mac-os-x/ as well as a number of other places).


If you still have problems, you can individually delete and remake all IMAP accounts, especially gmail accounts. Please pay particular attention to provider-specific recommendations for settings, especially with gmail.

Dec 20, 2014 12:49 PM in response to soltltym

Not sure where that's coming from, and it's certainly off-topic. But there are probably lots of reasons someone might use Chrome - they don't like Safari, it's better integrated with Google products, certain functions on certain sites don't work with Safari, you're a web developer and need to test your code on different browsers, your work process is so complicated that you need two or three browsers open at once, etc.

Dec 21, 2014 12:09 PM in response to JohnMM

Yes, your points are well taken and true. However, I don't feel it is really off topic, since many issues and problems arising within the Macintosh/OS X environments are due to use of third party applications. Safari is a native Mac browser, hence reliability issues are reduced considerably. Introducing other browsers, for whatever reason, is risky. So if you are willing to take the risk, don't complain to Apple and don't be so naive as to think Google Chrome is an acceptable browser for anything but testing. Sure, I like some non-Apple apps just like anyone, but only those that Apple doesn't already provide. Just like those Windows converts who want to install Microsoft Office products on Macs. They should expect problems, and not be surprised.

Dec 21, 2014 10:27 PM in response to soltltym

That's a pretty extreme view. Even the well-respected BBEdit developers recently decided to take their app out of the Mac App store because of the onerous restrictions. Those who use Chrome (or FireFox, or Opera) instead of, or in addition to, Safari don't generally have problems with them, and they're stable and don't affect other apps. They have nothing to do with Mail problems. Generally, sandboxing of apps is a good thing, and Mac OS X is safer and more functional because of it. But there is a long, long history in both OS X and the Mac OS in general that encourages other developers to use available resources to solve problems, sometimes out of the sandbox.

Dec 21, 2014 10:45 PM in response to JohnMM

I agree with John that that is a pretty extreme view.


While Apple makes an office suite, I don't know many people who need to work in the real world and exchange files with people who use, say, Numbers instead of Excel or something Excel compatible, like Google Docs.


As far as browsers go, while I like Safari, I just use it for testing because a few years ago they got rid of the "tab loading spinning indicator." So unless I am actually at a particular tab I can't tell if it has finished loading or not, which makes using it for my work difficult. Both Firefox and Chrome have indicators showing that a tab is still loading, so I use Firefox as my main browser and Safari as a secondary browser. Firefox and Chrome haven't been causing memory problems in Yosemite.


Apple provides a handful of included apps. But choosing to use better alternatives is what makes any operating system rich and productive. If we had to rely just on Apple's apps for best reliability we would lose out on a lot. Even Mail, which I basically like, has many shortcomings. For example, there is a syncing problem with Gmail. Every once in a while emails just stop syncing for hours at a time with Gmail. This is discussed in other threads. Also, Mail doesn't have nice shortcuts for filing messages in mailboxes. It's a nice app, but it isn't the most reliable mail app out there for Macs. And, as some of use have experienced (me just once) there is that weird problem with the memory used by Mail suddenly blows up to tens of GB. That is just Mail's fault.


doug

Dec 21, 2014 11:55 PM in response to JohnMM

Here is a solution, and it works. You loose some iCloud functionality though, until the fix or update comes through.


Here are all the steps to follow to resolve the issue:


  1. After rebooting, launched Mail into "Safe" mode (holding Shift while the app launched).
  2. Go directly into Mail Preferences, click on the Accounts tab, and for each active account disable "Store draft messages on the server" on the Mailbox Behaviors tab.
  3. Quit and relaunched Mail, again in Safe mode.
  4. Click on "Outbox" and delete the problem message.
  5. Quit Mail (this might take some time) and then relaunch it, again in Safe mode. Confirm that the message is gone.
  6. If memory leak begins again, with an error message saying that something is amiss with one of your accounts, the bad message is still lurking in the mail sandbox. Delete the sandbox content as in the next step:
  7. Access the Go menu in the Finder with the Option key held down, and choose the menu item “Library”. In the Library folder, go to the Containers directory and find the folder called “com.apple.mail.” Open that folder, then the Data folder, then the Library folder. In the Library folder you'll see a folder called "Saved Application State." Delete that folder, and then relaunch Mail.

Mar 21, 2015 2:51 AM in response to mswamp

I also experienced 2 deadlocks.

Before my mac(Korean, 2014 macbook pro retina that I bought a month ago 😟) freezed completely, I saw 9 gigs of compressed memory in activity moniter.

I deleted all the mails that were attempting to use mail drop, but it was too late to stop the mail app stopping the system repeatedly.

I (and I strongly advise the others) will NOT launch the mail app AT ANY CIRCUMSTANCE until Apple does something about this issue.

Mar 24, 2015 12:57 PM in response to mswamp

This just happened to me, and has never happened before since I bought my MBA (2013) - pop up message about out of memory.


looking in Activity Monitor mail was using 60GB of memory... so basically all RAM and available VM on the hard disk. I just installed the security update a couple days ago - that is all that has changed.


I have Yosemite installed since it became public and this is the first out of memory issue i have run into. I did an in place upgrade of Mavericks.

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.