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.

Guide: How to solve Yosemite memory leaks and CPU usage

I post this hoping to help those users who, like me, are experiencing high CPU usage and massive memory leaking with OS X core services and apps, leading to slow performance and battery drain.


I've tried everything mentioned, but found the right combination of steps to follow. I've tried this with seven different Apple computers, including mine, and has worked well so far. I applied this method yesterday to give these process a 24 hour window to fail again, so far everything good.


First step: disconnect any external or secondary monitors, if any is present. The video memory allocation leak can also happen if you have a system with an integrated card, like Intel, with no external monitors attached.


Second step: Shut down your machine and enter Safe Mode (press shift once you turn on your computer again, more info below). Once you're there, fix your disk permissions.


Guide of how to access Safe Mode: OS X: What is Safe Boot, Safe Mode?


Third step: From Safe Mode turn off your machine again and reset your System Management Controller (SMC). There are different methods, depending on machine, to do this. To know what method applies to yours read the following guide.


Intel-based Macs: Resetting the System Management Controller (SMC)


Fourth step: Once your machine completes a full boot after resetting the SMC turn it off again and reset your PRAM (THIS IS THE MOST IMPORTANT STEP, BUT THE PREVIOUS ONES ARE ESSENTIAL FOR THIS ONE TO WORK). The PRAM stores small bits of data that indicate our Apple computer how to interact with the devices connected to it, including monitors and video cards. It also affects software.


To reset it you should hold the OPTION, COMMAND, P and R keys in your keyboard immediately after turning on your machine again.You'll hear the start up chime, continue pressing the keys until the machine boots and the chime starts A SECOND TIME, then release. IF YOUR YOSEMITE INSTALLATION LOCKS UP AT A BLACK SCREEN AFTER THIS, DONT PANIC! It's normal, just turn off your computer and let it boot again.


More info about PRAM: OS X Mavericks: Reset your computer’s PRAM


Voila, reconnect your external displays and enjoy your system.


Message was edited by: Luis_Mercado

MacBook Air, OS X Yosemite (10.10)

Posted on Oct 23, 2014 10:45 AM

Reply
557 replies

Nov 4, 2014 7:17 AM in response to Luis_Mercado

Solution didn't work for me.


Late 2011 MBP with 8GB RAM. It's consistently using 7.9-odd GB and slows to a crawl with more than a couple of apps open. Anything beefy like Aperture or Logic freezes the thing up completely.


Generally, no one app seems to be using crazy amounts of RAM, though I am seeing a lot of crashed/unresponsive system processes, Safari tabs, etc.

Nov 4, 2014 7:32 AM in response to Luis_Mercado

Luis' solution may improve some functions of the OS, but it does not solve the Mac Mail leak problem.


This is definitely a bug in the Mail code somewhere, affecting (at least) some configurations of Yosemite installs. My Mac Mail app is un-useable at this point. It starts leaking memory just by opening it. Within a minute or so it is using up 33GB of memory.


To be sure, I ran through the safe mode/smc/PRAM steps listed on my MacBook Pro. Mail's memory leak problem remains.

Nov 4, 2014 11:31 AM in response to Luis_Mercado

A friend of mine insists on LibreOffice as cause for all that trouble. He thinks that the fonts of LibreOffice interfere with the Apple-ones and lead to something like stack-overflow.


Possible??


(I love the formula-editor of LO, since nothing compares to it. (simply writing the expressions instead of click-click-click). Latex is a bit too special for my purposes.)

Nov 5, 2014 4:21 AM in response to Luis_Mercado

My mail app (8.0 Yosemite) was showing >100% usage on my core 2 duo MacBook, even when not touching any mail servers.

Followed the instructions, and after the usual flurry of activity on the last boot, the system settled down nicely to what I consider "normal" activity levels, even when checking mail. It give all appearance of working and I will keep a close eye on it over the next 24 hours or so.

Thanks for posting clear instructions.

Nov 5, 2014 3:43 PM in response to centennialcliff

So I think I found the windowserver issue. I tried all of the other tricks - Disabling transparency, only using one display, forcing discrete graphics, resetting the SMC and PRAM. All of that seemed to chip away a bit, but no matter what, this kept creeping back. My usage pattern typically is heavy on browser and terminal windows.... so I'm not doing anything too crazy.


Find anything that has a tray icon in the upper right, and kill it. Seriously, everything - Unless it came from apple itself, it's suspect, and even then, kill it if you don't need it.


My brother printer has a app that mandates a tray icon I tended to actually use because I could scan directly from the printer - a bit silly, i know, but handy when you have more than one person using a networked scanner. Not so handy that I have to run it.... That was the largest culprit.


Little snitch seemed to be contributing as long as the icon was present -- Even if I disabled animations.

Crashplan - Similar. Even with the mono-icon. I now don't use the menubar.

Chrome is a HUGE offender if you use notifications and hangouts and have the icons on - Hide the notifications icon, and get rid of the one for hangouts, and there should be immediate improvement.

I killed dropbox - Shame I can't just kill the icon.


Every one I kill, the better it gets. Chrome and the Brother application were drastic - Mission control ran at about 1-2 FPS before I killed them, but once I did, it was instant improvement.

I'm down to battery, clock, volume, and wireless status (which I just killed, because why not) - and the mandatory finder/notifications icons. I've turned transparency back on as well as automatic graphics switching, as an experiment.


I have a tunnelblick icon from time to time, as I require that, and I haven't figured out how to hide the icon yet -- It hasn't seemed to cause any slowdown, but I'm prepared to restart it if it does.


After trying everything else, this seems to be the only thing that has brought IMMEDIATE improvement. You probably don't need to kill the native apple tray icons, but at this point, I'm just killing it if I don't absolutely require it. You could definitely point to third party applications as the issue here, but it seems completely insane to me that a taskbar icon could cause so much havoc.

Guide: How to solve Yosemite memory leaks and CPU usage

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