I have firefox version 11.0 and am running ubuntu 11.10. Firefox takes upto 850MB RAM
with only six or seven tabs opened and all the tabs loaded with light weight websites only. I wonder why would a browser consume so much memory. It keeps increasing its memory consumption over time. I have 3GB RAM
and most of the times firefox consumes upto 30% of my memory. How do I fix this?
EDIT:
The output of the command sudo iotop -oPa
as asked by @Jippie
Without specifying what you're doing exactly, it's hard to say this is an actual problem.
There's a common misconception that utilizing a lot of memory is bad. However, unused memory is a waste. It's like keeping a warehouse mostly empty because you think it's cleaner. By keeping as much as you can in memory, it saves having to go to disk and also reloading content needlessly. As long as the program is good about letting go of memory it doesn't absolutely require to other programs, it's not a problem.
If it's a memory leak on the other hand, that would be a big problem. You can check this by closing all your tabs except say a blank one. Then start loading other memory intensive programs. If you have another browser installed, like Chrome, start loading massive pages in it. If Firefox is still showing massive memory usage, then it's a leak. Your system will likely become sluggish from the other programs demanding unavailable memory.
It might be Firefox, but often it's an add-on or combination of add-ons causing the leak. You can disable all add-ons by starting Firefox in safe-mode from the terminal,
firefox -safe-mode
, to see if you have the same thing happen.If you're saying that with just a few "light" websites open, and not doing anything in Firefox, that Firefox just starts taking up more and more memory, then it's plausible it's just Flash or some script going nuts. This is why I put "light" in quotes. It's unbelievable how badly some simple-looking sites are designed.
try restarting firefox with addons disabled. sometimes addons can cuase problems. @jippie i think he has checked from system monitor if the solution works then you have to remove some addons
Try this link by Mozilla Zine article database that addresses this question. http://kb.mozillazine.org/Memory_Leak
Best of luck!