Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

After using Firefox for several days without restarting, my memory usage is extremely high. I have around 40-50 tabs open. Just now my memory usage was over 4gb and Firefox was extremely slow. After restarting and restoring all my tabs memory usage was only 700mb. I went and visited each tab individually to make sure they were all loaded and it climbed to about 2gb. This is a lot but not too unexpected for this many tabs open. I'm not sure how this doubles while keeping the same tabs open, though.

Is this expected, or the result of a memory leak of some kind? Is there anything I can do to free up additional memory? The "minimize memory usage" button in about:memory doesn't do much. I notice a lot of the memory is taken up by javascript. I'm running version 29.0, no add-ons other than firebug.

share|improve this question
    
I was about to suggest that you disable firebug, even before I read that this was the only add-on you have. Firebug was unambiguously the cause of the memory usage when I did my development in Firefox. Now I use Chrome, so I can't say if this is still true. –  ChrisInEdmonton Feb 12 at 21:42
    
Most of the firebug functionality is replicated in the build in FireFox Web Dev Tools anyway. Also update to the latest version of FF of course. –  Dom Feb 12 at 22:00
    
Latest stable version is 27.0, right now. You should specify the operating system you're using. Also, try disabling Firebug to see whether it makes any difference. –  and31415 Feb 12 at 22:01
3  
open about:memory in Firefox, copy the output to pastebin and post a link here. –  magicandre1981 Feb 13 at 7:58

4 Answers 4

I was seeing a huge leak too, but I don't keep 40-50 tabs open..maybe 10 at the most.

I found today that removing all the thumbnail images of sites I visited has greatly reduced the amount of memory Firefox is using (when viewed using Task Manager). (i.e. - hitting the "+" box to open a new tab and see thumbnails of sites).

Before this, I booted up my Win 7 64-bit machine wth 4 Gb Ram and after maybe an hour, my memory usage (according to TaskManager) was around 800,000K. After deleting everything, memory has been steady at 273,000 K.

Turning off and/or disabling Add-ons made no difference in my testing, though I disabled one for Lync. (doubt it made a difference).

Win 7 64-bit Pro sp1 Running FF 27.0.1.

Not proclaiming this as a solution as of yet, but so far my machine hasn't come to a crawl. (about 3 hours in so far)

==========

Update 24 hours later: FF is still running well after I cleared all the thumbnails out.

share|improve this answer

It's the nature of Firefox to leak memory as it uses a single process to store all the tabs, and each tab of a modern webpage can consume a lot of RAM.

Untangling what memory can be released when the tab is closed is just too difficult for browser makers. Other browsers like Chrome and IE worked around this problem by creating a new process for each tab, and killing that process when you close the tab, which solves the memory leak issue, but it does mean that those browsers can become extremely slow to start when you have 10s of tabs open as the browsers must fork tens of processes.

About the only practical way to deal with the memory issue in Firefox is to make sure it's setup to reload tabs on restart and to accept that one every day or 2 it will crash.

share|improve this answer
    
Well, no. That’s not really the issue. Firefox does not leak. Extensions do. Also, process separation is mainly to improve stability. –  Daniel B Dec 10 at 20:57

I’ve just been FED UP with FF because of all of the memory leaks, etc. I've been running v16 forever because whenever I’ve tried to upgrade to newer versions, they’d all pretty much just crash after 30 minutes of heavy use, and not a single version of FF that I’ve ever used has ever fixed the memory leak problems. Not a single one.

I actually installed a tiny batch file on quicklaunch so I could quickly kill FF at the point it’s consumed all of my RAM so I could then start over with “Restore Session” to automatically reload all of my previous tabs. After trying every “solution” to the leak problem, that’s the only one that ever did me any good. Apparently the arrogant tards at mozilla would rather tweak the UI to death rather than make a browser that actually works. They’re worse than even Microsoft because Microsoft has to listen to their customers sooner or later or go broke, whereas nonprofits can just drift along forever.

At any rate, I just finished installing PM, including importing everything from FF with their little importer program, and everything went flawlessly, including all settings and the plethora of add-ons I use. The only difficulty was getting roboform attached, which I can’t live without. I did finally dumb around and got the roboform taskbar program to attach roboform to PM, which then worked flawlessly. It is, however, necessary for the roboform taskbar program to run all the time for roboform to continue to work on PM, but this is a very small price to pay to ditch FF forever.

I've used PM for a week now, opening/closing/keeping hundreds of tabs a day, and I’ve been stunned at how much faster PM is than FF, as well as the VERY small memory footprint occupied by PM vs FF. Even after a week's HEAVY usage, PM has not grown beyond 1 GB, and even better, when I close tabs, ALL of the RAM is given back.

Basically, PM is what FF ought to be. Even better, the genius behind Pale Moon, Mark Straver, has committed to keeping the PM UI fundamentally unmolested. I’ll be installing PM instead of FF on all of my client’s computers in the future as well!

(BTW, ALL of the "recommended fixes" for the firefox memory leak problems are a sick joke. Not one of them works. And plugins DO NOT cause the memory leaks! Firefox does! How do I know? Because I switched to Pale Moon, importing everything EXACTLY like it was in Firefox and guess what? No memory leaks in Pale Moon! Oh, and I use Adblock Plus, Flash, Java, DoNotTrackMe, BetterPrivacy CookieCuller, DownloadHelper, Element Hiding Helper, IE View, ViewAbout, Visited, and roboform. So NONE of those is causing the firefox memory leak problems!)

share|improve this answer

Firefox has always had ongoing issues with memory leaks. While certain addons make the issue worse, even an up-to-date vanilla install can still have issues. If you don't mind third-party software as a solution, you may want to consider using a program called Firemin. Firemin is an external program that uses CPU resources to actively monitor Firefox's memory usage, ensuring it is as low as possible. The program is configurable, so you can specify how zealous you want the memory management to be.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.