Report: Browser.cache.memory.capacity

Executive Summary

browser.cache.memory.capacity is a preference setting found primarily in Mozilla Firefox and other Gecko-based browsers. It determines the maximum amount of Random Access Memory (RAM) allocated to caching decoded images, scripts, and webpages. Adjusting this setting allows users to control the trade-off between memory usage and browser performance (snappiness). While modern browsers manage this automatically, manual adjustment can be beneficial for users with extreme hardware constraints or those seeking maximum performance on high-end machines.

To revert to automatic management, simply set the value back to -1. If you created the preference, you can right-click it and select Reset.

Scenario C: The Linux Minimalist

On Linux distributions with limited RAM, you might want to completely bypass memory caching to free RAM for the kernel's filesystem cache. Set to 0 or 8192 (8 MB).

| User Profile | System RAM | Recommended Value | Rationale | | :--- | :--- | :--- | :--- | | Default / Casual | 8 - 16 GB | -1 (Auto) | Firefox's dynamic algorithm is highly optimized for standard usage patterns. | | Developer / Power User | 32 GB | 256000 (250 MB) | Provides headroom for heavy SPAs and dev tools without starving the OS. | | Legacy Hardware | 2 - 4 GB | 25600 (25 MB) or 0 | Prevents cache from causing swapping. Disable if OS memory pressure is extreme. | | Ramdisk User | 64 GB+ | 0 (Disable) | If you mount the Firefox profile folder to a RAMdisk, disable the internal memory cache to avoid double-caching data in RAM. | | Privacy Focused | Any | 0 (Disable) | Disabling the memory cache ensures that closing the browser leaves zero trace of images or scripts in RAM (though disk cache may remain). |

limit the memory cache to a reasonable value - Mozilla Bugzilla

powered by Advanced iFrame. Get the Pro version on CodeCanyon.