Apple Event: May 7th at 7 am PT

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

Jul 7, 2015 2:11 AM in response to Luis_Mercado

GREAT!!!

After trying all kinds of suggestions from other places that did nothing, or close to nothing, this seems to solve the issue completely.

True, I am only running a few hours after the fix, but I am getting CPU% of 0.5-8 on the WindowsServer process, without external monitor connected.

With external monitor connected via thunderbolt it is about the same.

Connecting to my docking station (Ultra Station j5) it jumps to 31%, and there is another process called USGVGASync that is at around 31% and kernel_task at 25%.

These values are still way too high but it is much better than the what I got previously and doesn't seem to slow down the OS or cause fan to run at full speed.

Jul 16, 2015 10:59 AM in response to Luis_Mercado

Dear Luis,


thank for the guide and it helped BUT only for a few minutes streaming hd content. Usually HD fails for all the lagging that does not occur as long as my old external Cinema Display 23" is not connected - but on my desk at home I use it all the time. With your guide I get a razorsharp system for a few minutes but then video will start lagging and the whole system is affected even when typing. I have a MBA 11" from 2012 and run osx 10.10.


It feels like hitting a wall after these few minutes. When I do not stream or only a small video, it doesnt happen and I can work nicely otherwise. A restart always helps a little but your guide worked best for me so far, only just until the problem returns...

Aug 23, 2015 6:35 AM in response to Luis_Mercado

Hi Luis


Before doing this can I check to see if my problem is the same. I have a late 2012 MacBook Pro with Yosemite 10.10.5 and I running Office for Mac 2011. Periodically Outlook gives me the beach ball for 5+secs and the CPU usage hits 99.x %, then outlook shows as not responding and then it all goes back to normal. It appears to do this every 5 -7 minutes even if Outlook is inactive. Everything else is fine. However I have a Matrox Dual to Go screen device running 2 x 23 inch monitors and your post refers to other displays?


Does it sound like it is worth trying your fix?


Thanks

Aug 28, 2015 10:05 AM in response to Luis_Mercado

Greetings!


Thank you Luis! Your guide helped very much.


These are updates to Luis' directions if you use FileVault (2 Full Disk Encryption) and still want to follow Luis' directions on how to tame the rogue WindowServer process.


Second step update: Even though, Apple's own support page says it will work for FileVault users, I couldn't get it to work. So I had to use a Terminal approach.

I found a helpful guide on OSXDaily that will help if you need to do as I did: How to Enable Safe Mode from the Command Line on a Mac


Fourth step update: Since I have a Firmware password enabled, I had to turn it off to get the key combination for resetting the PRAM to work. All I had to do was disable it, follow Luis' directions to reset the PRAM and then re-enable it.


10 hours in and WindowServer is behaving...

Sep 28, 2015 9:25 PM in response to Luis_Mercado

I would add that in resetting SMC, don't unplug, count to 15 and plug it back in. Unplug it, go make a sandwich, have a beer (or two), catch some Sports Center and come back to your trusty Mac 30 minutes or more later and plug it back in. I followed the 15 second rule and the problem seemed worse, then the next day I unplugged my iMac, worked on my MacBook for 30-60 minutes and plugged my iMac back in to find it back to normal. Reminds me of the time I learned of the SMC reset and dragged my previous iMac to the Apple Store only to have it work perfectly for the genius after being unplugged for at least an hour. Don't ask me to explain...that's just been my experience.


Cheers!!

Oct 30, 2015 9:23 PM in response to Luis_Mercado

Regrettably I followed this procedure 3 consecutive times today and got absolutely no benefit. In fact my problem is now worse.


I am very happy other people received a positive outcome. But obviously there are circumstances this procedure does not work for.


My issue is centered on iMail consuming 150% - 200% CPU continuously. I have tried many other suggestions on the support forum and then stumbled on this one. Supposedly this solution is applicable to my circumstance. But unfortunately after investing substantial time my situation has deteriorated.


I am running OS X 10.10.5, just for reference.


Users should know that it takes a lot of time to complete this procedure. And they will simply be lucky if it works for them. It would be better to know what the real problem is before treading down a mysterious path.

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 ID.