PDA

View Full Version : Web interface, Firefox, memory growth



awy
2006-10-16, 08:29
I guess that this must be a Firefox bug but it is the first time I have come across it. If I leave the web interface open in Firefox, refresing the various frames periodically as it does, over time the size of my Firefox process grows until I have to kill it. Is there something about the way the refresh stuff is written that it provokes a memory leak in the browser?

probedb
2006-10-16, 08:49
Firefox leaks memory and if you hunt around on google you'll find it's a known issue unfortunately :( I've never had to quit it tho and that's leaving slimserver open with it refreshing itself for hours.

Ben Sandee
2006-10-16, 09:14
Generally, I believe it has been found that it is Firefox that is causing
the leaks. There is some anecdotal evidence that 6.5 has improved this by
not using certain 'buggy' scripting techniques for refreshing on Firefox.
You don't say what version you are running for any of the products involved
(Firefox, SlimServer) so others may not have many more specific suggestions.

You might find that Firefox by itself doesn't cause the leak but one of your
installed extensions does. Firefox cannot guard against a buggy extension.

Ben

oreillymj
2006-10-16, 09:16
Some reading material on the subject

http://element14.wordpress.com/2006/07/11/firefox-does-not-have-a-memory-bug-but-heres-how-you-improve-mem-usage/

http://forevergeek.com/open_source/debunking_another_myth_firefoxs_memory_leak_bug.ph p

awy
2006-10-16, 11:29
A couple of bits of version info:

SlimServer Version: 6.5.0 - 9916 - Linux - EN - utf8
Perl Version: 5.8.8 i386-linux-thread-multi
MySQL Version: 5.0.21-standard

running on Linux FC5.

Firefox 1.5.0.7 under Windows XP and on Linux FC5.

The 'leak' is progressive over a very long period and seems significantly worse on Linux than on XP (although it may be that the XP machine has more memory and I just havn't noticed). I am sure that it is related to the caching of multiple page histories in multiple tabs.

SteveEast
2006-10-16, 11:57
I see the same thing. I've reverted to using IE for SS (6.2.1) access.

But it's certainly not just SS that does this with FF. Pretty much any auto refreshing page seems to make FF grow to a lesser or greater extent.

Steve.

radish
2006-10-16, 12:47
I've had similar problems with FF on XP, but never with Slimserver (I rarely leave it open for long enough). I have however noticed that FF memory usage is much improved in the last few point releases.

SteveEast
2006-10-16, 16:36
Some reading material on the subject

http://element14.wordpress.com/2006/07/11/firefox-does-not-have-a-memory-bug-but-heres-how-you-improve-mem-usage/

http://forevergeek.com/open_source/debunking_another_myth_firefoxs_memory_leak_bug.ph p

Even with the above suggestion to "Kill the amount of RAM Firefox uses for itís cache feature" I can still watch FF growing at a really quite phenomenal rate. It's at 230MB at the moment and I've only had it running for about 4 hours.

Steve.

stinkingpig
2006-10-16, 17:28
On 10/16/06, SteveEast <
SteveEast.2fso4n1161042001 (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
>
> oreillymj;146688 Wrote:
> > Some reading material on the subject
> >
> >
> http://element14.wordpress.com/2006/07/11/firefox-does-not-have-a-memory-bug-but-heres-how-you-improve-mem-usage/
> >
> >
> http://forevergeek.com/open_source/debunking_another_myth_firefoxs_memory_leak_bug.ph p
>
> Even with the above suggestion to "Kill the amount of RAM Firefox uses
> for it's cache feature" I can still watch FF growing at a really quite
> phenomenal rate. It's at 230MB at the moment and I've only had it
> running for about 4 hours.
>
>
What extensions are you using? My Firefox is usually between 100 and 150 MB,
with Searchbar Autosizer, Download Manager Tweak, TabX, and Session Manager.
I average 4-10 open tabs.

--
"I spent all me tin with the ladies drinking gin,
So across the Western ocean I must wander" -- traditional

SteveEast
2006-10-16, 18:11
What extensions are you using? My Firefox is usually between 100 and 150 MB,
with Searchbar Autosizer, Download Manager Tweak, TabX, and Session Manager.
I average 4-10 open tabs.


Talkback, Forecastfox, IE Tab, Adblock, ChatZilla. 4-8 tabs.

I see slow growth when I don't run SS in FF, but dramatic growth when I do. It normally takes me several days to reach 150MB, at which point I restart it.

Steve.

stinkingpig
2006-10-16, 18:53
On 10/16/06, SteveEast <
SteveEast.2fssiz1161047701 (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
>
> Jack Coates;146808 Wrote:
> >
> > What extensions are you using? My Firefox is usually between 100 and
> > 150 MB,
> > with Searchbar Autosizer, Download Manager Tweak, TabX, and Session
> > Manager.
> > I average 4-10 open tabs.
> >
>
> Talkback, Forecastfox, IE Tab, Adblock, ChatZilla. 4-8 tabs.
>
> I see slow growth when I don't run SS in FF, but dramatic growth when I
> do. It normally takes me several days to reach 150MB, at which point I
> restart it.
>
> Steve.
>
>
Three of those are on the "Problematic Extensions" page (sometimes in older
versions, sometimes in the current version):
http://kb.mozillazine.org/Problematic_extensions

Might be worth investigating alternatives or making sure they're up to date.
--
"I spent all me tin with the ladies drinking gin,
So across the Western ocean I must wander" -- traditional

SteveEast
2006-10-17, 17:19
Three of those are on the "Problematic Extensions" page (sometimes in older
versions, sometimes in the current version):
http://kb.mozillazine.org/Problematic_extensions

Thanks for that link. I clobbered all 3 of those extensions and now FF is growing much more slowly. 24 hours and it's only at 85MB. We'll see how it goes...

Steve.