Minnesläcka i Firefox v1.5

Magnus, en kompis till mig meddelande att det finns en minnesläcka i Firefox v1.5. Gogglade lite och fann detta:

I noticed a few Firefox threads here have people complaining about how much memory Firefox takes up. This is a known memory leak, and the Mozilla guys haven’t gotten around to fixing it for whatever reason. But there’s no reason your Firefox should take up 70,000K in memory, so here’s how to fix that memory leak and keep Firefox from bloating up.

1. Open a new tab. Type "about:config" without quotes into the address bar and hit enter/click Go.

2. Right-click anywhere, select New, then Integer. In the dialog prompt that appears, type:

browser.cache.memory.capacity

3. Click OK. Another dialog prompt will appear. This is where you decide how much memory to allocate to 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.)

4. Click OK to close the dialog box, then close all instances of Firefox and restart. If your Firefox still uses the same amount of memory, give it a few minutes and it should slowly clear up. If that fails, try a system reboot.

Taget från http://www.freerepublic.com/focus/f-bloggers/1327586/posts

Minnesläckan triggas enklast genom att Firefox inte lämnar tillbaka minne till OS:et när man stänger flikar.


Posted

in

,

by

Tags:

Comments

5 responses to “Minnesläcka i Firefox v1.5”

  1. Cerwinski

    Tyvärr har jag redan testat detta tips och det blir inte bättre :/

    Kanske cachar den mindre per flik/sida men den lämnar likförbannat inte tillbaka det när man stänger…

  2. Om jag förstår detta korrekt så anger man den maximala minnesbufferten som FF får använda som cache. Detta betyder att inget minne kommer att lämnas tillbaka till OS:et när man stänger en flik.

    Det denna gör är att ställa in den maximala buffert som FF får använda. Om den fungerar kommer FF inte att öka cachen över den storleken.

  3. Cerwinski

    Då funkar det inte. 🙂
    Testa själv.

  4. Skall hålla ett öga på minneshanteringen i FF.

    Hittade denna utförliga artikel om problemet: http://www.informationweek.com/news/showArticle.jhtml?articleID=175007152

  5. Har nu kontrollerat minnesanvändnigen i aktivitetshanteraren och när jag stänger en flik minskar minnesanvändningen. Just nu är topp 120MB och aktuellt 75MB.