11 Replies Latest reply: Nov 27, 2013 4:09 PM by MrElvey
MBBM Level 1 Level 1 (15 points)

Safari causes my CPU usage to skyrocket which causes my MBP to freeze. Aside from an online backup service I use, Safari was the only thing active at the time. I've found Safari to be the problem since neither Chrome nor Firefox cause this to happen. I did a force quit on Safari a couple of times (and eventually reset Safari) and still am having the issue. I don't have Java enabled due to its recent rash of security problems. I don't have any extensions installed that don't come recommended by a trustworthy source. Activity monitor shows 'Safari web content' CPU usage at 100%. Anyone have any suggestions as to why this may be happening and how I can remedy it?


MacBook Pro, Mac OS X (10.7.4), 2.4GHz i7 16GB 256GB SSD Late 2011
  • 1. Re: safari drastically increases CPU usage
    Linc Davis Level 10 Level 10 (118,305 points)

    Disable all extensions, trustworthy or not, and test.

  • 2. Re: safari drastically increases CPU usage
    DanH Level 5 Level 5 (4,370 points)

    v 6.0.4 appears to have a huge meory leak, slams the CPU, freezes, refuses to load pages and has to be force quit frequently.

     

    Here's hoping this downgrade gets fixed, soon.

     

    -dan

  • 3. Re: safari drastically increases CPU usage
    ~Bee Level 7 Level 7 (30,775 points)

    DanH & MMB--

     

    I would double check your extensions and browser add-ons.  Perhaps you've got an old one on there that is no longer compatible. My Safari works great, so I know the basic app is non-problematic.

  • 4. Re: safari drastically increases CPU usage
    DanH Level 5 Level 5 (4,370 points)

    Thanks Bee. Since posting I have done that. I have no add-ons and only one extension: LastPass.

     

    Disabling it fixes the memory leak/CPU usage, so either LP did something "illegal" in its code, or Apple broke something in this version of Safari.

     

    -dan

  • 5. Re: safari drastically increases CPU usage
    Klaus1 Level 8 Level 8 (44,495 points)

    Which is another way of saying that your version of LastPass is not compatible with the latest version of Safari.

     

    Check with the developers for an updated version, or delete it.

  • 6. Re: safari drastically increases CPU usage
    DanH Level 5 Level 5 (4,370 points)

    No Klaus, that is not what I said. It means just what I typed: either the extension is incompatible or Safari is. Neither you nor I know which it is at this point, so your suggestion to "delete it" is not helpful.

     

    Unlike you, I did something constructive. I alerted LP that their extension is not working with the latest version of Safari.They must be staffed by adults, because they somehow resisted the temptation to suggest I delete Safari.

  • 7. Re: safari drastically increases CPU usage
    Klaus1 Level 8 Level 8 (44,495 points)

    I obviosly did not suggest deleting Safari!

  • 8. Re: safari drastically increases CPU usage
    ~Bee Level 7 Level 7 (30,775 points)

    Dan, I'm glad you checked your extensions, and have at least discovered the conflict.

    All the best.

  • 9. Re: safari drastically increases CPU usage
    MBBM Level 1 Level 1 (15 points)

    I uninstalled and reinstalled extensions only to have the problem return. I eventually ended up resolving the issue by removing the Safari folder from Library and the 'com.apple.Safari.plist' file from Library/Preferences. These files were automatically re-created. Afterwards, I only needed to re-import my bookmarks.

  • 10. Re: safari drastically increases CPU usage
    DanH Level 5 Level 5 (4,370 points)

    Update: Safari 6.0.5 appears to play nice with LastPass.

     

    -dan

  • 11. Re: safari drastically increases CPU usage
    MrElvey Level 1 Level 1 (25 points)

    DanH, MBBM, etc:

     

    Can you provide (more) info on your recent experience with Lastpass in Safari? 

     

    Mine: I just did some testing to confirm why Safari is such a dog sometimes. This is on a 6GB MacBook Pro.

    First, I disabled all extensions, and relaunched Safari after enabling/disabling Lastpass.  After each relaunch, I allowed it to reload the same 21 tabs,switching among them 'till they really load, and looked at the RAM and CPU usage reported by ps, combining all Safari processes.  I ran each of these multiple times (twice, or more if there was a big discrepancy) and averaged the results:

     

    I'm running Safari 6.1 on 10.8.5 with Lastpasss 3.0.15, and trying to decide whether I should give up on Lastpass and move to Safari's iCloud Keychain on 10.9 (Mavericks), or try MBBM 's fix.

     

    Without Lastpass: 13% memory usage, CPU 8-12% typical.

    With Lastpass: 31% memory usage, CPU 60% typical, slowly quieting down to 10%.

     

    Again, these tests are average results, from minutes after launch. 

     

    (I also tried some other things - disabling all/no plug-ins, Javascript, etc.; results not included but available on request, but the gist is that LastPass is the culprit.)