HD Install :: Memory Leak



Juanito, wondering if you have tried setting a cap set on FF's use of memory with browser.cache.memory.capacity in about:config?  It has a habit of growing in an uncontrolled way.

http://damnsmalllinux.org/cgi-bin....+memory

I think I proved to myself there's no issue with opera, so back to firefox.

I created browser.cache.memory.capacity and set it to 16384 - let's see after a few days.

@WDef

You might be on to something here, 3 days later the memory used by XVesa seems to have stablised around 16M more than when I set browser.cache.memory.capacity

Maybe try reducing that cap more - I have it set to 8MB at the moment and I have 512MB ram.  Low ram machines might go lower still.
Reducing the cap did not have an effect on the amount of memory used by Xvesa (should it?) without re-starting firefox.

To try something different I loaded up xorg72 and finally got it to work with my MGA 2164W [Millennium II] AGP graphics card (4,096KB video memory) and Dell 1905FP monitor at 1280x1024x16 - lucky13's dinasaur looks great...

Here's where I am so far:
Code Sample
[Starting mem use for X in xorg72.uci]

$ watch -n 60 pmap 10832 | grep -w total
total    26924K
total    27268K [start firefox 4 tabs browser.cache.memory.capacity not set]
total    32804K [45d 18h 57m]
total    41208K [45d 21h 56m]
total    41772K [45d 22h 59m]
total    36608K [set browser.cache.memory.capacity 16384]
total    38108K [46d 01h 58m]
total    85696K [46d 16h 53m]
total    85708K [set browser.cache.memory.capacity 8192 - no effect]
total    39204K [close firefox]`
total    39204K
total    39204K
total    39396K [start firefox browser.cache.memory.capacity 8192 still set]
total    39396K [46d 17h 16m]
total    39396K [open 2nd tab]
total    39396K
total    39424K
total    39396K
total    39396K [open 3rd tab]
total    39396K
total    39396K [open 4th tab]
total    39396K
total    39628K [46d 17h 43m]
total    39628K [46d 18h 30m]
total    41820K [47d 00h 09m]
total    50188K
total    80876K [jumped 30M in one minute..]
total    80984K [47d 02h 03m]

It seems as though the memory leak did not occur when the machine was left alone with Xorg but the memory used increased by 20M in 21h without even touching the machine with the Xvesa k-drive. When I surfed the web, opened graphics files etc, the ram usage increased - by 30MB in one minute in one case with Xorg. Note that the readings above are shown after closing any additional windows opened.

So far it looks like fluxbox, firefox and either Xvesa, XFree86 or Xorg have the same sort of problem - and setting browser.cache.memory.capacity does not seem to stop it.

Next Page...
original here.