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

Memory leak in recentsd and Mail eating up all my RAM

Since I upgraded to Yosemite, the recentsd and Mail processes have been hogging all my RAM. Everything is fine after restart, but both processes slowly creep up until my computer is practically unusable. I am also getting a lot of these messages in console...


10/29/14 8:27:51.428 PM Mail[363]: Stream 0x60000031c5f0 is sending an event before being opened


I think the two problems mat be related. I have tried repairing permissions, SMC reset, and resetting the PRAM. I even tried


killall -9 recentsd


The problem persists. I read an article that Apple is storing a lot of my recent saves to the cloud here...


http://mjtsai.com/blog/2014/10/26/yosemite-uploads-unsaved-documents-and-recent- addresses-to-icloud/


Maybe something has gone wrong with this. Maybe its the result of my system not being handoff capable. I did unsuccessfully try to do a quite large mail drop the first day I installed Yosemite. Maybe this corrupted something. Either way, I consider this a major bug that I imagine wouldn't have made it to release if Jobs was still in charge. I feel Mac users are getting brushed aside more and more in favor of Apples more profitable projects. The memory leaks in Mail are happening to many other users. Many had GoDaddy IMAP accounts that were causing major issues. I don't have GoDaddy mail, and I am out of ideas. Does anyone have any idea how I can fix this?

MacBook Pro, OS X Yosemite (10.10)

Posted on Oct 29, 2014 6:44 PM

Reply
Question marked as Best reply

Posted on Jan 24, 2017 5:31 PM

Removing this folder seemed to fix the issue for me, but I'm not sure what this removes. I didn't seem to loose any data with an iCloud Mail account, but your mileage may vary:


~/Library/Containers/com.apple.corerecents.recentsd/Data/Library/Recents

22 replies

Nov 10, 2014 5:31 PM in response to john ted

I had the best results by backing up all my old emails and deleting them all. It was a bit of a process, but it definitely cut down on Mail's memory usage. Still seems like an obvious bug, but I suppose I may have had a corrupted email (although this didn't happen in Mavericks). Yosemite is still more resource heavy for me, but at least it is now usable. Still hoping 10.1 will clean things up.

Nov 26, 2014 1:18 PM in response to margaret.miz

If you are trying to follow these steps, you can just open up applications > utilities > terminal and enter the command. The first one would be

open ~/Library/Mail/Bundles

for example. I just know how to do what you are asking. I am not sure whether or not you should follow the instructions on this thread as the thread was specific to Yosemite mail problems. I would at least make sure I have all my important files backed up before you make an major changes.

Jul 22, 2015 6:04 PM in response to ForTozs

I recently resolved this issue on my mom's iMac and MacBook Air. The problem wasn't with Mac Mail though, but was with some online IMAP settings.


My mom has multiple email accounts on her Mac Mail, including some Gmail accounts and one Google Apps account. After manually disabling each account under Mail - Preferences - Accounts, she was able to determine that the cause of recentsd and CalNCService using so much CPU and memory was coming from her Google Apps account. After going to Settings - Forwarding and POP/IMAP and comparing her settings with another Google Apps account that wasn't having any problems, I noticed that Auto-Expunge was turned off. After I turned Auto-Expunge on, the problem went away after re-enabling her email account in Preferences - Accounts.


Although this was a Google Apps email account, it would probably apply to any Gmail account as well.


Hopefully this helps some of you.

Memory leak in recentsd and Mail eating up all my RAM

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