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 12 of 38 last Next
  • by Kimouna,

    Kimouna Kimouna Nov 2, 2014 5:34 AM in response to ThomasKilian
    Level 1 (0 points)
    Nov 2, 2014 5:34 AM in response to ThomasKilian

    Thanks. The first person mentioned doing it while in Safe Mode, which I don't know how to do. But will try it in normal mode as you've suggested and see if that helps.

  • by ThomasKilian,

    ThomasKilian ThomasKilian Nov 2, 2014 5:53 AM in response to Kimouna
    Level 1 (0 points)
    Nov 2, 2014 5:53 AM in response to Kimouna

    To enter safe mode you need to reboot your machine. Hold the shift key when the chime is heard and release it when the Apple logo appears. OS X: What is Safe Boot, Safe Mode? - Apple Support

  • by MadMacs0,

    MadMacs0 MadMacs0 Nov 2, 2014 9:33 AM in response to ThomasKilian
    Level 5 (4,801 points)
    Nov 2, 2014 9:33 AM in response to ThomasKilian

    ThomasKilian wrote:

     

    Just open Disk Utility and select the drive. Then click the Repair button.

    Actually, it's the "Repair Permissions" button. "Repair" performs a different function.

  • by ThomasKilian,

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

    I have a German localization and was too lazy to switch. Thanks for the correction.

  • by makebafromlos angeles,

    makebafromlos angeles makebafromlos angeles Nov 2, 2014 1:16 PM in response to Luis_Mercado
    Level 1 (0 points)
    Nov 2, 2014 1:16 PM in response to Luis_Mercado

    Luis,

     

    "Thank You" for this post it really helped me.   I did each of the steps you recommended, and so far, I have not had to restart my computer due to loss of application memory.  My biggest memory leak was coming from the mail application, but following these steps seems to have fixed my computers issue.

  • by Kimouna,

    Kimouna Kimouna Nov 2, 2014 2:50 PM in response to makebafromlos angeles
    Level 1 (0 points)
    Nov 2, 2014 2:50 PM in response to makebafromlos angeles

    Luis, I tried your instructions but it didn't work for my laptop problem. I'd appreciate your (or anyone's) suggestions -- my info is posted here: yosemite upgrade problems

  • by pranabdavinci,

    pranabdavinci pranabdavinci Nov 2, 2014 11:50 PM in response to Luis_Mercado
    Level 1 (0 points)
    Nov 2, 2014 11:50 PM in response to Luis_Mercado

    Tried the instructions a couple of times; still the problem remains with MacBook Air purchased in January 2014, still under warranty. However, the apple support in India being seriously troublesome*, I have to depend on these posts for self-help. Please inform if any other things can be tried. I never faced such problem with windows update and find this is annoying.

     

    ** One more thing, my wife has an iPad and I cannot use my own id (from which I am posting this) but only my wife's for my macbook air! I told this to the telephone rep and also to the service center. However, there is no respite in spite of a few hours of conversation and a gap of best part of a year. Could any peer give useful suggestion on how this can be corrected without having to deal, orally, with any apple service person?

     

    ***I have recently installed Memory Clean (free) from App Store to save my works from Yosemite. Noticed that it does not clean memory at preset levels (mine was 100 Mb; then raise to 500 Mb) automatically. While I don't like any such external app just to have your system working -- else, the free memory would fall to the level of 10 Mb or so (this has never happened w/Mavericks) -- is there any comment on the tool?

     

    (*) While referring to my son's MacBook Pro having problem with power adapter and requesting to send the adapter by post instead of asking us to go to their franchisee's shop twice (once to give the adapter to them and once to collect it from them) which is quite some distance, their support shown insensitivity to customer's problem for apple's product failing within the warranty period.

  • by rahulthewall,

    rahulthewall rahulthewall Nov 3, 2014 12:25 AM in response to Luis_Mercado
    Level 1 (0 points)
    Nov 3, 2014 12:25 AM in response to Luis_Mercado

    This did not solve the problem for me. I repeated the steps and as soon as I used an external display, the problem reappeared (everything goes back to normal as soon as I detach the external display). I have filed a bug. Bug#: 18850537

  • by monostone,

    monostone monostone Nov 3, 2014 12:50 AM in response to Luis_Mercado
    Level 1 (4 points)
    iPad
    Nov 3, 2014 12:50 AM in response to Luis_Mercado

    Thank you very much. For the moment it ist working fine. Hope it will futher on.

     

    Is that a bug or misbehaviour, Apple should be taking care of? Do they realize what is going on here?

  • by rahulthewall,

    rahulthewall rahulthewall Nov 3, 2014 12:52 AM in response to monostone
    Level 1 (0 points)
    Nov 3, 2014 12:52 AM in response to monostone

    Definitely a bug that should be fixed.

  • by ThomasKilian,

    ThomasKilian ThomasKilian Nov 3, 2014 12:53 AM in response to monostone
    Level 1 (0 points)
    Nov 3, 2014 12:53 AM in response to monostone

    I had reported a bug last week but so far Apple has not taken care of it. Up to your imagination why.

  • by Kevin Neal,

    Kevin Neal Kevin Neal Nov 3, 2014 12:55 AM in response to ThomasKilian
    Level 3 (513 points)
    Servers Enterprise
    Nov 3, 2014 12:55 AM in response to ThomasKilian

    I filed a bug report via Feedback Assistant, I've had a reply from apple requesting more logs to look at

  • by MadMacs0,

    MadMacs0 MadMacs0 Nov 3, 2014 1:01 AM in response to ThomasKilian
    Level 5 (4,801 points)
    Nov 3, 2014 1:01 AM in response to ThomasKilian

    ThomasKilian wrote:

     

    I had reported a bug last week but so far Apple has not taken care of it.

    The earliest you should expect to see a fix would be with the release of 10.10.1 unless there's some sort of firmware update for a limited number of Mac models that could take care of it. There aren't even any rumors about 10.10.1 yet, but I suspect there is an early alpha version internal to Apple in limited testing. Once they get enough bug reports to narrow it down, it probably should not take them long to come up with a solution. Simply discussing it here won't help to speed things up.

  • by lilynz07,

    lilynz07 lilynz07 Nov 3, 2014 2:16 AM in response to Luis_Mercado
    Level 1 (0 points)
    Nov 3, 2014 2:16 AM in response to Luis_Mercado

    Unfortunately these steps haven't resolved my issue. I have been experiencing poor responsiveness before I updated to Yosemite; I updated hoping that it would fix the issue but no luck. Basically get the spinning wheel error every 10 - 15 seconds when browsing (Chrome) or using the computer in general. Have given the computer a clean and followed these steps. Memory Used seems to be high; however, Memory Pressure remains green even when getting the spinning wheel of doom. Details below, any help appreciated.

     

    Problem description:

    Constant spining wheel when doing pretty much anything. High Memory Used but Memory Pressure is green.

     

    EtreCheck version: 2.0.11 (98)

    Report generated 3 November 2014 10:48:44 pm NZDT

     

    Hardware Information: ℹ️

      MacBook Pro (13-inch, Mid 2012) (Verified)

      MacBook Pro - model: MacBookPro9,2

      1 2.5 GHz Intel Core i5 CPU: 2-core

      4 GB RAM Upgradeable

      BANK 0/DIMM0

      2 GB DDR3 1600 MHz ok

      BANK 1/DIMM0

      2 GB DDR3 1600 MHz ok

      Bluetooth: Good - Handoff/Airdrop2 supported

      Wireless:  en1: 802.11 a/b/g/n

     

    Video Information: ℹ️

      Intel HD Graphics 4000 -

      Color LCD 1280 x 800

     

    System Software: ℹ️

      OS X 10.10 (14A389) - Uptime: 0:11:20

     

    Disk Information: ℹ️

      APPLE HDD TOSHIBA MK5065GSXF disk0 : (500.11 GB)

      S.M.A.R.T. Status: Verified

      EFI (disk0s1) <not mounted> : 210 MB

      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB

      Macintosh HD (disk1) /  [Startup]: 498.88 GB (420.57 GB free)

      Core Storage: disk0s2 499.25 GB Online

     

      MATSHITADVD-R   UJ-8A8 

     

    USB Information: ℹ️

      Apple Inc. Apple Internal Keyboard / Trackpad

      Apple Computer, Inc. IR Receiver

      Apple Inc. BRCM20702 Hub

      Apple Inc. Bluetooth USB Host Controller

      Apple Inc. FaceTime HD Camera (Built-in)

     

    Thunderbolt Information: ℹ️

      Apple Inc. thunderbolt_bus

     

    Gatekeeper: ℹ️

      Anywhere

     

    Launch Agents: ℹ️

      [invalid?] com.adobe.AAM.Updater-1.0.plist Support

      [not loaded] com.adobe.AdobeCreativeCloud.plist Support

      [invalid?] com.divx.dms.agent.plist Support

      [invalid?] com.divx.update.agent.plist Support

      [loaded] com.google.keystone.agent.plist Support

     

    Launch Daemons: ℹ️

      [loaded] com.adobe.fpsaud.plist Support

      [invalid?] com.adobe.SwitchBoard.plist Support

      [loaded] com.google.keystone.daemon.plist Support

      [loaded] com.macpaw.CleanMyMac2.Agent.plist Support

      [loaded] com.microsoft.office.licensing.helper.plist Support

     

    User Launch Agents: ℹ️

      [invalid?] com.adobe.AAM.Updater-1.0.plist Support

      [loaded] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist Support

      [loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist Support

      [loaded] com.macpaw.CleanMyMac2Helper.trashWatcher.plist Support

      [not loaded] com.spotify.webhelper.plist Support

     

    User Login Items: ℹ️

      None

     

    Internet Plug-ins: ℹ️

      AdobeAAMDetect: Version: AdobeAAMDetect 2.0.0.0 - SDK 10.7 Support

      FlashPlayer-10.6: Version: 15.0.0.152 - SDK 10.6 Support

      DivX Web Player: Version: 3.1.1.9 - SDK 10.6 Support

      Flash Player: Version: 15.0.0.152 - SDK 10.6 Mismatch! Adobe recommends 15.0.0.189

      QuickTime Plugin: Version: 7.7.3

      Default Browser: Version: 600 - SDK 10.10

      SharePointBrowserPlugin: Version: 14.0.0 Support

      Silverlight: Version: 5.1.20513.0 - SDK 10.6 Support

     

    User Internet Plug-ins: ℹ️

      WebEx64: Version: 1.0 - SDK 10.6 Support

      Google Earth Web Plug-in: Version: 7.1 Support

     

    Safari Extensions: ℹ️

      Searchme

     

    3rd Party Preference Panes: ℹ️

      Flash Player  Support

     

    Time Machine: ℹ️

      Time Machine not configured!

     

    Top Processes by CPU: ℹ️

          3% Activity Monitor

          3% mds_stores

          1% sysmond

          0% Google Chrome

          0% WindowServer

     

    Top Processes by Memory: ℹ️

      103 MB mds_stores

      90 MB Spotlight

      86 MB softwareupdated

      86 MB Google Chrome

      77 MB WindowServer

     

    Virtual Memory Information: ℹ️

      181 MB Free RAM

      1.90 GB Active RAM

      1.55 GB Inactive RAM

      618 MB Wired RAM

      1.56 GB Page-ins

      9 MB Page-outs

     

  • by MadMacs0,

    MadMacs0 MadMacs0 Nov 3, 2014 3:27 AM in response to lilynz07
    Level 5 (4,801 points)
    Nov 3, 2014 3:27 AM in response to lilynz07

    lilynz07 wrote:

     

    Gatekeeper: ℹ️

      Anywhere

     

    There is no reason to have disabled Gatekeeper. If you are not able to open an app because it isn't properly signed and you are certain it's OK, then simply right-click/Contorl-click on it and choose Open. The above setting can result in the installation of malware/adware without you knowing it. Open System Preferences->Security->General tab, open the padlock, if necessary and change "Allow apps downloaded from:" to at least "Mac App Store and identified developers".

    Launch Daemons: ℹ️

      [loaded] com.macpaw.CleanMyMac2.Agent.plist Support


    User Launch Agents: ℹ️

      [loaded] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist Support

      [loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist Support

      [loaded] com.macpaw.CleanMyMac2Helper.trashWatcher.plist Support

    Uninstall CleanMyMac2 using the developers instructions. It will almost certainly cause you more harm than good.

    Internet Plug-ins: ℹ️

      FlashPlayer-10.6: Version: 15.0.0.152 - SDK 10.6 Support

      Flash Player: Version: 15.0.0.152 - SDK 10.6 Mismatch! Adobe recommends 15.0.0.189

      Silverlight: Version: 5.1.20513.0 - SDK 10.6 Support

    Flash Player is out of date and your version has been disabled by Apple as a security risk. Go to System Preferences->Flash Player->Advanced tab and use the "Check Now" button to update. SilverLight is also out of date and should be removed unless you really need it for something.

     

    Safari Extensions: ℹ️

      Searchme

    You have accidentally installed Spigot adware. The fastest, most effective way to identify and optionally remove all currently known adware is by using AdwareMedic, developed by thomas_r. this Forum's malware guru, owner of TheSafeMac and a colleague of mine.

     

    To understand why this happened an how to avoid such things in the future read John Galt's How to install adware.

    Time Machine: ℹ️

      Time Machine not configured!

    Your hard drive will fail sooner or later, usually around the three year point and often quite rapidly. If you don't have some other backup strategy in place, you need to stop whatever you are doing and back it up now.

first Previous Page 12 of 38 last Next