You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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
Question marked as Top-ranking reply

Posted on Oct 19, 2014 7:52 PM

Since installing the last beta of Yosemite (the first I tried), I have had multiple instances of "Out of Application Memory." I've never had them before under any OS on my MacBookPro 15", Early 2011, 16 GB RAM. I chalked it up to "it's a beta," but since installing the final version today, the problem continues. Since I had to get some emails written, I just closed the other apps and left only Mail running. I soon get the same error and Mail becomes unresponsive. If I try a few times to unpause Mail, the computer itself will lock up and I have to reboot it. I'm watching my RAM usage and very soon after Mail is launched, available RAM quickly goes from around 13 GB down to around 100 MB, then I get the message. I reboot, launch only Mail and watch the same thing occur.

326 replies

Oct 21, 2014 11:12 AM in response to emacinbound

Happened again to me... and I think I can isolate this to receiving Google Calendar Invite requests via email. Seems like it started to eat up memory as soon as I started receiving Google Calendar requests.


I'll continue to monitor and see if it happens again when dealing with Google Calendar invites/emails and report back. Got to figure something out here vs shutting down mac mail every few hours. Maybe we should create #LosingMyMemory!

Oct 21, 2014 11:15 AM in response to mswamp

I had the same issue. As soon as I turned Mail on, its memory consumption would grow without bounds, memory pressure went up to the max, little unused RAM available. I tried SMC and PRAM updates. I fixed permissions. Nothing worked.


Then it occurred to me to start Mail in Safe mode.


Hold down Shift while starting Mail. That worked, for me anyway.

Oct 21, 2014 11:31 AM in response to Allan Angus

I apologize because I have never heard of being able to start up individual applications by holding down the shift key. On boot it will disable all extensions and boot into Safe Mode, but never an app, so I tested the theory and the Mail.app started the exact same way but within 5min I had the exact same problem. I don't think there is such a thing as an "individual safe mode" for applications. I could be wrong, but I've never heard of such a thing. I just did a quick search too & couldn't find anything either. Could you please direct us to where you found this information? Thanks!

Oct 21, 2014 12:18 PM in response to Allan Angus

Thanks Allan!


Ah, I did notice that it's not exactly a "safe mode" like the traditional boot type is. That's why my cross-references searches didn't find anything. This only prevents a Mailbox or a Message from being selected because of a corrupted message. Unfortunately our issue doesn't seem to be related to corrupted messages, that's probably why doing that did nothing for me. And one of the first things I did was Reindex the Mail.app. and I rebuild my Mailboxes a couple times a day already actually so I've tried that as well. Neither had any effect on this issue. This is so frustrating.

Oct 21, 2014 12:33 PM in response to Doren_Sean_Michael

I understand about the corrupted messages business. In fact, I don't think that I had an obviously corrupted message at all. I certainly didn't have to track one down and get rid of it. The problem simply went away after I did the Shift start trick. I worked with Mail like that for a while, keeping track of CPU and memory consumption. When nothing else weird happened, I quit and restarted Mail in the normal way. I've had no issues since then.


I had already repaired permissions, etc etc. Whether that was part of the fix in my case, I'm not sure. It does seem like a trivial fix for a gigantic problem though. But that was all I did. Stop Mail while watching it chew up another 20GB of memory and then restart it with the Shift key down. I was about ready to go back to using Entourage, so help me.


Too bad that didn't help. It seemed a treat.

Oct 21, 2014 12:52 PM in response to Allan Angus

I believe Mail may act the same as Safari and some other apps which when started with the Shift key down, will ignore the "saved state" files that basically tell it what windows were open, where they were located, etc. I tried this (quit Mail and restarted with the Shift key held down) and noticed perhaps the smallest amount of memory for Mail. I suspect this was because it just started.


I simply wanted to pass along what I believe happens when you hold the Shift key while starting at least some apps on the Mac.

Oct 21, 2014 1:04 PM in response to mswamp

We run Apple Mail on 6 iMacs, all different, since updating to Yosemite, we have had Out of Application Memory errors on 4 of the iMacs. We run no email plugins and use IMAP through GoDaddy. We never seen this issue before and it commence immediately after the Yosemite upgrade. Eventually the iMacs lock up if Mail is open when Mail reaches 64 GB of memory usage.

Oct 21, 2014 1:41 PM in response to mswamp

Yep, its happening to me as well.

Though I haven't been able to pinpoint a cause within Mail. Its definitely Mail causing the problem, but attachments don't seem to trigger it (as some people have mentioned)

Its only when I move away from Mail and start actually working on something else that the warning about system memory pops up. Never had the issue before Yosemite.


MacBook Pro (13-inch, Mid 2012)

2.5 GHz Intel Core i5

16 GB 1600 MHz DDR3

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.