Following are few tweaks that you can perform on your firefox browser to reduce its memory usage.
1. Remove unnecessary Add-ons and Themes
One of the primary reasons of Firefox slowing down is due to large number of installed extensions. We are tempted to try out each and every fancy add-ons and these could slow down Firefox. Few things to take care while installing and using add-ons
a.Uninstall all add-ons which are not used
b.Install only the latest versions of add-on.
c.Remove unnecessary scripts and themes.
You can also check Firefox memory usage by opening Firefox in safe mode by disabling all add-ons. To open in Safe mode, either you can select it from the programs menu or type firefox -safe-mode in run command.
2. Clear Download History
Memory usage can increase and Firefox can slow down or hang if the download history is allowed to accumulate. Clear the download history (you may need to exit Firefox and delete the file “downloads.rdf” from the profile folder in some cases) and change this setting to circumvent the problem:
Tools -> Options -> Privacy -> Download History -> Remove Files from the Download Manager, select: “Upon successful download”.
3. Reduce memory usage when minimize
Firefox comes with an option by which we can configure Firefox to reduce its memory usage when it is minimize. Following is the procedure to configure firefox to release memory when minimized.
a.Type in about:config in the address bar and hit Enter
b.Right click and choose New > Boolean
c.Type config.trim_on_minimize in the pop-up box and hit Enter
d.Select True and hit Enter.
e.Restart Firefox
4. Fixed cache capacity or Disable Cache Totally
Every time new page is loaded, Firefox will cache the page so it doesn’t need to load again to be redisplayed. 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 fix your cache to a certain value the browser.cache.memory.enable and browser.cache.disk.enable needs to be True for this to work
a.Type about:config in the address bar and hit Enter
b.Search for browser.cache.memory.capacity and set a number in KB to use for the memory cache (ie. 1024KB = 1MB)
c.Search for browser.cache.disk.capacity and set a number in KB to use for the disk cache (ie. 1024KB = 1MB)
5. Restarting Firefox
If you are using Firefox for long hours, then its advisable to restart Firefox periodically as Firefox memory usage increases when kept open for long hours. You can use the session restore feature in to bring back all the windows after restart.