Free Republic
Browse · Search
Bloggers & Personal
Topics · Post Article

Skip to comments.

Fixing Firefox's memory leak (January, 2005)

Posted on 01/24/2005 3:04:40 PM PST by Terpfen

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.

Hope I did a service to some FReepers today.


TOPICS: Computers/Internet; Miscellaneous
KEYWORDS: browser; firefox; mozilla
Navigation: use the links below to view more comments.
first previous 1-2021-4041-56 last
To: Oahn Macleod
I should have my brains checked, but I have 69 extensions active and 44 just sitting there not being used. Sometimes I will activate or deactivate an extension when I want it's functionality. Right now I have 6 tabs open and FFv1.5.0.6 is hoggin appx 237MB but using only 2-17 CPU clicks.... Yes, I find it unstable, but I still like it better than IE....I think it's because I am a tweak-nut. Oh well.
41 posted on 09/07/2006 10:57:49 PM PDT by wpbdude1
[ Post Reply | Private Reply | To 38 | View Replies]

To: Terpfen

2005: "Hope I did a service to some FReepers today."

2006: and even a year later you helped some none FReepers. See

"I know on the current Firefox, you can take measures [freerepublic.com / http://www.freerepublic.com/focus/f-bloggers/1327586/posts] to restrict its size but I think it starts to thrash when I go to a largely intensive Flash site. "

From
Firefox 2.0 RC3 Released
http://slashdot.org/articles/06/10/17/1215241.shtml


42 posted on 11/01/2006 12:00:56 PM PST by bwteim (bwteim = begin with the end in mind)
[ Post Reply | Private Reply | To 1 | View Replies]

To: bwteim

Yeah, this article ranks pretty high on search engine results lists. I'm amazed. Thanks for the notice!


43 posted on 11/01/2006 7:34:17 PM PST by Terpfen (And in the second year, Nick Saban said "Let there be a franchise quarterback...")
[ Post Reply | Private Reply | To 42 | View Replies]

To: Terpfen

You're welcome. That about:config is handy to keep as reference and use. I am using 2.0 now, BTW. Had to remove some extensions at first.


44 posted on 11/02/2006 5:53:01 AM PST by bwteim (bwteim = begin with the end in mind)
[ Post Reply | Private Reply | To 43 | View Replies]

Comment #45 Removed by Moderator

To: smokes420

You're welcome.

And tell those same people that Firefox 3 is slated to fix a whole host of memory leaks, partially due to its codebase getting a fairly extensive reworking.


46 posted on 01/19/2007 5:31:04 PM PST by Terpfen (Got a problem? It's now Pelosi's fault!)
[ Post Reply | Private Reply | To 45 | View Replies]

To: Terpfen

I installed a free Freememory program. It seems to have helped. Also if click the "-" hide the page/browser button at the top right it refreshes FireFox.


47 posted on 02/11/2007 3:00:59 PM PST by RapierWit
[ Post Reply | Private Reply | To 1 | View Replies]

To: Terpfen

The Firefox memory issues may have little to do with Firefox itself, at least in some cases. I found the culprit was actually the popular Zone Alarm firewall on my PC. There is some sort of coexistence problem with Zone Alarm and p2p or tunneling applications that cause its memory usage to continually grow. For some reason, this growing memory usage also happens to Firefox. The solution for me was to remove Zone Alarm and repalce it with the free Comodo Firewall Pro. My memory issues with Firefox and the firewall are gone.


48 posted on 09/10/2007 6:38:38 AM PDT by itwonder
[ Post Reply | Private Reply | To 1 | View Replies]

To: itwonder

That’s a separate issue with Zone Alarm, which really isn’t as good as advertised. Sygate and Comodo are better software firewall options. (But it’s really in your best interest to get a hardware firewall.)

Firefox’s memory leaks are well-known, so it’s not a matter of Zone Alarm somehow interfering with Firefox. Luckily, the upcoming Firefox 3.0 fixes a good lot of them.


49 posted on 09/10/2007 7:34:48 AM PDT by Terpfen (It's your fault, not Pelosi's.)
[ Post Reply | Private Reply | To 48 | View Replies]

To: Terpfen

Another fix - boolean - config.trim_on_minimize - true


50 posted on 09/30/2007 1:29:56 PM PDT by narses (...the spirit of Trent is abroad once more.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Terpfen

Base 12?

Mark


51 posted on 09/30/2007 8:52:36 PM PDT by MarkL (Listen, Strange women lyin' in ponds distributin' swords is no basis for a system of government)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Terpfen
Keith is absolutely right. Everything a computer does in processing IS binary. However people don't deal with binary math very well. It's messy and easy to make mistakes. So the binary values are REPRESENTED by different bases: Historically, 8 bit computers used "octal," or base 8, since this was able to represent the values that a "byte" can hold, from 0 - 255, 256 unique values. In octal, that would be represented by the octal values 0 - 377. However modern computer programmers and other geeks prefer to use base 16, or Hexadecimal. 2 Hex characters can represent the same values of 0 - 255 that it takes Octal 3 characters to represent. In hexadecimal the digits are 0-9 and a-f, with 'a' representing the value (decimal) 10. The character 'f' represents the (decimal) value of 15. So "f0" represents 240, and "ff" represents 255 (decimal).

So, in other words, these different bases are just used by us dumb humans, because it's SO MUCH EASIER to represent 00011110 as 1e, or 30 decimal.

Mark

52 posted on 09/30/2007 9:06:50 PM PDT by MarkL (Listen, Strange women lyin' in ponds distributin' swords is no basis for a system of government)
[ Post Reply | Private Reply | To 5 | View Replies]

To: MarkL

Yeah, I’ve heard it already.

Sheesh, you goof up a minor detail in an article meant to help people out and you never hear the end of it, even two years later.


53 posted on 09/30/2007 10:20:21 PM PDT by Terpfen (It's your fault, not Pelosi's.)
[ Post Reply | Private Reply | To 51 | View Replies]

To: Terpfen; MarkL

See mine at 50. Any issues that I ought to be aware of?


54 posted on 10/01/2007 6:53:49 PM PDT by narses (...the spirit of Trent is abroad once more.)
[ Post Reply | Private Reply | To 53 | View Replies]

To: narses

another fix -set to 0 - browser.sessionhistory.max_total_viewers


55 posted on 10/16/2007 7:59:57 AM PDT by rogerdpack
[ Post Reply | Private Reply | To 50 | View Replies]

To: Terpfen

No good deed goes unpunished.


56 posted on 10/16/2007 8:02:47 AM PDT by Lee'sGhost (Crom! Non-Sequitur = Pee Wee Herman.)
[ Post Reply | Private Reply | To 53 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-4041-56 last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
Bloggers & Personal
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson