How to REALLY reduce the memory usage in Firefox
After the release of Firefox 2.0, the memory leak has become an even more notorious problem than before. On average, Firefox should take up no more than 80MB of RAM. Any more than that and you can consider yourself a victim of Firefox’s memory leak. I’m sure you’ve probably already seen a ton of guides on how to fix the memory leak problem in Firefox already. The reason why I’m writing another one on Vista Rewired is because none of those have worked very well for me. This one will be a little different because I’ve added a few of my ingredients in.
Just to give you a heads-up, this guide is going to be quite long but it’ll cover everything you need to know.
Before we do anything, make sure you have the newest version of Firefox. If you don’t have the latest version, you can download it

1) Check your extensions and themes:
The most common cause for high memory usage for Firefox usually lies in the extensions and themes. If you overloaded your Firefox with extensions, you can expect high memory usage. Uninstall the ones you don’t need, and update all the ones you will be using. After that, you’ll first want to consult this list of problematic extensions that could be causing the problem. Make sure none of the extensions you are running are on that list.
After comparing with that list, if you still have the problem, it could be the result of a newly installed theme or extension. Experiment with shutting down suspicious extensions or switching themes.

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 box similar to the one below should appear.
Check Disable all add-ons, then select Continue in Safe Mode. Now, compare the RAM usage of when Firefox had it’s add-ons enabled and when they were disabled.
You can expect a difference of a couple megabytes since the extensions have been disabled. But if you notice a large difference in RAM usage, this may suggest a problem within your extensions or theme.
3) Plugins:
Plugins could also be the cause of the problem. Here are some links from MozillaZine that you can refer to:
4) Clear your Download History:
Allowing your download history to accumulate can have a huge impact on Firefox memory usage. Personally, I prefer just clicking Clean Up when I’m done with my downloads since the download history box can be very convenient when you forget where you have saved your files.
Alternatively, you can set Firefox to not keep a history of your downloads by navigating to
Tools > Options > Privacy > Uncheck Remember what I’ve downloaded

This will erase your download history each time you close the Downloads History window.
5) Additional Settings:
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.

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.

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. When you minimize an application in Windows Vista, the memory usage is supposed to go down but Firefox doesn’t do this. By setting this to true, Firefox will begin to use less memory when minimized.
5. Restart Firefox for these changes to apply.
6) Close Firefox periodically:
I know what you’re thinking, but there is an extension that can 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

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

7) Get Portable Firefox:
I am actually not sure how accurate this may be, but using Portable Firefox has definitely helped minimize my memory usage. To be honest, I don’t know why or how, but it just works! 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:
Ordinary Firefox 2.0.0.3:

Portable Firefox 2.0.0.3:




April 19th, 2007 at 4:10 pm
test
April 20th, 2007 at 8:53 am
[...] How to reduce Firefox’s memory usage link [...]
May 2nd, 2007 at 4:39 pm
firefox2.0.0.3 on winXP pro, 512mb sdram
prior to modifying by brower prefs, firefox was using 103mb; removed add-ons, uninstalled unused themes, left clip it and stumbleupon.
after=64mb!!
thanx for the tip.
June 3rd, 2007 at 5:17 pm
I have Firefox 2.0.0.4 on Vista with 2GB RAM, and I now use around 50 MB instead of 150+ (it was usually around 200 MB). Thanks a bunch for the tips.
June 13th, 2007 at 4:34 pm
Unfortunately the config.trim_on_minimize trick does not yet work with Vista. Hopefully there will be an update that fixes this.
September 5th, 2007 at 2:02 pm
Why not use a memory leak detection tool specifically designed to work with Firefox, Flock and XulRunner?
JavaScript Memory Validator from Software Verification does exactly that, alongside their coverage and profiling
tools.
http://www.softwareverify.com/javascript/memory/index.html
Stephen
September 6th, 2007 at 1:47 am
Amazing! It works as advertised. When I minimize my Firefox browser now, it only consumes around 2 MB of memory. Thanks a lot!
September 6th, 2007 at 5:39 pm
The best way to minimize memory usage by Firefox is to uninstall and delete its bloated, leaky, buggy ass and use a better browser. (Damn! Now I sound like a Firefox fanatic talking about IE.)
September 8th, 2007 at 6:54 am
browser.cache.memory.capacity
config.trim_on_minimize
I just changed these two settings on WIn XP Pro - it reduced the amount of memory quite a bit (before: 120000-170000 K to now ca 60000; minimized 10000).
But still, the CPU load sometimes reaches nearly 100%. However, less frequently, which is already a big improvement.
Thank you !!
October 2nd, 2007 at 5:14 am
marvelous - worked a treat - tnks
October 3rd, 2007 at 11:28 am
it works! Firefox is now using only 28 Mb.
October 15th, 2007 at 7:49 am
Thanks much. From about 100 mb, my firefox now uses 57 mb. And about the one that reduces RAM usage on minimize, doesn’t work on Vista quite yet. But kepp up the god work.
November 11th, 2007 at 5:41 am
removing the add-ons, mine reduced from 170000 to 39000K but i still find browsing real slow i.e. >1min to load a page. any ideas to improve this?
November 13th, 2007 at 10:57 am
It’s amazingly great.
I am kinda addicted to firefox and was facing this memory issue, both at work as well at home.
It worked for me.
Thanks.
November 22nd, 2007 at 6:02 am
I have a ton of extensions that I’ve disabled but not actually uninstalled. This may seem like a stupid question, but I take it a disabled extension can’t eat memory?
December 5th, 2007 at 5:37 am
I got HP machine 2GHZ Vista Home Premium 1GB RAM, besides this window sucks almost all its memory , well, I think Portable firefox does best, low memory low usage good surfing speed. I suggest portable firefox does the trick on vista
December 16th, 2007 at 1:59 pm
My firefox is running at about 37mb, so i don’t know how much help i’ll get but i’m trying it too~