LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-04-2006, 02:49 AM   #1
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Mint 17
Posts: 272

Rep: Reputation: 31
Firefox - SUCH a memory hog !!


Firefox is getting ridiculous, every new version seems to be consuming more and more memory. The other day after leaving it on for 4-5 days, with multiple tabs open, it became really unresponsive, so I decided to see how much time it would take to close evrythng properly, I did a "quit" in firefox.
It took nearly 10 minutes for it to exit (thrashing all the time in between).
Last year I could leave it on for at least a week, now its more like 4 days, then top indicates it has 55% mem usage, and things start thrashing really bad.
Any solution to this ?
I have 512MB ram. 1GB swap.
 
Old 06-04-2006, 04:13 AM   #2
Megatog615
Member
 
Registered: Feb 2006
Distribution: Ubuntu, Debian, and Slackware
Posts: 48

Rep: Reputation: 15
Memory leakage...

Hasn't Firefox had this problem for a while now?
 
Old 06-04-2006, 04:14 AM   #3
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Mint 17
Posts: 272

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Megatog615
Hasn't Firefox had this problem for a while now?
Yes, and it seems to be getting worse with each new release
 
Old 06-04-2006, 04:16 AM   #4
khaleel5000
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Rep: Reputation: 31
Check if theres some bug or something in firefox (visit their webpage or search firefox xxx (ur version) flaws bugs problems in google
I havebeen using firefox for around 2-3 years in linux and windows and i dont experience such a problem in it....
 
Old 06-04-2006, 04:18 AM   #5
soulxcavtor
Member
 
Registered: May 2006
Location: USA.FLorida
Distribution: Mandriva 2006 PowerPack
Posts: 238

Rep: Reputation: 30
I belive there is a memory leak in Firefox they have yet to Fix. You can set the browsers cache memory by following steps, this should get mozillla back to normal.

Start firefox. In location bar type about:config

Right click select New>Integer. Copy and past this into the box that appears: browser.cache.memory.capacity

Click OK

Another box will pop up here you enter the the amount or memory you want to allocate for firefox. This depends on how much RAM your computer has, but generally you don't want to allocate too little (under 8MB), but if you allocate too much, you might as well not do this. A good recommended setting is 16MB. If you want 16MB, enter this value into the dialog prompt:

16384

(Why 16384 instead of 16000? Because computers use base-12 counting. Thus 16 megabytes = 16384 bytes. Likewise, if you want to double that and allocate 32MB, you'd enter 32768.)

Restart Firefox, and check your vmsize It should fix your problem, if it doesnt play around with the memory size until its good to go. You can find information all over the internet about tweaking firefox.

Hope this helps you out
 
Old 06-04-2006, 05:37 AM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,733
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
Reducing memory usage (Firefox) - MozillaZine Knowledge Base
http://kb.mozillazine.org/Reducing_m..._%28Firefox%29
 
Old 06-04-2006, 04:56 PM   #7
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Mint 17
Posts: 272

Original Poster
Rep: Reputation: 31
Thanks guys, I made some changes: I set
browser.sessionhistory.max_total_viewers to 3 (changed from 5)
browser.sessionhistory.max_entries to 30 (changed form 50, what does this field do )
browser.cache.memory.capacity to 14000 (dunno what it was)

And now firefox has been on for 12 hrs, multiple tabs, and memory consumption is only 19% according to top Before the changes, memory would have hit 33% by now.

Harddrake2 is hanging up on my system - perhaps that may be why firefox was using so much memory ? If it could not query the system for the memory installed, perhaps it was assuming more memory installed that actually was ?

Heres another bigass thread on this issue:
http://developers.slashdot.org/artic.../02/14/2154224

Another link:
http://techpatterns.com/forums/about623.html

Last edited by wearetheborg; 10-08-2006 at 12:38 AM.
 
  


Reply

Tags
firefox, memory


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
smb4k memory hog coldsalmon Linux - Software 3 05-31-2005 04:39 PM
Linux being a hog for memory. Kefka_DArden Linux - Newbie 6 04-19-2004 05:25 PM
Linux memory hog? ryedunn Linux - Hardware 2 03-28-2004 12:45 PM
Memory Hog? AekaGSR Linux - Newbie 2 07-04-2003 11:55 AM
memory hog jct842 Linux - Newbie 2 02-28-2002 01:20 AM


All times are GMT -5. The time now is 10:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration