Hot Koehls
  • Email
  • Feedburner
  • Linkedin
  • Twitter
  • Home
  • About
  • Archives
  • Contact
  • Software
    • S3imple Backup
    • Twitter Feed Archiver
    • FileTime
    • Flickr API Demo
Search
Home» For techies » Preventing Firefox memory, processor bloat

Preventing Firefox memory, processor bloat

Posted by Frank - February 9, 2010 - For techies
2

If you’ve read this blog before, you know I’m a big Firefox fan. But the one problem that has dogged me is the inevitable bloat that Firefox suffers when open for long periods of time. I work in my browser all day, and after 8 hours it has usually gobbled up all the available RAM, and sucks processor cycles like a Dyson. Fortunately I’ve finally pinpointed the cause and several solutions.

Let’s start at the source. The Firefox team made a crucial usability decision, which is at the heart of the problem. They wanted to allow the user to recover any page that may have recently opened. So by default, Firefox keeps navigation history for all your open tabs, plus the last 10 tabs that you closed. The navigation history for each of those tabs — both open and closed — can hold up to a maximum of 50 pages (i.e. the number of URLs you can traverse purely through the Back/Forward buttons)

With no limit to the number of open tabs, plus the high limit on the Back/Forward navigation, it’s easy to see why Firefox slows to a crawl. If you do a lot of browsing in a lot of tabs, your memory disappears in a hurry. Managing all that extra memory causes the processor to work overtime to keep Firefox hippo moving.

There are two ways to fix this issue in a pinch. First you can simply restart the browser, making sure that it doesn’t save your tabs (you are prompted to save tabs at close by default). Second, you can clear the Recently Closed Tabs to eliminate a portion of the tab history bloat (History > Recently Closed Tabs > Clear Closed Tabs List).

For a more long-term solution, we need to mess with the system settings. Type about:config in the address bar to bring up Firefox’s complete configurations list. The latest Firefox versions present you with a warning before opening the page.

A warning: this page handles everything in your browser. Everything. Don’t mess with stuff if you don’t know what you’re doing.

In the “Filter” textbox at the top, enter

browser.sessionstore.max_tabs_undo

This setting controls how many closed tabs to track. Less old tabs = less memory usage. Double click the lone entry in the list and change the value from “10″ to “5.”

Back to the filter box, enter

browser.sessionhistory.max_entries

This setting controls the navigation history limit. Double click the entry and drop the value from “50″ down to “25″.

Close the about:config tab and restart your browser.

Your mileage on these tweaks will vary depending on your system specs. If you can go a day of heavy browsing without hitting the creep, slowly increment the settings back up, until you hit the sweet spot.

browsers, desktop tips, open source

2 comments on “Preventing Firefox memory, processor bloat”

  1. Facebook friend says:
    February 9, 2010 at 5:48 pm

    Honestly, they really should reduce those settings in the trunk and have them be defaulted to half of what they are now (as you illustrate). Chances are if you’re using Firefox you’re an above-average web user, and you keep open a lot of tabs. Even on new Core 2 Duo machines with gigs upon gigs of RAM, I can make Firefox slow the whole machine to… See More a crawl.

    Thanks for the reminder with this, I’ve done the exact procedure to my desktop browsers but forgot on my laptop (which is particularly susceptible to FF memory usage…it’s OS X.)

  2. Christopher says:
    February 17, 2010 at 8:43 pm

    Hah. Firehippo.

    Then I wrote this extra sentence because it said my original comment was too short to post. Speaking of, I haven’t checked in a while, is there a working version of firesomething these days?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

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

Categories

  • For entrepreneurs
  • For everyone
  • For techies

Latest Tweets

  • The word traps planners plan themselves into | Life. Then strategy http://t.co/iANAdASb
    May 8, 2012 - 2:43 pm
  • Random network security tip for those about to appear on TV - Boing Boing http://t.co/tC1lXFQ4
    May 8, 2012 - 1:42 pm
  • A Picture http://t.co/H846Uy69
    April 27, 2012 - 12:25 pm
  • The Broken "Buy-One, Give-One" Model: 3 Ways to Save Toms Shoes | Co.Exist: World changing ideas and innovation http://t.co/RI0sVMW6
    April 10, 2012 - 12:23 pm

Recent Comments

  • whiz on What 255 characters looks like
  • Andrew on Find the second (or third, or fourth) occurence in a string
  • IanArcher on Get number of message parts in an email using PHP
  • Usama on Remove parent directories from tar archives
  • Frank on It’s dangerous to go alone

Recent Posts

  • It’s dangerous to go alone
  • Create Self-Signed Wildcard SSL Certificate
  • What comes after the yottabyte?
  • Write code like they do in Hollywood
  • Brian Rolle machine gun celebration
(c) 2012 Frank Koehl. All Rights Reserved.
  • Contact Us
  • Sitemap