Help - Search - Members - Calendar
Full Version: Stop Firefox From Hogging Memory
BleepingComputer.com > Software > Tips and Tricks
   
nigglesnush85
Hello,

Just thought that I would share this with everyone.

Have you ever noticed that in the task manager Firefox takes up so much memory. here is a little tip to put it in its place.

PROCEED VERY CAREFULLY.

1 open firefox, type about:config and press enter

2 right click on the page and select new option then select Boolean

3 enter the following string config.trim_on_minimize press enter

4 find the value and make sure that it is set to true

5 restart firefox,

what this has done is when the user minimizes firefox, it will reduce its memory consumption.


Hope this helps
Commander Gman
Your right, it uses like 40,000 k but i dont get part 1
where do you type about:config?
tg1911
In the address bar, Commander Gman.
Commander Gman
Ok thanks tg1911 so im there the next thing is i dont get is right clicking but where? in the open space with lots of info?
tg1911
Just click anywhere in the open window, mouse over New, and select Boolean.
In the box that opens, just paste this into it:
config.trim_on_minimize
Click the OK button.
Now, look for the entry you created (config.trim_on_minimize), and make sure it says true, under the Value column.
If it says false, just double-click the entry (config.trim_on_minimize), and it will change to true.
Close the about:config window.
Commander Gman
Ok thanks again tg1911 i was able to save more or less 20,000 k smile.gif
tg1911
You're welcome, Commander Gman.
Glad to be of help.
nyyanks
Whoa thanks a lot
usasma
Thanks for the tip!

It works great in XP! I didn't notice any change at all when I did it in Vista.
Papakid
I used this tip for a while but have reversed it. Had no ill effects at first, but over time Firefox became unstable. Changing the value back to false fixed that. Your mileage may vary, depending on what extensions you have installed and how many tabs and windows you have open at one time and other factors. From what I've read, it is common for extension writers to fail to test for memory leaks before they post the extension. Altho i think Firefox 2.x still leaks on its own.

Remember that this trick will only reduce Ff's memory consumption when you minimize the browser window(s). Whether left minimized or not, as long as the browser is open, memory consumption will steadily increase again until it is minimized again.
Sc00by22
Thanks
jannoth
Thanks nigglesnush85 , I've just installed it and seen a big reduction too 40,000K down to 3,000K - pretty good laugh.gif

Thanks also Papakid - I'll pay attention to behaviour etc.
xcr0okedx
i tried this ... memory usage dropped from 60,000 K to 6,000 K

but, i kept my task manager open and monitored Firefox.exe and i noticed it was steadily rising back up. Anyone know why this is? is it a leak from extensions ?

I use FF 2.0.0.4 with a whole lot of add-ons like:

NoScript
ADblock Plus
Redirect Remover
Dom Inspector
Download Statusbar
Download Them All
Fasterfox
IETab
Link Alert
Yahoo Toolbar
Bugmenot


Patch-C
Awesome
K()nT3nTs
that was a very nice trick knocks off about 20k of usage.
nigglesnush85
Hello,

Glad it works,

With regards to xcr0okedx's question, The ammount of pluggins that the browser is using will affect how much memory it uses. try uninstaling an extension then testing FF and see how much difference it makes.

hope this helps
sharpe95
I know it sounds kind of stupid, but how do I undo this change?

Do you just change to value to false?
tg1911
Setting it to False, would disable the entry.
Just double-click the entry, to toggle it to False.
LilPinoyBoy
Thanks so much! 5/5 on your tips! thumbup.gif clapping.gif

Firefox's Before: 77-80k
Firefox's After: 10-15k


:D
godterror
i have a question:how do u remove an entry??
tg1911
Set windows to show hidden files,
How to see hidden files in Windows

Close Firefox.
Double click My Computer / Local Disk (C:) / Documents and Settings / your User name / Application Data / Mozilla / Firefox / Profiles / (random characters).default
Locate and right-click your Prefs.js file.
Mouse over Open With, and select Notepad.
Do a search for the preference name you want to remove.
Highlight that entire line it's on, and delete it.
Click File and select Save.
Close the file.
Restart Firefox and go back into about:config, and it should no longer be there.
MickeyRoush
I have a question. What is to be gained from using this tweak if the memory slowly creeps back up to where it was?
scouse6
Thank you Sir, most helpful
nigglesnush85
QUOTE
I have a question. What is to be gained from using this tweak if the memory slowly creeps back up to where it was?

The tweak reduces the memory needs of FF this is useful as it frees up the systems resources for other applications and (in my experience) improves the performance of the browser.

QUOTE
Thank you Sir, most helpful

No problem, glad to help.
DarkFlame
Thanks, never knew firefox took up so much memory.
OldPhil
Ok I just tried it, about 5 minutes later FF crashed!! I did a sys restore but the value stayed the same, I went back in clicked on the new line right clicked and hit reset. So far so good!!!

Phil
Doctor Inferno
Just wondering, how does it work? What does this value adjust?
nigglesnush85
QUOTE(Doctor Inferno @ Oct 22 2008, 03:00 PM) *
Just wondering, how does it work? What does this value adjust?


I believe that in some programming languages the keyword trim is used to filter the unneeded bits and pieces* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:EN-GB;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> that are running. So the command is basically saying that when the browser is minimized it will filter or flush parts it doesn't need.
Aanders5
Thanks for the tip, nigglesnush85. thumbup2.gif
nigglesnush85
No problem, glad to help.
samuel3
This works fine smile.gif
OldPhil
Ok most everyone is happy! Since fooling with FF it crashes almost every day, I guess I need to delete it and reload it to get things straight.

Phil
tg1911
Have you tried setting the value of config.trim_on_minimize to False?
Just double-click the entry, to toggle it to False.
Asseroth
Thanks a lot for that! thumbup.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.