In testing out Firefox 3 over the last several months I realized that when loading up a page in a foreground tab when two or more tabs were present, my single core CPU maxed out and loading slowed to a crawl making the browser unresponsive until I switched the tab into the background to let it finish loading. At that point, CPU usage returned to normal. As long as the tab that was loading remained in the background, the CPU never rose above an average of 20% max not counting the occasional spike or two from flash and script content.

Other folks were having these problems also which included high initial memory use for some as well so after much troubleshooting and constructive cursing I finally found the culprit that was causing this high CPU/memory use problem and I’m passing it on.

The fix is actually pretty simple and involves changing the state of “browser.cache.memory.enable” in Firefox’s “about:config“. Just follow the simple instructions under the image below:

  • Type “about:config” into the FIrefox 3 RC1 location bar and tell it you’ll be careful (you’ll see what I mean).
  • When the list of configuration options shows up, type “cache” without the quotes into the search bar as shown above. A list of all entries will appear with the word “cache” in them.
  • Change the state of the “browser.cache.memory.enable” entry to “false” by double clicking on the entry itself. Make sure the state has indeed changed to “false”.
  • Restart the browser and you’re done.

Firefox 3 should now run right along nice and fast no matter what tab is loading in the foreground and without the high CPU use as I saw before the change and apparently the memory problem is also fixed. Performance does not seem to be degraded at all by this change and speeds things up nicely.

If this fix helps anyone running Firefox 3, please leave a comment and let me know as I’m really curious if this works for others as well. You might also leave your two cents worth at the Mozillazine forum thread I started for this problem and if you really wish to make a difference you can post your findings or add your vote on the bug report I also filed.

Thanks!

Technorati Tags:
Share and Enjoy:
  • Google Bookmarks
  • Digg
  • del.icio.us
  • Twitter
  • Facebook
  • StumbleUpon
  • Sphinn
  • E-mail this story to a friend!
  • Print this article!

Related posts

Tags: , , ,

86 Responses to “Firefox 3 High CPU Use? Try This Fix.”

  1. [...] CPU? I not too sure if Flash on Firefox caused a CPU spike, but it seem fine FF 3.5 (Development) Firefox 3 High CPU Use? Try This Fix. | GMG __________________ Veni, vidi, vici "I came, I saw, I conquered." A lot of people are [...]

  2. madhu pat says:

    thanks this is a nice article.

  3. marvin says:

    Your fix works great for me so far. I am using CachemanXP to monitor my cpu and memory usage. While ordering a new cellphone on Verizon’s website, I had to wait for close to 5 minutes for the payment to go through. That made me look at CachemanXP to see what was going on. And there it was, my beloved Firefox was two timing me! lol. Anyway thanks for the fix!

  4. geeknik says:

    How does disabling Firefox’s memory cache help with CPU usage? My answer is that it doesn’t. If Firefox is suffering from high CPU usage, maybe you have a crappy extension installed. Or maybe your profile is corrupt and you should try reinstalling Firefox into a new profile.

  5. Gustavo says:

    This tip does work for me. Thanks so much. Using FF v3.5.

  6. Kirk M says:

    Gustavo – My pleasure.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>