Browser.cache.memory.capacity

From MozillaZine Knowledge Base
Revision as of 15:26, 4 January 2006 by Np (talk | contribs) (recommended settings are for recommended settings only - not what the values mean. also, there's no evidence that having this at a high value would cause a memory leak)
Jump to navigationJump to search

Background

When a page is loaded, it can be cached so it doesn't need to be rerendered to be redisplayed. This preference controls the maximum amount of memory to use for caching decoded images and chrome (application user interface elements).

Possible values and their effects

-1

Automatically decide the maximum memory to use to cache decoded images and chrome based on the total amount of RAM. (Default in all but Thunderbird and Minimo)

RAM Cache
32MB 2,048KB
64MB 4,096KB
128MB 8,192KB
256MB 14,336KB
512MB 22,528KB
1GB 32,768KB
2GB 45,056KB
4GB 59,392KB

0

Do not cache decoded images and chrome in memory.

Any positive integer

Maximum amount of memory in KB to use to cache decoded images and chrome. 1MB = 1024KB. (Thunderbird default: 4096. Minimo default: 256)

Caveats

  • browser.cache.memory.enable must be true for this preference to take effect.
  • Lowering this value causes less memory to be used but also increases the load time of previously visited pages and dialogs. Raising it has the opposite effect.

Recommended settings

Users who are having problems with memory consumption can try setting the value to something lower than specified in the table above to lower memory consumption. Users who have no problems with memory should leave it at -1.

First checked in

2001-06-27 by Darin Fisher

Has an effect in

  • Netscape (all versions since 6.1)
  • Mozilla Suite (all versions since 0.9.1)
  • Phoenix (all versions)
  • Firebird (all versions)
  • Firefox (all versions)
  • Thunderbird (all versions)
  • Minimo (all versions)
  • Seamonkey (all versions)

Related bugs

Related preferences