Email
Share
Jan 05 2012
Last update:

How to Reduce Firefox Memory Usage

Filed under: Web Browsers » Firefox,

Is Firefox Leaking Memory?

Burning FirefoxFirefox is our browser of choice. It's fast, stable, and developer friendly. It has tons of useful plugins and themes (skins) you can use to customize and make Firefox your own. The only problem is that amidst the excitement of adding all these cool plugins, you won't realize the incredible amount of memory that Firefox will begin sucking from your system. The result? Slower loading web pages, a slower PC, slower everything. Fortunately, there's a couple steps you can take to get Firefox back on the fast track.

 

Steps to Reduce Firefox's Memory Leaks

There are some basic steps you can take to help reduce memory leakage in Firefox. These are:

  • Upgrade Firefox. Newer versions of Firefox use less memory by containing memory leaks more efficiently.
  • Disable unnecessary plugins and add-ons, and extensions (open your "Add-Ons manager" and shut down any you think you don't need. You can always re-enable them if it turns out you do). This is by far the biggest memory saver. If Firefox is your primary browser, you might also consider using another browser for the add-ons you only use occasionally (for example, Java).
  • Reduce misuse by malicious sites by running a spam or antivirus blocker on a regular basis. We recommend the free Spybot Search & Destroy to get you started.
  • Keep your number of open tabs and windows to a minimum.
  • Type "about:config" in your browser bar and adjust the following preferences (by double clicking on them) to free up some additional memory:
    • browser.cache.memory.capacity (set to 0)
    • browser.cache.memory.enable (set to false)
    • browser.sessionhistory.max_total_viewers (set to 0)
    • browser.tabs.animate (disable)
    • browser.sessionstore.max_concurrent_tabs (set to 0)
  • Here some more advanced settings to speed up page loading:
    • javascript.options.jit.chrome (set to true)
    • javascript.options.jit.content (set to true)
    • content.notify.backoffcount (set to 5)
    • network.dns.disableIPv6 (set to true)
    • network.http.pipelining (set to true)
    • network.http.proxy.pipelining (set to true)
    • network.http.pipelining.maxrequests (set to 8 )
    • plugin.expose_full_path (set to true)
    • ui.submenuDelay (set to 0)
  • When installing extensions, you can kill the default countdown (delay) by setting the following value:
    • security.dialog_enable_delay (set to 0)
  • If you have antivirus installed (Windows only), you can disable Firefox's native virus scanner:
    • browser.download.manager.scanWhenDone (set to false)
  • Consider installing the Ramback extension (Firefox 3.x+).
  • Windows O/S tips: Turn on virtual memory or increase the size of your paging file.

Also note that the more powerful your computer, the more memory Firefox will use. Benchmarking your Firefox memory compared to other PC's based on the number of Windows or tabs you have open will be biased based on the power of any particular PC. Bottom line - if you're able to browse without too much slow down or crashing, you're probably fine.

Have a Fix of Your Own?

Tried something yourself that significantly increased Firefox memory efficiency? Please share with our readers below. Conversely, if you are having a heck of a time getting Firefox to run alongside your other apps, post below with specifics, including add-ons you have installed, the version of Firefox you're running, etc., and we'll do our best to help you diagnose your specific problem.

 
Your rating: None Average: 2.3 (3 votes)

Your rating: None Average: 2.3 (3 votes)

Select your preferred way to display the comments and click "Save settings" to activate your changes.

'about:config' adjustment

Type "about:config" in your browser bar and adjust the following preferences to free up some additional memory:

browser.cache.memory.capacity
browser.cache.memory.enable
browser.sessionhistory.max_total_viewers

Adjust them to what? how?

Memory freeing values added

Oops! Thanks for catching that, I can't believe no one commented on that sooner. We've updated the memory freeing preferences with specific values, and added some new tips as well.

Thanks!

You say that older versions of FF use less memory, may be that's true, but i used 5th version and 4th one and I can say that the earlier version worked better. Besides, the updates of the browser are released faster than the add-ons updates, so i just have to use an earlier version. But I'll try the extension you recommended, hope it will reduce memory use at least to 500Mb...
______________
Regards,
Jessy from google android development services

The content of this field is kept private and will not be shown publicly.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.