Comprehensive Guide on How to reduce the memory usage in Firefox?

October 7th, 2007
Comprehensive Guide on How to reduce the memory usage in Firefox?

Firefox 2.0 since its release had the niggling memory leak and no matter how many updates have been out to address this issue it still has that retard issue. A standard Firefox install without any extensions consumes around 80MB but soon after you add a few extensions you can see a noticeable drop in the performance. There are many guides out over the internet but i have made my own version that seems to work. It gono be a pretty comprehensive guide so you have a stick a little longer to learn the tricks.

First of all make sure you have the latest version of Firefox, presently 2.0.0.7. If you don’t have which i doubt. You can download using the link below, if you are kind enough grab my referral link.

http://www.mozilla.com/en-US/firefox/


1. Extension and themes the main cause of memory leaks.

A standard install of Firefox doesn’t seems to show any memory leak issues. But after installing few extensions it seems to show the memory leak issues. Basically this issue occurs due to buggy, bloatware extensions. Also if you overloaded your Firefox with extensions, you can expect high memory usage. Same goes for themes, don’t install too many themes. To minimizes memory issues try testing each plugin one by one for few hours and check over their memory signature. As a result you can always find out the buggy ones and help yourself minimizing the high memory usage. You can even check this comprehensive list of buggy extensions and find out if one of your extension belongs here. Always keep your extensions updated this is another way to cope with the issue.

Comprehensive Guide on How to reduce the memory usage in Firefox?

2) Start Firefox in Safe Mode

If one of your extensions is not in that list, boot Firefox into Safe Mode to disable all extensions and themes. You can do this by going to Start > Run, and entering:

firefox -safe-mode

A similiar looking box will appear .Now check Disable all add-ons
now click on Continue in Safe Mode. Now fire up your Windows task manager and compare the memory usage before and after disabling the extensions. Normally disabling extensions only drops of couples of MB of ram. But if you find some memory spikes this surely indicates some problems of either of the extensions or themes installed.

Comprehensive Guide on How to reduce the memory usage in Firefox?

3) Plugins:

Another memory hogger are the plugins that are needed for open special media or application within Firefox, like Java chat, PDF reader, WMV, Quicktime etc. Here are some links from MozillaZine that offers some basic solutions to plugin related issues.

4) Clear your Download History:

    Comprehensive Guide on How to reduce the memory usage in Firefox?Another basic tip to improve memory usage is cleaning up your download history.Allowing your download history to accumulate degrades your Firefox performance. If you don’t like clicking on the Clean UP button after each and every download try this. Navigate toTools > Options > Privacy > and Uncheck Remember what I’ve downloaded

    Comprehensive Guide on How to reduce the memory usage in Firefox?

    This will erase your download history each time you close the Downloads History window.

    5) Additional internal settings

    The previous tips were simple yet good enough to tame the leakage issue. Now why not some internal tweaks that will boast Firefox performance to some extend. Here is a tip to limit the amount to allocated for caching.
    There are a couple of settings you can tweak in Firefox that can limit the amount of memory allocated for caching.

    1. Open Firefox and type in about:config in the address bar.

    Comprehensive Guide on How to reduce the memory usage in Firefox?

    2. Type browser.cache.memory.enable in the Filter Bar and make sure it is enabled. If not, just double click it to set it to enable.

    3. Right-click an area of empty space in the browser and choose New > Integer. Type in browser.cache.memory.capacity and click OK.

    Comprehensive Guide on How to reduce the memory usage in Firefox?

    The integer value you enter depends on the amount of RAM you have.
    If you have:
    256 MB of RAM, enter “4096
    512 MB of RAM, enter “8192
    1 GB of RAM, enter “16384
    and so forth… Just double the number as your RAM doubles.

    4. Right-click anywhere on the window and click New > Bootlean and enter:

    config.trim_on_minimize

    And set it to true.

    By default whenever you minimize an app in Vista the memory usage goes down. But Firefox for some reason doesn’t does that. By using the above setting it will use less when minimized.

    5. Restart Firefox for these changes to apply.

    6) Close Firefox periodically:

    Don’t get me wrong. You’d surely don’t like the idea of closing your workspace time and again, same goes for Firefox. With a simple extensions you can save save your internet sessions so when you re-open Firefox, you can have it exactly the way it was before you closed it – the tabs, the cache, everything.You can download Extension Manager here.
    Once you have downloaded the extension, we need to set it up. First, we need to get to the options window: Tools > Session Manager > Session Manager Options
    Comprehensive Guide on How to reduce the memory usage in Firefox?

    Once you’re in the options window, just make sure your screen looks like the one below and you’ll be fine.

    Comprehensive Guide on How to reduce the memory usage in Firefox?

    7) Get Portable Firefox:
    Using Portable Firefox has definitely helped minimize my memory usage. You can download Portable Firefox here. For the most part, it runs the same way your regular Firefox does. Here’s a comparison of how much memory each version of Firefox took up: Portable Firefox eats half that of the memory as normal firefox does.

    Ordinary Firefox 2.0.0.3:

    Comprehensive Guide on How to reduce the memory usage in Firefox?

    Portable Firefox 2.0.0.3:

    Comprehensive Guide on How to reduce the memory usage in Firefox?

