Browser.cache.memory.capacity: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(match the style of the other articles - recommended settings is only for recommendations; defaults are the default value of the preference, not the default setting)
m (Right-aligning table cells)
Line 11: Line 11:
! Memory Cache (in KiB)  
! Memory Cache (in KiB)  
|-
|-
| 32 MB
| align="right" | 32 MB
| 2048  
| align="right" | 2048  
|-
|-
| 64 MB
| align="right" | 64 MB
| 4096  
| align="right" | 4096  
|-
|-
| 128 MB
| align="right" | 128 MB
| 8192  
| align="right" | 8192  
|-
|-
| 256 MB
| align="right" | 256 MB
| 14336   
| align="right" | 14336   
|-
|-
| 512 MB
| align="right" | 512 MB
| 22528  
| align="right" | 22528  
|-
|-
| 1 GB
| align="right" | 1 GB
| 32768  
| align="right" | 32768  
|-
|-
| 2 GB
| align="right" | 2 GB
| 45056  
| align="right" | 45056  
|-
|-
| 4 GB
| align="right" | 4 GB
| 59392  
| align="right" | 59392  
|}
|}



Revision as of 03:37, 5 January 2006

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).

Physical RAM Memory Cache (in KiB)
32 MB 2048
64 MB 4096
128 MB 8192
256 MB 14336
512 MB 22528
1 GB 32768
2 GB 45056
4 GB 59392

0

Do not cache decoded images and chrome in memory.

Any positive integer

Maximum amount of memory in KiB to use to cache decoded images and chrome (1 MB = 1024 KiB). (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.
  • To view current memory cache usage, put about:cache?device=memory in the Location Bar
  • This preference does not exist by default.

Recommended settings

Users who are having problems and want to lower memory consumption can try setting the integer value to something lower than the memory cache setting given in the above table. Users who have no problems with memory should leave the setting 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