General Discussions

Rant: Getting Mad At Memory Leaks – CPUFreak91

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
I'm getting very mad with both Mozilla Firefox and OpenOffice.org.
Why?
They use TOO MUCH RAM!

Firefox has an obvious memory leak. As an open source advocate, I'd hate to switch to Opera and I can't switch to lighter browsers (links, dillio, etc) because they have poor flash and/or java script support.

My complaint? After leaving firefox open for over 48 hours my 512MB were gone and only 6MB was left! Although Linux handled memory management very nicely when I fired up Open Office.org (thanks to my 1 gig swap partition) I still can not run programs at the speed that I want them to run. (Which is why I chose Gentoo in the first place).

The greatest annoyance is that Linux did not free up much RAM after I closed FireFox down (this happened to me in windows and ubuntu too). The only way I could get 100MB of RAM back was TO REBOOT LINUX! Why should I have to reboot Linux? It's not windows it's Linus Torvald's brain child optimized for my hardware.

Flock!
Maybe I'll try out flock. Unfortunately it's not in Portage, so I need to compile it manually. I'll post here if I get good results.

After rebooting and using Konqueror, I have 200MB of free RAM with KDE running at full Eye Candy.

With both FireFox and OpenOffice.org simultaneously running for a long period of time spells disaster. Something must be wrong.... I hope this issue is fixed in FireFox 2.0. Some people have noticed an improvment already.

Why did I bother ranting? I dunno, but it feels good to yell at something. Lack of speed and freezage are my worst enemies. The freezage problems went away when I switched to Linux and the speed should improve with 1-2GB of 333MHZ instead of 512MB of 266MHZ RAM.

Computer's aren't perfect, and neither are the developers. Thankfully I can edit and recompile Firefox to my needs.. and I probably will after I get more C++ experience.

------------------
All Your Base Are Belong To Us!!! chown -r us ./base
"After three days without programming, life becomes meaningless.'' -- Tao of Programming Book 2

[This message has been edited by CPUFreak91 (edited May 16, 2006).]

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
Wahoo! Fixed some of it. I needed to tweak some about:config settings. I uninstalled some extensions that cause FF to leak memory. I also reduced many caches. One of the "disadvantages" fome two of my tweaks is that images and web pages load much more slowly... something I don't mind. What I do mind is when other programs load slowly, not web pages.

Kudos to the mozillazine Wiki!

------------------
All Your Base Are Belong To Us!!! chown -r us ./base
"After three days without programming, life becomes meaningless.'' -- Tao of Programming Book 2

D-SIPL

Moderator

Posts: 1345
From: Maesteg, Wales
Registered: 07-21-2001
Yeh i remember reading this a few weeks ago <url>http://tech.cybernetnews.com/2006/03/26/this-may-help-your-firefox-memory-leak/</url> I don't really use firefox much now though, i rarely get round to installing X to be fair. I'm busy working on my various projects so the net can quickly become a distraction. Although IRC is still in heavy use I have my Ratbox ircd up and running now, so you can check it out soon.

------------------
"One World. One Web. One Program." -Microsoft promotional advertisement
"Ein Volk, ein Reich, ein Fuhrer!" -Adolf Hitler

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
http://kb.mozillazine.org/Problematic_extensions
That helped me a lot. Adblock, filterset G, Session saver all cause memory leaks in FireFox. This is a slight annoyance as I do like Adblock and Filterset.G. I may upgrade to the latest Adblock which doesn't cause FF to leak but I won't install Filterset.G

I like good documentation and knowledge basees.

I'm thinking about lowering FF's memory usage even more. (like I said, surfing speed is not a problem, system speed is )

D-SIPL: Wow. I can live without using X, every day, but sometimes I want a GUI for the eye candy and videos. aalib is nice tho ;p

------------------
All Your Base Are Belong To Us!!! chown -r us ./base
"After three days without programming, life becomes meaningless.'' -- Tao of Programming Book 2

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
Sorry about the double post, but this requires it's own special post:
After 3 hours FireFox used only 90MB and that even was with 4 tabs open!

------------------
All Your Base Are Belong To Us!!! chown -r us ./base
"After three days without programming, life becomes meaningless.'' -- Tao of Programming Book 2

D-SIPL

Moderator

Posts: 1345
From: Maesteg, Wales
Registered: 07-21-2001
quote:
Originally posted by CPUFreak91:
Sorry about the double post, but this requires it's own special post:
After 3 hours FireFox used only 90MB and that even was with 4 tabs open!



thats cool. Yeh X has it's uses, just not with the stuff i'm doing right now.... *hides back in the dark console*

------------------
"One World. One Web. One Program." -Microsoft promotional advertisement
"Ein Volk, ein Reich, ein Fuhrer!" -Adolf Hitler