Firefox Excessive Memory Usage

I like Firefox. I've even grown to like it slightly more than IE6, mostly because it has a far richer add-on ecosystem.

But I have one serious problem with Firefox:

Massive Firefox memory usage

This screenshot was taken after a few days of regular Firefox usage. That's over 900 megabytes of memory for a single, non-tabbed instance of Firefox.

What's going on? Well, according to my tests, Firefox never seems to release any of the memory it uses-- until you close all instances of Firefox. If you spend enough time browsing the web, and never close Firefox completely, you'll consume nearly a gigabyte of memory!

Because I often keep at least one browser window open for research or reminder purposes, this bites me a lot. I'll look at Task Manager and Firefox will regularly be gobbling up over 400 megabytes. This isn't uncommon. It's normal.

I don't ever recall having this problem with IE 6.

Of course, I can close all instances of Firefox and reduce memory usage back to zero, but why should I have to? I've read this techweb news article on the controversy around Firefox and memory usage, and I've implemented the workaround suggested in that article:

  1. Within Firefox, enter "about:config" (minus the quotation marks) in the address bar
  2. Scroll down to the entry "browser.sessionhistory.max_total_viewers" and double-click it.
  3. In "Enter integer value" field, type..
    • "0" to disable the cache
    • "1" through "8" to set the maximum cache as 1 through 8 previously-viewed pages
    • "-1" to return the cache to its default

Sadly, this fix did very little to address the problem. The above screenshot was taken after setting that value to 1!

Related posts

What If They Gave a Browser War and Microsoft Never Came?

Two weeks ago, Apple announced a new version of WebKit, the underlying rendering technology of their Safari web browser. The feature list is impressive: * Enhanced Rich Text Editing * Faster JavaScript and DOM (~ 2x) * Faster Page Loading * SVG support * XPath support * Improved JavaScript XML technology (XSLT, DOMParser, XMLSerializer, and enhanced XMLHttpRequest

By Jeff Atwood ·
Comments

Recent Posts

Stay Gold, America

Stay Gold, America

We are at an unprecedented point in American history, and I'm concerned we may lose sight of the American Dream.

By Jeff Atwood ·
Comments
The Great Filter Comes For Us All

The Great Filter Comes For Us All

With a 13 billion year head start on evolution, why haven’t any other forms of life in the universe contacted us by now? (Arrival is a fantastic movie. Watch it, but don’t stop there – read the Story of Your Life novella it was based on for so much

By Jeff Atwood ·
Comments
I Fight For The Users

I Fight For The Users

If you haven’t been able to keep up with my blistering pace of one blog post per year, I don’t blame you. There’s a lot going on right now. It’s a busy time. But let’s pause and take a moment to celebrate that Elon Musk

By Jeff Atwood ·
Comments
The 2030 Self-Driving Car Bet

The 2030 Self-Driving Car Bet

It’s my honor to announce that John Carmack and I have initiated a friendly bet of $10,000* to the 501(c)(3) charity of the winner’s choice: By January 1st, 2030, completely autonomous self-driving cars meeting SAE J3016 level 5 will be commercially available for passenger use

By Jeff Atwood ·
Comments