Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (7) </ 1 2 3 4 5 [6] 7 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Memory Leak, How to find it< Next Oldest | Next Newest >
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: Dec. 02 2007,17:31 QUOTE

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
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Dec. 02 2007,17:56 QUOTE

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.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Dec. 06 2007,14:48 QUOTE

@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
Back to top
Profile PM 
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: Dec. 06 2007,19:25 QUOTE

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.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Dec. 07 2007,08:57 QUOTE

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.
Back to top
Profile PM 
34 replies since Nov. 27 2007,15:43 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (7) </ 1 2 3 4 5 [6] 7 >/
reply to topic new topic new poll
Quick Reply: Memory Leak

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code