Quick Firefox tweak – free mem
5/28/2010 – Note: I see someone must’ve recently linked to this page from a forum. I feel I should point out this article is about 4 and a half years old (as I write this) — a lot about Firefox has changed since I originally wrote this…
I’ve groused in the past about how much memory browsers seem to want to hoard these days. I’m a bit of a fanatic about memory usage, to be honest. I really like how Opera will release memory when it is minimized. When you restore it, it just grabs what it needs. Seems to help calm the “rampaging overuse of memory syndrom” that most modern software seems to suffer from.Now there’s an option you can set in Firefox to do the same thing.
- Start Firefox (yeah, I know… duh.)
- type “about:config” in the address bar and hit enter (don’t type the double-quotes)
- type “config.trim_on_minimize” (again, not the double-quotes) into the Filter field. Odds are, you won’t have this preference but we should check first.
- If you DO have the preference, make sure it is set to true
- If you do NOT have the preference, add it
- Right click anywhere in the preference list and select New -> Boolean
- Preference name should be “config.trim_on_minimize”
- Select true for the value
- Close Firefox and then reopen it.
That should be all it takes. To verify you got it right, load up a few pages in a few tabs. Start up task manager or your platform’s monitoring tool of choice and see how much memory Firefox is using. Now, minimize Firefox. Check that memory usage again.Cool, huh?
Possibly Related posts:
- Small Firefox Tweak for the Slower Machines
- Firefox 2 Beta 2 – A bit longer look
- Fresh Firefox: First Steps?
- Netscape 9.0 beta 1 First Look
- Firefox is Almost on My Last Nerve





