Sometimes I just feel that Firefox is such a memory hog. When I start to open up a few extra tabs, it starts to slow down my whole system.
Fortunately, you can do something about it.
How To Reduce Firefox Memory and Cache Usage
Tip 1: Reduce Session History
browser.sessionhistory.max_entries determines the maximum number of pages in the browser’s session history, i.e. the maximum number of URLs you can traverse through the Back/Forward buttons. The Default value is 50. We usually won’t surf more than 5 of the websites we previously surfed before, and there is really no need to store more than that in the session which can clog up memory as they grow.
- Open Firefox
- Type about:config in the Firefox address bar
- Press CTRL-F and search for browser.sessionhistory.max_entries
- Double click on the value 50 (or whatever value is there currently) and change it to something lower such as 5.
- Restart Firefox.
For Firefox 1.5 and above, you can also look at another configuration variable browser. sessionhistory. max_total_viewers which also determines the maximum number of content viewers to cache for “bfcache” (fast back/forward navigation).
Tip 2: Reduce memory usage when minimize
- Start up Firefox
- Type in about:config in the address bar and hit Enter
- Right click and choose New > Boolean
- Type config.trim_on_minimize in the pop-up box and hit Enter
- Select True and hit Enter.
- Restart Firefox
Tip 3: Fixed cache capacity OR Disable Cache Totally
Every time when new page is loaded, Firefox will cache the page so it doesn’t need to load again to be re displayed in browser. By default, this setting is set to -1 for browser.cache.memory.capacity and to a number you specified in Tools -> Options -> Advanced -> Network / Cache for browser.cache.disk.capacity
To Disable the cache Totally
Set both browser.cache.memory.capacity and browser.cache.disk.capacity to 0. Alternatively, You can also set browser.cache.disk.enable and browser.cache.memory.enable to False.