
There were already several posts about memory leaks in Ognelis on Habré, but in none of them there is a complete set of instructions, from my point of view. Under the cut, I will try to put everything together, adding what helped me in resolving the issue.
In addition to solving the problem of memory leaks, many tips will speed up the browser, so the post will be interesting to anyone who uses Firefox. Virtually every item is suitable for Thunderbird email client.
And if you just liked the girl from the picture, then
here are the highres :)
')
Adblock plus
We put a popular addition, if it is not yet installed.
The point here is not only in advertising, but also in the fact that the display of Flash banners can cause memory leaks on some configurations.
Website with an abundance of advertising:
AdBlock Plus comes into
play :

Sites without ads are loaded much faster.
For those who believe that completely disable advertising is not very good, there is an option at which unobtrusive advertising will remain.
Deleting "Undelete" Add-ons
Some programs try to embed their add-ons into the browser. These include, for example, Kaspersky Anti-Virus, Zend Studio, RealPlayer, Skype:

These add-ons can be disabled, but cannot be removed. Some believe that this is one of the possible causes of memory leaks.
By removing these add-ons, we at a minimum speed up the launch of Firefox, so this action makes sense anyway.
We are looking for in the registry:
HKEY_CURRENT_USER\Software\Mozilla\Firefox\Extensions\
HKEY_LOCAL_MACHINE\Software\Mozilla\Firefox\Extensions\
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Mozilla\Firefox\Extensions
We delete all entries for add-ons that we don’t need or entries that are not related to add-ons (I’ve got Google Update in these branches from somewhere).
By the way, I recommend to get acquainted with the
list of additions that lead to memory leaks. It makes sense to find an alternative for them or refuse to use them.
Reset RAM in minimized mode
1) We type in the address bar
about: config2) Click the right mouse button
New , select
Boolean
3) We are typing
config.trim_on_minimize
4) Choose
True5) Reboot the fox
Now, when the browser is minimized, the memory will be spent an order of magnitude less. Payback for this
may be slowing down the "recovery" of the browser.
Reduced memory consumption
If the problem when working with Firefox is not so much a memory leak as in its lack, it makes sense to sacrifice some of the performance in order to reduce the total memory consumed.
In Firefox, there is a function of quickly navigating through previously opened pages by storing the rendered page in RAM. For this convenience, we pay
a higher consumption of RAM. If memory is more important to you, change the value of
browser.cache.memory.enable to
false .
Instead of completely turning off the cache, there is an option to independently choose the maximum amount of memory that it will occupy -
browser.cache.memory.capacity . If the option is absent, create it in the same way as in the previous paragraph about trim_on_minimize. Type -
integer , value in kilobytes.
You can check for changes by opening
about: cache .
browser.sessionhistory.max_total_viewers of type
integer is caching sessions of the last visited pages. I set
0 .
browser.sessionhistory.max_entries - the number of memorized steps Forward-Back. The value of
10 is enough for me.
Speed Firefox

Addition
Fasterfox accelerates the loading of pages.
There are five different modes to choose from:
Default ,
Courteous ,
Optimized ,
Turbo Charged and
Custom . Without going into details of the work, I advise you to install
Turbo Charged (
Extreme ). This will set the browser to its maximum performance.
If you don’t feel sorry for the time, choose
Custom , which will allow you to manually set the maximum number of connections, configure the page rendering system and other options.