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 6, 2014 4:38 AM in response to ThomasKilian

Did you do the testing against any consideration: did Apple pay you in cash or kind? Else, there shouldn't be any contractual relationship between you and Apple; hence, nothing can bar you from enjoying your right enshrined in the Declaration of Independence and thereafter: independence of expression! In any case, why is Apple scared that their beta tester might leak something? Was the OS such scary? That it is buggy and is behaves like a Trojan with effectively attacking using the pattern "Denial of Service" is quite apparent. What is not understandable is why should the manufacturers include a trojan in their own OS!

Nov 6, 2014 5:30 AM in response to Luis_Mercado

Hello you all.


I'm desperate, I mean really.

I ran maverick on my actual MBP 15" retina (late 2013) 2,3 GHz Intel Core i7 / 16Gb ram / 1Tb SSD without any problem.

I used to run the app memory clean only some days when 7 apps like LR, photoshop, Muse, itunes, Firefox (with many open tabs), FCP X...where running for hours. Except that, my 16Gb ram was always enough.


Then I install yosemite, and then, troubles began to appear....see this screen capture below.

I only have firefox, mail, spamsieve, reeder 2 and the activity monitor open...see how much ram left! (in the menu bar)

I'm a pro photographer and now since I installed yosemite I can't spend an hour without launching memory clean, 3, 4 times.


Then I tried ALL THE TIPS kindly left in the original post by Luis_Mercado, but see....

It's obvious, my MBP retina (late 2013) became UNSUABLE the day I installed yosemite.

If any kind soul can help, I'll be happy.

Thanks anyone for your help.


regards

User uploaded file

Nov 6, 2014 6:04 AM in response to Luis_Mercado

Sadly all resets did not helped much (MPB 15 Mid 2010).


WindowServer is eating CPU as mad (yeah, I do have external monitor attached) and more and more my MBP is not usable for anything ...


After suffering trough Mavericks bugs and slowdowns for me this is the last straw (well, new GUI design direction with iOS and OSX too) ... after almost 20 years of dedicated Apple usage I'm dropping it ... we are all paying big premium to have computers who "Just Work" ... well that time is now long gone and its time to move on -- for me as the web developer to some of the linux based systems with much more horsepower for less $$ and freedom to choose GUI I like and not dreading what the next update will bring. OS(X) was the reason I was paying Mac prices, now compared to .9 and .10 even Windows starts to look good.

Nov 6, 2014 8:26 AM in response to nebojsa

I wish you luck if you decide to go the linux route - The desktop environments make further strides every release, and they are great as long as you stay within the "preferred" path for window managers, desktop environments, etc. But if you think OSX is bad about changing things from release to release, you haven't spent much time in the world of the Linux desktop. You will see the same changes from major release to major release - and sure, you can work outside of the distro and install your own desktop environment / window manager, but then good luck with updates. I've gone through that cycle many many times... It starts taking so much tinkering that I waste to much time on it.


Every .0 release will have issues, and nobody is forcing a switch to Yosemite, or even Mavericks. You could always run OSX Lion/Mountain Lion - Only recently did Apple stop supplying security updates for 10.6, so surely Mountain Lion has some life left in it.


As far as your WindowServer slowdowns -- Do you have any third party tray icons in the upper right at all?


I'm still experiencing slowdowns if I have tunnelblick open, and that is the ONLY third party app I use that has a tray icon at this point. If I quit and reopen tunnelblick, then it all works fast again. I did end up disabling translucency reducing transparency again, as it seems to make things more manageable when the slowdowns start - but the slowdowns are definitely tied to the tray.

Nov 6, 2014 8:43 AM in response to mysticmcj

you're right the icons do push your windowserver cpu higher, but so do other interface animations. I can reliably force window server to crash if you screenshare / ARD to that mac for an extended period of time.


I think that the issue here is window server is getting taxed by what should be simple tasks, an accumulation of several tasks will push window server so hard that it causes the system to become unstable

Nov 6, 2014 9:17 AM in response to mysticmcj

@mysticmcj - It would be interesting to see if it makes a difference if you set Tunnelblick to not put its icon near the Spotlight icon (on the "Appearance" panel of Tunnelblick's "VPN Details…" window). Tunnelblick uses two different system calls to place the icon, depending on that setting.


Also, is there any evidence of a memory leak when you have Tunnelblick running? Or evidence that it is Tunnelblick itself (and not the status bar system) that is causing the slowdown? I'm the Tunnelblick developer, so please report any such problems to the Tunnelblick Discussion Group.

Nov 6, 2014 9:34 AM in response to jkbull

@jkbull - You know, I've been running it NOT near the spotlight icon because I didn't like it there. I'll try switching it back over there, that's an interesting thought. I'll follow up...


I see no evidence of tunnelblick causing the slowdown at this point - It's all windowserver lag. I was certainly getting a larger slowdown from other apps that used the systray... I'll keep an eye out, though.


Thank you for making an awesome product and for following this issue!

Nov 6, 2014 4:10 PM in response to mysticmcj

Sure, nobody forced me to upgrade and I'm still kicking myself for doing it 😊


.0 release problems or not this is not some minor problem -- some apps crashing, OK that's "normal", making the whole system almost unusable and overheating it to death (and considering GFX RAM position on MBP 15 possible hardware problem) that's a major issue and there is nothing done about it ATM (no official workarounds, hotfixes, not even a apology).


If I'm forced to re-install the OS and my whole setup then I'll choose something where I'll have much more control. IMHO, for the (web) developer, Windows is not great platform (toolchain can be a PITA to setup and lacking of options), OSX (was) ideal middle ground with a great GUI design (well, IMHO, had a great GUI design) and *nix under the hood, so that leaves me Linux as only option -- I may need to work around to massage it to my preference but at least I can pick and choose what I want more freely and, as I'm using it in one shape or form from the Slack 1.0 release, carrying over my setup trough upgrades is not more work (after initial setup) than "recovery" after new OSX release (.9 & .10).


In the end, I'll probably bite the bullet and downgrade, but in the next hardware upgrade cycle getting a Mac will not be my first choice anymore (OSX was the main reason for that).

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.