Pranjal




  1. October 9th, 2007 at 15:25 | #1

    nice post man but #6 does not seem practical enough.

  2. October 9th, 2007 at 16:16 | #2

    You can even use Restart Firefox
    https://addons.mozilla.org/en-US/firefox/addon/1249

  3. MCG
    November 14th, 2007 at 16:14 | #3

    Thanks for the tips. Useful information.

  4. November 15th, 2007 at 03:47 | #4

    Great post! I was wondering why it seemed as if Firefox was slower than IE. Don’t get me wrong, Firefox rules.

  5. Bernie Mac
    November 20th, 2007 at 05:53 | #5

    Hey!…Thanks for the nice read, keep up the interesting posts..what a nice Monday

  6. November 20th, 2007 at 14:58 | #6

    Thanks for this. Seems to be working for me. I think using portable Firefox made the biggest difference.

  7. Albert
    February 18th, 2008 at 12:02 | #7

    Nice post ;) lol. I use good old restart too. Am actually too lazy to configure firefox.

  8. February 20th, 2008 at 03:15 | #8

    Thanks for the useful info.

  9. February 22nd, 2008 at 09:28 | #9

    I’m using an additional software that named Firefox Ultimate Optimizer. It’s moves all of firefox data to virtual memory. Bad side is it’s uses your CPU a little bit.

    You can get it from there:

    http://felipex.net/

  10. Miranda
    December 4th, 2008 at 17:01 | #10

    Awesome information and step by step, was easy to undersand and configure. Super big thanks! :-)

  11. March 12th, 2009 at 06:23 | #11

    Cool! Thanks for the guide.

  12. Keith
    June 6th, 2009 at 21:59 | #12

    BEST Firefox Memory Guide I’ve read! The tips (especially #5) reduced my memory usage by 50,000k!! THANKS MUCH!!!!!

  13. Nate
    February 13th, 2010 at 08:07 | #13

    EXCELLENT POST!!! #5 IS EASY AND WORKS LIKE A CHARM!!! REDUCED MEMORY FROM OVER 160K TO ONLY 5OK!!!THANKS A MILLION!!!

  14. March 1st, 2010 at 09:58 | #14

    thanks for the post. been looking for a site to help me reduce the memory leak

  1. December 24th, 2007 at 23:22 | #1
  2. December 29th, 2007 at 05:42 | #2
  3. December 29th, 2007 at 09:02 | #3
  4. January 11th, 2008 at 00:30 | #4
  5. January 11th, 2008 at 17:54 | #5
  6. March 25th, 2008 at 01:34 | #6
  7. December 26th, 2008 at 02:48 | #7
  8. February 16th, 2009 at 16:34 | #8
  9. May 16th, 2009 at 22:29 | #9
  10. July 8th, 2009 at 17:01 | #10