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

Jan 31, 2015 2:13 PM in response to Luis_Mercado

I've been trying for months to resolve the memory that Safari has been using. When I launched Safari it would start off with about 1.2 GB and start climbing from there. I could actually see it increasing in Activity Monitor. After about 2-3 days it would have increased to over 10GB and my memory would be in the yellow and my system would come to a screeching halt. I would have to quit Safari and reboot. After following these steps Safari launches using 155 MB and after running for 6 hours it is still under 200 MB.


Thank you Luis_Mercado! I believe you solved my problem!

Feb 5, 2015 6:22 AM in response to Luis_Mercado

Hello,

i had the same WindowServer memory problem whit my imac 24" (yosemite) and when I switch to a new imac 5k the problem was not solved.

I have create a new user but nothing, I have reinstalled a fresh Yosemite OS but without results.

I followed Luis_Mercado procedure but unfortunately my imac works fine for only 2 hours and then the WindowServer memory increase again up to 20 GB and more.

After that I have done this 3 think:

- Update google drive

- Close the Stickies.app and removed from the login item in the system preferences - users & groups

- Apple menu - User log out - and uncheck the box "reopen windows when logging back in" (or something like that, my os is in Italian 😕)

When I logged in again my mac was working OK (I am using it for two working days without problems), WindowServer memory goes from 50 MB to 350 MB up and down - not only up.

I don't know what help me but now I am happy again.

I hope this is helpful to someone. Have a nice day

Feb 6, 2015 3:30 AM in response to Csound1

Well, notwithstanding the fact that I'm not supposed to find it out rather than Apple to provide a smoothly running system: how could I find that out? All I see is the SBBOD. It does not appear all time, but I saw it more than once (and never ever in a previous OSX version).


I re-tested the WindowServer behavior. When idle it jumps between 2 and 7% and after turning on my spinning icon it starts jumping between 10 and 15%. The only things on the window that do graphics are the activity monitor and my spinning icon. I "feels" as if this behavior is a bit better in 10.10.2 than it was in the first release. But still if such a little icon animation eats up 3 to 8% of the CPU then something is rotten in the state of Denmark.


I do not expect a solution. At least not in the near future. But it's some sort of relief to cry out my pain from time to time.

Feb 6, 2015 4:36 AM in response to Csound1

It's a nice app, but it did not help. It shows a couple of daemons/agents were killed due to memory pressure. But of course not who was responsible for the pressure. Personally I'm not aware of any application that will use lots of memory - except XCode and maybe Safari (I have not played minecraft for a while...). It might be that (intentionally for a test) I created and started an App eating lots of memory. But as said: the perpetrator is not listed.

Feb 13, 2015 3:00 PM in response to ChazThePhoenix

Sure a clean install will give you a cleaner machine by getting rid of legacy garbage and all the unnecessary stuff, but there is no grantee it will fix the Yosemite memory leak problem. The problem is just going to persist even after a clean install. The apps will continue to hog resource and grow their size in memory until they bring your Mac to a total halt. I can confirm this, since I repartitioned and erased Macintosh HD, and then I commented a clean install. I did not install any application at all, so there were just Apple's built in applications. I tested my MacBook Pro for a week, and guess what happened? The apps in the activity monitor started to eat more and more memory space(Mail and Safari are the major culprits) until they made my Mac stop completely! So I'm going back to Mavericks now, and I will not install Yosemite until this major issue and the ugly interface is fixed. I just don't have more time to spend on fixing my Mac anymore! This is a Mac for byte's sake not a PC! It's supposed to work for users not the other way around!

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.