Firefox seems to need more memory when I have it open for a long time and surf to many different websites. I was never able to find out why it behaved this way and assumed that it was either a memory leak or an extension which would be responsible for this behavior.
It seems that my assumption was wrong. Firefox saves the last 50 visited websites of a single session in memory which means that it could add up quickly if you visit lots of content filled websites. The reason behind this is that it is faster to access a already visited website if it still resides in memory instead of loading it from disk cache or from the server.
50 sites on the other hand seems a lot to me. I usually do not visit sites again that I visited a while ago – I tend to visit many different sites and only a few ones more than once daily. The fix is relatively simple. Type about:config in the Firefox address bar and search for the term:
browser.sessionhistory.max_entries
Right-click the entry, select modify from the list and change it to a lower value. I set it to 5 which works well for my surfing habits. Other values might be better for yours.
source: A2Z
Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook or Twitter.Related Articles:
How I did reduce Firefox Memory Consumption by 15 MegabytesReduce Firefox Memory Usage
Firefox Memory Tweaks
Memory Fox Flushes Firefox’s Memory Constantly
Firefox Plumber, Drop Firefox Memory Usage

Now this was a great tip. Thanks.
I will try it, Firefox eats memory much more than IE :/
Sometimes after long using firefox, even if I got 1 page opened, FF takes up to 1GB of ram :[
Memory leak is the only chink in the armor in Firefox for me, so ill check this out and c… thanx
Another really good thing to do is in the about:config screen right click and go to new boolean, then type config.trim_on_minimize and set it to true,
Now whenever you minimize firefox, it’ll reduce the amount of ram it takes a lot. Usually down to
tash thanks for your tip, it makes a big diffrence now :)
Great tips thankyou Martin and tash I’ll give both a try
Thanks a lot for this tip eh!
Great Success!
Firefox eats up memory like there is no tomorrow .. I have been a firefox fun for a long time .. Being a tech guru I inspired all my friends who ran to me that IE not responding problem . But now I just cant go with Firefox anymore It shuts down like 20 times a day . And acrobat stops responding like 100 times a day .. I am just looking for another browser to tab me going … probably not IE may be Opera or Flock may do the trick for me
I love FF because of the addons and plugins. But hate the memory consumption. Sometimes it takes 1,5GB of my RAM. That’s sick. Hoping that this solution will work for me.
Thanks