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

first Previous Page 16 of 38 last Next
  • by lovewillia,

    lovewillia lovewillia Nov 6, 2014 4:25 PM in response to Luis_Mercado
    Level 1 (0 points)
    Nov 6, 2014 4:25 PM in response to Luis_Mercado

    NO. This is NOT going to work. You should not come to this point to fix this issue.

    It is caused by sluggish WindowServer. There must be some bug in the system.

    I am disappointed at Yosemite. The new system is buggy.


    PS: and this thread should NOT be marked as solved.

  • by Dlunderwood,

    Dlunderwood Dlunderwood Nov 6, 2014 6:52 PM in response to Luis_Mercado
    Level 1 (0 points)
    Nov 6, 2014 6:52 PM in response to Luis_Mercado

    Thanks for posting this.  It fixed the memory leak and cpu problems.  But now every time my macbook sleeps when attached to my thunderbolt display, it crashes with grey screen of death when I wake it.  And the magic mouse stopped working 12 hours after I did you fix.  Any ideas - Apple support has been the exact opposite of helpful.

  • by monostone,

    monostone monostone Nov 6, 2014 10:34 PM in response to Dlunderwood
    Level 1 (4 points)
    iPad
    Nov 6, 2014 10:34 PM in response to Dlunderwood

    Thank you too for posting this!! I thought, I was alone with my freezing-problem!!!!

     

    MBP freezes after update to Yosemite

     

    Does the problem go away, when you disconnect the second screen?

  • by rahulthewall,

    rahulthewall rahulthewall Nov 6, 2014 10:41 PM in response to monostone
    Level 1 (0 points)
    Nov 6, 2014 10:41 PM in response to monostone

    Well, WindowServer CPU usage is normal if I do not use a secondary screen. But how am I supposed get any work done with just a 15" screen is beyond me, but hey, that's what Apple seems to have decided. YMMV.

  • by q-styler,

    q-styler q-styler Nov 7, 2014 12:25 AM in response to Luis_Mercado
    Level 1 (0 points)
    Nov 7, 2014 12:25 AM in response to Luis_Mercado

    Confirm.

    Didn't have to reset SMC. Only PRAM.

    Did a disk repair also with permission, found couple of bads (sad, but c'est la vie).

    Now my macbook works like a charm with.

  • by www.demis.nu,

    www.demis.nu www.demis.nu Nov 7, 2014 1:34 AM in response to Luis_Mercado
    Level 1 (0 points)
    Nov 7, 2014 1:34 AM in response to Luis_Mercado

    This morning I created a fresh new admin account on my mac to see if my main admin account was the only one to be affected by this impossibility to work or not?

     

    See the results, I restarted the mac, open only one session (the new one called TEST) and with just activity monitor, I only had 5-6Gb left!!!

    Besides, today on my main admin account the kernel_task grew from 900Mb (yesterday) to 1,1Gb today... hope it won't be 6Gb at the end of the months!.

     

    C'mon APPLE, do you read this post? Some people bought a 2600€ mac and more, and their macs don't even have a year!!!

    thank you.

     

    image02.png

  • by MadMacs0,

    MadMacs0 MadMacs0 Nov 7, 2014 1:45 AM in response to www.demis.nu
    Level 5 (4,801 points)
    Nov 7, 2014 1:45 AM in response to www.demis.nu

    www.demis.nu wrote:

     

    This morning I created a fresh new admin account on my mac to see if my main admin account was the only one to be affected by this impossibility to work or not?

     

    See the results, I restarted the mac, open only one session (the new one called TEST) and with just activity monitor, I only had 5-6Gb left!!!

    There is nothing wrong with that. Since Mavericks, the Memory Management system attempts to keep RAM full at all times, much of it inactive cached files that are there to prevent having to fetch them from the Hard Drive. As long as the MEMORY PRESSURE graph at the bottom remains green, you should totally ignore the amount of RAM used. If it's need for something else, the system will take care of that.

    C'mon APPLE, do you read this post?

    Very doubtful. It's way too long and Engineering is far to busy to be reading what is here. The only way to be certain that Apple will read anything you say is to send them Feedback, if you were part of the Beta Test use Feedback Assistant or open a free developer account and file use Bug Reporter.

  • by www.demis.nu,

    www.demis.nu www.demis.nu Nov 7, 2014 1:59 AM in response to MadMacs0
    Level 1 (0 points)
    Nov 7, 2014 1:59 AM in response to MadMacs0

    thank you, I sent them a report on th feedback link your kindly left me. But not really sure an answer will be given.

    So just to make sure I made myself understood, I know things has changed since maverick from the RAM area and that's what I wrote in my previous answers. Under maverick I didn't have this slowdown behavior, I didn't have to click on refresh bouton on "memory clean" or "memory boost" apps 10 times per hours, never. Maybe 2-3 times per day. Now, since I installed yosemite, it has changed.

  • by MadMacs0,

    MadMacs0 MadMacs0 Nov 7, 2014 2:15 AM in response to www.demis.nu
    Level 5 (4,801 points)
    Nov 7, 2014 2:15 AM in response to www.demis.nu

    www.demis.nu wrote:

     

    Under maverick I didn't have this slowdown behavior, I didn't have to click on refresh bouton on "memory clean" or "memory boost" apps 10 times per hours, never. Maybe 2-3 times per day. Now, since I installed yosemite, it has changed.

    I haven't really been following this discussion and forget how I ever got here. My specialty is malware, so I probably dropped by to tell somebody they were infected.

     

    But in another forum, I have had numerous discussions about this Memory thing for the last couple of years and we all agree that the use of utilities such as Memory Clean and Memory Boost are counter-productive and cause more harm than good. Lots of folks got used to needing them for previous OS's and I know they will tell you they have been updated for Mavericks and Yosemite, but that still doesn't take care of the fact that they inherently undo what the Memory Management system is trying to keep under control. Use them to keep track of memory usage if you must, but keep your finger off the button! If you have to use the refresh button continually, then something is very wrong. I correspond with hundreds of Yosemite users daily and none of them are have your issues. When I was having issue like this in Mavericks, a quick re-install of the OS took care of it for good.

  • by www.demis.nu,

    www.demis.nu www.demis.nu Nov 7, 2014 2:18 AM in response to MadMacs0
    Level 1 (0 points)
    Nov 7, 2014 2:18 AM in response to MadMacs0

    Ok I understand now what you meant. Thank you for your advice man ;-)

  • by ThomasKilian,

    ThomasKilian ThomasKilian Nov 7, 2014 2:20 AM in response to MadMacs0
    Level 1 (0 points)
    Nov 7, 2014 2:20 AM in response to MadMacs0

    To second this: memory management is one of the basic things an OS shall be able to handle (well!). If there's a need for a 3rd party memory management you can drop the OS. Since OS X is based on *NIX you can trust that memory management is in good hands and does not need outside help.

  • by Howardsweb,

    Howardsweb Howardsweb Nov 7, 2014 3:44 AM in response to www.demis.nu
    Level 1 (5 points)
    Nov 7, 2014 3:44 AM in response to www.demis.nu

    "Then I tried ALL THE TIPS kindly left in the original post by Luis_Mercado"

     

    Did you try any of the things that solved mine ? My iMac is 2007 ! and it's now smooth as silk.

  • by JeffinOC,

    JeffinOC JeffinOC Nov 7, 2014 4:18 AM in response to Luis_Mercado
    Level 1 (0 points)
    Nov 7, 2014 4:18 AM in response to Luis_Mercado

    Thanks, this seems to have solved my similar Safari issues!  I had tried a number of the other recommended steps on this site, but this was the one that worked!

  • by mysticmcj,

    mysticmcj mysticmcj Nov 7, 2014 7:01 AM in response to jkbull
    Level 1 (0 points)
    Nov 7, 2014 7:01 AM in response to jkbull

    jkbull - moving the icon to the upper right seems to make things much much happier compared to having it to the left.  It does seem to make a difference.

     

    Now I only seem to get slowdowns when I have tons of terminal / chrome tabs and windows open, but nothing related to tunnelblick or third party icons.

     

    All, I agree that this isn't a minor bug.  It's something that NEEDS to be tackled, and I'm not exactly thrilled either.  It seems to be manageable in the meantime, though - at least in my case.

  • by Baresaidwhat,

    Baresaidwhat Baresaidwhat Nov 9, 2014 12:16 AM in response to Luis_Mercado
    Level 1 (0 points)
    Nov 9, 2014 12:16 AM in response to Luis_Mercado

    I tried this method and it was unsuccessful. I am not sure if I didn't remove external monitors correctly ( I don't have any idea if any are attached) but I did everything else correct. I entered Safe Mode, from there changed my fixed permissions and entered SMC then reset the PRAM. Nothing changed at all. It actually took me longer than normal to even write this response. My MAC is at a crawl.

     

    What else could be the culprit?

first Previous Page 16 of 38 last Next