Luis_Mercado

Q: 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:59 AM

Close

Q: Guide: How to solve Yosemite memory leaks and CPU usage

  • All replies
  • Helpful answers

Page 1 of 38 last Next
  • by Luis_Mercado,

    Luis_Mercado Luis_Mercado Oct 23, 2014 11:00 AM in response to Luis_Mercado
    Level 1 (45 points)
    Oct 23, 2014 11:00 AM in response to Luis_Mercado

    Bump so everyone can access this

  • by Luis_Mercado,

    Luis_Mercado Luis_Mercado Oct 23, 2014 11:28 AM in response to Luis_Mercado
    Level 1 (45 points)
    Oct 23, 2014 11:28 AM in response to Luis_Mercado

    Other apps that seem to be causing problems on Yosemite:

     

    MaCafee Antivirus

    Little Snitch's network monitor

    MacUpdate Desktop

  • by Luis_Mercado,

    Luis_Mercado Luis_Mercado Oct 23, 2014 11:55 AM in response to Luis_Mercado
    Level 1 (45 points)
    Oct 23, 2014 11:55 AM in response to Luis_Mercado

    Please, if this guide's helps you, reply with your results.

  • by kreworks,

    kreworks kreworks Oct 23, 2014 1:37 PM in response to Luis_Mercado
    Level 1 (0 points)
    Oct 23, 2014 1:37 PM in response to Luis_Mercado

    About 2hrs since I followed the exact instructions, WindowServer process was at 70%+ before I started. So far, stable at about 6-8%, I'll report back in a day or so if it sticks.

     

    THANK YOU very, very much for your instructions.

     

    Macbook Pro 13" Late 2012 Refurb

  • by Eric Root,Solvedanswer

    Eric Root Eric Root Oct 23, 2014 2:17 PM in response to Luis_Mercado
    Level 9 (69,613 points)
    iTunes
    Oct 23, 2014 2:17 PM in response to Luis_Mercado

    If you mark it as solved, more people are apt to look at it. You won't get any points, but it will stand out more.

  • by Luis_Mercado,

    Luis_Mercado Luis_Mercado Oct 23, 2014 2:50 PM in response to kreworks
    Level 1 (45 points)
    Oct 23, 2014 2:50 PM in response to kreworks

    No need to thank, hope it helps.

  • by Luis_Mercado,Helpful

    Luis_Mercado Luis_Mercado Oct 23, 2014 2:51 PM in response to Eric Root
    Level 1 (45 points)
    Oct 23, 2014 2:51 PM in response to Eric Root

    Great idea, thanks!

  • by Adamanitos,Helpful

    Adamanitos Adamanitos Oct 24, 2014 2:26 PM in response to Luis_Mercado
    Level 1 (5 points)
    Oct 24, 2014 2:26 PM in response to Luis_Mercado

    Glad I found this. Mac Mail (OS X 10.10) had CPU throttled well over 100%. Seems stable and back to normal. VERY much appreciated!! - Adam

  • by Luis_Mercado,

    Luis_Mercado Luis_Mercado Oct 24, 2014 2:30 PM in response to Adamanitos
    Level 1 (45 points)
    Oct 24, 2014 2:30 PM in response to Adamanitos

    I'm glad to help. Yosemite is good once you overcome the initial bugs (windowserver leaks, Mail's problem with outgoing mail, etc).

  • by alsquare,

    alsquare alsquare Oct 24, 2014 7:27 PM in response to Luis_Mercado
    Level 1 (0 points)
    Oct 24, 2014 7:27 PM in response to Luis_Mercado

    Been at this all day, and your guide is the first promising sign of success.  Thanks!

  • by Luis_Mercado,

    Luis_Mercado Luis_Mercado Oct 24, 2014 7:46 PM in response to alsquare
    Level 1 (45 points)
    Oct 24, 2014 7:46 PM in response to alsquare

    Hope it helps. Please, post tomorrow to confirm success

  • by stevenhaines,

    stevenhaines stevenhaines Oct 24, 2014 9:40 PM in response to Luis_Mercado
    Level 1 (0 points)
    Oct 24, 2014 9:40 PM in response to Luis_Mercado

    You sir are a gentleman and a scholar!

     

    This fixed the problems I was having with sluggish UI behaviour when the WindowServer process on my elderly MacPro 3,1 (early 2008) started using a lot of CPU after updating to OS X 10.10.

     

    I suspect that it isn't just a simple CPU load problem. Even with Activity Monitor sometimes reporting over 80% CPU use for the WindowServer process, the overall processor load on this machine was still quite low, probably because of the dual quad-core Xeon processors. So WindowServer would only be processor constrained if it could only use one core. I don't know whether that is the case or not.

     

    I had thought that the very modest 512 MB of video RAM on the NVIDIA GeForce 8800 GT card in the machine might play a part but, since following the instructions and the processor load from WindowServer dropping back to more normal levels, that doesn't seem to be a problem.

     

    It would be interesting if someone familiar with how the WindowServer process works could comment on how it responds under stress. Other system processes such as backup and mds regularly reach or exceed the same level of CPU use without any ill-effect.

     

    I can confirm that, even after the fix, Little Snitch can have a larger impact on WindowServer load than under 10.9. It isn't necessary to disable the network monitor entirely, just the option to 'Show network activity in the menu bar'. As long as the network monitor window is on auto-hide, you only see the spike when you roll over then menu bar icon. Having said that, even with the menu bar display on and WindowServer using more CPU, I didn't notice any sluggishness in practice.

     

    Again, thank you Luis_Mercado

  • by kai rené,

    kai rené kai rené Oct 25, 2014 3:41 AM in response to Luis_Mercado
    Level 1 (6 points)
    iCloud
    Oct 25, 2014 3:41 AM in response to Luis_Mercado

    Thanx for tip. This made me try to reinstall OS X Yosemite after downgraded to Maverick. But when upgrade of Yosemite was done it has worked as expected on my MacBook Pro 15 from 2008. Again Thnx for inspiration and tip :-)

  • by Harptreemartins,

    Harptreemartins Harptreemartins Oct 25, 2014 5:28 AM in response to Luis_Mercado
    Level 1 (0 points)
    Oct 25, 2014 5:28 AM in response to Luis_Mercado

    Thanks very much, it's fixed the problem for me. It's also fixed my files not showing as icons within folders.

Page 1 of 38 last Next