lookit you with the snow flakes and the purdyness…
thanks for the tip. I can’t say I’d ever noticed any system degradation from firefox with many tabs open, but I’ll take your word for it that there musta been.
Now I’ll be even fasterish.
[...] Firefox memory tweak Make sure that Firefox frees memory when minimized. [...]
Holy cats! GREAT add. Thank you. An sample of my results:
37,xxx fullscreen. 6,xxx minimized. That says it. You’re a freakin magician.
Why the heck wouldn’t this be bundled in the release? I didn’t notice any lag to “catch up” once I maximized…
rofl – wonder what happened that I was still on -1 unless… I musta done it while on the road and only done the laptop, which by the dates looks about right. lol.
After I changed this setting, I frequently encounter the following message: “Firefox is not responding but still running. Please close all instances and start Firefox again.”. Any ideas on how to resolve that?
[...] I then minimized all browsers, and checked their memory usage. Firefox using ~22 MBs was by far using the most. Most browsers release their memory when you minimize them, however Firefox does not by default. If I didn’t configure it to do that it would be using ~50 MBs. If you’re interested in configuring it to release its memory see this article. In this test, opera of course came in first place. The next test was restoring all windows and checking their memory usage. Firefox used the most memory at ~31 MBs. Opera used approximately half as much as Firefox. [...]
[...] Perhaps related to not having all my extensions running, but memory usage is down from where it was. My “minimize to reclaim memory” trick still works too. [...]
I tried this but get an error message stating the following when I try to create a new Boolean:
XML Parsing Error: not well-formed
Location: chrome://global/content/commonDialog.xul
Line Number 1, Column 1:
^
Any thoughts?
Nothing leaps to mind, Ed. Make sure you’re typing the preference name correctly though.
[...] Am dat acum cateva zile de un mic tutorial in care se descrie cum poti sa castigi cativa mega de memorie cand Firefox-ul este minimizat. Din 30, 40MB cat ocupa firefox-ul cu cateva taburi deschise, cand se minimizeaza, el ocupa maxim 10 MB. Am incercat acest mic tutorial si pe Thunderbird and it worked! [...]
[...] One of the problems that I have had with Firefox is that it gradually decreases the amount of available RAM that is available to me. I asked in one of the security chatrooms and a couple of the regulars ( Phil and Atri ) suggested a ‘Firefox tweak’. The memory tweak can be found here. Previously, I had to close Firefox and restart it to reclaim some memory. This tweak seems to work – although I have used it for only half a day. The RAM issue seems to be much better. [...]
[...] kaynak [...]
[...] The Solo Technology blog has detailed instructions for setting this preference. [...]
[...] The Solo Technology blog has detailed instructions for setting this preference. [...]
[...] Why would you want a Desktop Meebo application? For me, it’s because I’m hooked on Meebo, but don’t want to have a browser open all the time. Browsers leak and even with my mad/’leet Firefox memory reclaim stunts, it’s still good to restart the browser from time to time. [...]
Wow, thanks for the tip.
This tip seems to work, but only for a few seconds at a time.
I tested it by opening a bunch of firefox windows (to the tune of like 60,000K or more) and then minimizing the whole shebang, while leaving the Task Manager open.
At first, the dropoff in memory usage was something over ninety percent. 70,000K reported usage would change to something like 8,000K.
So I thought “Sweet. It works.” For about a half-second. After about that long, the reported memory usage doubled, then tripled, then quadrupled, then proceeded in a non-exponential but pretty quick fashion almost back to the same amount as was being used while the windows were all maximized on top of each other.
I tried this several times, with the same result.
The only thing I can think is that I possibly hadn’t allowed all the data to be fetched from the web before minimizing the windows, and they were still yelling for memory to keep downoading images and stuff, but I was loading the main page of Yahoo.com. Not the leanest of pages, but certainly not an excessive bandwidth blaster.
What gives?
@Mastarshake – however, if you had closed all those pages, Firefox would still have “held” the memory. Using this tweak, closing those pages and then minimizing releases the memory.
Since the pages are still all open… well, they’ll still need some amount of memory.
Thanks, this is awesome.
[...] Quick Firefox Tweak – Free mem – Forever a crowd pleaser here. [...]
[...] but also defaults to true. Saves me time, as the first thing I do with any Firefox install is my little memory hack to reduce memory usage when [...]
Seems doesn’t work in Windows Vista…
Well, I can’t help ya there. I’ve yet to actually install Vista.
This doesn’t seem to work on linux.
Thank you! Firefox normally uses around 130MB of memory for me, and this tweak gave me back more than half of that!
Although, I noticed the usage still keeps going up with it minimized, but a lot less than it used to. That’s probably from me keeping Gmail and Google Reader open in the tabs.
@Alisha – glad you like it. And I think your supposition is correct.
Where this really pays off is after you’ve closed a few tabs; a quick minimize/maximize really sheds memory!
[...] memory with around 20 or so tabs open. My friend AG recommended I look at this Firefox tweak from Solo Technology. This tweak allows memory to be freed up everytime you minimize the Firefox [...]
This is an awesome hack… the memory leak with gmail was doing my head on…
all hail you!
Godly you are… 124,xxx to 31,xxx
[...] a bit disappointed to realize that my trusty (and popular) Quick Firefox Memory tip doesn’t do squat on a Vista machine. What a [...]
another awesome tweak. I always use firefox and had problem with it eating up too much memory and slowing up my PC when i opend up too many tabs.
This tweak really reduced the mem used by firefox.
Firefox is the best browser ever.:D
The config.trim_on_minimize setting (Windows only) does not reduce the amount of memory used, it just swaps memory from RAM to disk. This may make Firefox slow to “wake up”. If config.trim_on_minimize is left set at the default value (false), the memory will be swapped to disk only if it is needed by another application. Therefore, for most purposes the default value is recommended.
Hey DC – is there some documentation you can nudge me towards for trim_on_minimize? When I posted this tip a couple years ago, I couldn’t find any, but I liked watching FF’s memory “usage” drop from 400+ to under 50
And unfortunately, it turns out this isn’t just Windows only. It sure doesn’t do a darned thing under Vista at any rate. So it must be a “some windows versions” only. Peh.
Does anything work correctly on Vista? The Mozilla KB addresses trim_on_minimize:
http://support.mozilla.com/kb/High+memory+usage
Hah! Well, some things seem to work in Vista… but it’s definitely a bit different, that’s for sure!
Thanks for the link, appreciate it.
Helpful tip, was really having problems with firefox being a mem hog but preferred using it over other browsers. This solves my problem. Thanks.
You realy helped me out with this one. Thanks for the tip.
Thanks for the tip. This did the trick (at least for minimizing the amount of memory that’s used).
I accidently chose the wrong option instead of boolean how do i delete it or modify it?
Thanks for the great tips
That’s a neat trick, but doesn’t seem like a good final solution since we use browsers so much so we’re constantly maximizing them again.
I’ve found that Firefox under Vista is pretty stable, up to about 130 tabs or so, on my system.
[...] stable. Memory shouldn’t be a problem, especially if you are using these great tricks to free up memory, and make Firefox faster. They *really* work. This entry was posted on Tuesday, May 13th, 2008 [...]
i am right now around 1000MB and rising..
with just a few tabs
thats because my notebook only goes to sleep/standby
i never turn it off (and firefox only exists on crashes^^)
but it really pissed be off – because everything is getting soooo slow – with 1GB of firefox memory not a very surprising thing
hope this config thing does the trick
Hi mark. I honestly don’t know if this tweak does anything with current versions of Firefox (the tweak is almost 4 years old!)….
Tweak didn’t work for me at all. Firefox just kept eating my memory.
@Laura – yeah, probably doesn’t do much to current versions. But if you were running Firefox v1 like I probably was when I first wrote this article then you’d be quite pleased.
congrats you just made it to a cnet article, thats why your hits have sky rocketed
You were right about the latest version of Firefox not having the “config.trim_on_minimize” option, so I created it. When I minimized the browser, watching Task Manager while doing so, the memory usage did drop dramatically, but began to climb again after three or four seconds. When I maximized the browser again, the memory usage was less than when I initially opened it.
After modifying Firefox, I did some resources usage testing of my own using Opera 10.53, Firefox 3.6.3, and Internet Explorer 8.0.6001.
In each browser I opened three tabs: the Home Page, which is a page stored on my hard drive; SENAA International’s Newsletter Page, and SENAA West’s Welcome page.
After opening the pages, I took a reading of memory usage from the Task Manager with the browser open, then minimized and took a reading, then maximized the browser again and took another reading.
Here are the results:
Firefox 3.6.3:
Initial Memory Usage: 129,160 KB
Minimized Memory Usage: 15,344 KB
Maximized Memory Usage: 64,904
Opera 10.53:
Initial Memory Usage: 144,860 KB
Minimized Memory Usage: 13,100 KB
Maximized Memory Usage: 36,000 KB
Internet Explorer 8.0.6001:
Initial Memory Usage: 22,280 KB
Minimized Memory Usage: 22,280 KB
Maximized Memory Usage: 22,284 KB
While I was at it, I visited several sites that are known to be attack sites, which harbor viruses, malware, and drive-by downloads of malware, viruses, and hacking files.
In Firefox, some of the sites infected my machine in spite of the “attack site” warning displayed by Firefox. Luckily my anti-virus program caught and either blocked or deleted the infections.
In Opera, I was infected more often. Again, the anti-virus caught everything, as far as I know.
In Internet Explorer, with default security settings, no infections occurred. IE prevented the sites from opening.
So, the winner and new champion of both memory usage and malware prevention, was Internet Explorer 8.
Firefox came in 2nd place in both resource usage and security.
Opera came in dead last in both categories.
I should mention that I do not work for Microsoft, Mozilla, or Opera. The only interest that I have in the testing was to see for myself, once and for all, which browser is most secure and which browser used the least resources to operate.
It looks like Firefox is falling behind, and with its next version’s design leaning toward “cloud” computing, which is the least secure and most expensive way to go, it looks like Firefox has sold out or the developers are asleep at the wheel.
Either way, it has convinced me that Internet Explorer is the preferred browser in every way that matters.
I felt that I owed it to those who use Firefox and those who are still deciding which browser they should use to post the results of my research.
Anyone running Windows who has a good firewall, anti-virus program, and Task Manager can recreate these tests. Any three Web sites will do for the purpose, as long as you use the same three sites in each browser.
I have the three browsers on my machine, because I am a Web page developer. I use the three browsers to test the behavior of Web pages in each one.
So there you have it. If you doubt my results, do the test yourself. Your results may vary, but they will reveal a similar difference among the three browsers.
I have not tested Google Chrome.
I also did not check the encryption strength of the three browsers, so I don’t know which is the most secure for online business transactions. I do know that Internet Explorer’s encryption strength is 128-bit by default.
Just thought you should know.
I have seen the same results as AI. Firefox(v3.6.6) memory usage climbs back up after a few seconds. This setting may have worked in previous versions, but does not have the desired result in this version.
Hi DFH — be sure to read the big orange comment at the top of this article