THE BELL

There are those who read this news before you.
Subscribe to receive fresh articles.
Email
Name
Surname
How do you want to read The Bell?
No spam


Lately, a window has been constantly popping up for me that Mozilla Firefox is using a lot of memory. I was a little tired of it, so I went to the Internet experts to look for an answer to this question. And this is what I found out.

This article is intended to help those who are puzzled by the problem of gluttony in the Mozilla Firefox browser. Namely, with regard to their use large quantity RAM, which in turn can lead to a heavy load on the disk system and central processor.
Often, memory overuse, as well as processor load, arise due to crooked plugins and bars. There is no need to decorate your browser with frills for all occasions or for the future. Leave only those that you really need, disable unnecessary ones, and don’t forget to update the rest. The latter is especially relevant due to the current frequency of releases of new versions of the Firefox browser.

To identify a problematic plugin, you can disable everything at once. Then enable them one at a time, checking for changes in system resource usage.

But still, the main reason for the overuse of RAM is the function of caching recently opened pages. This is not a mistake or a flaw, it was intended by the developers. A certain number of previously opened pages continue to be stored in RAM until the browser is completely closed. They take up space even when all tabs except the last one are closed. This is done so that the user can access a previously viewed page without the delay of reloading and processing it. It seems useful, but only if you have a modern, powerful computer. Unfortunately, simple configurations make it less and less convenient to work with latest versions Firefox. Judge for yourself, today 1 GB of memory used by a browser alone will not surprise anyone, but what should those who have only 1 GB of RAM on board do? operating system and other programs), but the computer is only needed for surfing the Internet, office applications and cannot be upgraded? Such users can be asked to abandon the FireFox cache altogether, following the recommendations below.

First of all, you need to go to the settings page “

about:config (specify in the address bar) . Confirm your action, if necessary:
and perform the following actions with the settings:


  • Decrease variable value
  • browser.sessionhistory.max_entries from 50 to, for example, 10 . This variable is responsible for the number of pages in the cache that can be returned to without rereading them from the Internet (in each tab);

  • Install browser.sessionhistory.max_total_viewers at 0 . This variable is responsible for the number of already “parsed” (processed) pages from the previous paragraph stored in memory. If the required page is not in memory, it is read from the disk cache and processed again. Since this action is rarely performed, there is no point in keeping such pages in memory;

  • Create a new type variable bool, config.trim_on_minimize , and install it to true . Firefox will then free up unused memory when minimizing the window;

  • Install network.prefetch-next to false . In this case, Firefox will never read in advance pages that have links on the current page.

Restart the browser.

I did this myself, now I’ll watch and wait to see if the memory window pops up again.
Good luck to everyone, I will be glad if this information is useful to you.
Follow the next episodes of "Advice from Experts" with interesting information for you on the blog from Lyubasha K...

Firefox sometimes uses more memory (RAM) than it should. This can make Firefox slower, and in extreme cases, it can even make Firefox crash. This article describes how to make Firefox use less memory.

  • Depending on your operating system, you can review and monitor memory usage through specific tools. On Windows, the Performance tab of the Windows Task Manager displays memory usage.

Add-ons

Disabling memory consuming extensions and themes

Extensions and themes can cause Firefox to use more memory than it normally would.

To determine if an extension or theme is causing Firefox to use too much memory, start Firefox in Safe Mode and observe its memory usage. In Safe Mode, extensions and themes are disabled, so if you notice a significant improvement, you can try disabling or uninstalling extensions.

  • For more information on starting Firefox in Safe Mode and on how to find which extension or theme is causing your problem, see Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems.

Hiding intrusive content

Many web pages have content you don"t really need that uses memory to display. Firefox"s built-in Content blocking can help save memory by preventing third-party tracking content from loading. See the Content blocking article for details.

Some extensions allow you to block such unnecessary content; for example:

  • uBlock Origin allows you to hide ads on websites.
  • NoScript allows you to selectively enable and disable all scripts running on websites.

Checking Flash hardware acceleration

Using fewer tabs

Each tab requires Firefox to store a web page in memory. If you frequently have more than 100 tabs open, consider using a more lightweight mechanism to keep track of pages to read and things to do, such as:

  • Bookmarks. Hint: "Bookmark All Tabs " will bookmark a set of tabs.

Other applications using up memory

Having many applications running simultaneously may cause your computer to run slowly and other applications to do so as well. By closing down some of the unnecessary applications, memory usage will be reduced.

Memory troubleshooting tools

  • Firefox:
    • The about:memory page allows you to troubleshoot finely specific issues about memory (for instance, caused by a website, an extension, a theme) and sometimes its Minimize memory usage button may help you instantly reduce memory usage. For guidance on use of about:memory visit about:memory
    • Even if you"re not a C++ programmer, you can try your hand at some other tools and tips Firefox developers use to debug leaks .
  • System:
    • View how much memory is being used by checking the Windows Task Manager Performance tab (click on "More details" in the Task Manager to show all tabs). See this Windows blog post at Microsoft's site for more information.

Add RAM to your computer

If you exhausted all tips in the previous sections and your memory usage is still close to the maximum, maybe it"s time for you to add more memory to your computer. RAM is cheap and will provide a huge performance boost.

I have already written about how to speed up page loading in Mozilla FireFox by editing various settings using about:config, however, besides this, there is something else that would not hurt to tweak in this browser.

Many people know that being stuffed with different plugins (and without even being stuffed with them) chews up a relatively large amount of RAM, both collapsed and expanded.
However, it is possible to carry out some optimization, which will not only slightly reduce the consumption of computer resources, but also make the browser work somewhat faster and more adequately.

Reducing the amount of RAM consumed by Firefox

Let's start with optimizing memory consumption.
So, here we go:

  1. Launch our browser Mozilla Firefox
  2. We are recruiting (we just type, not copy) in the address bar (this is where we enter, for example sonikelf.ru) about:config and, agreeing to be careful, we get to the browser settings page
  3. Find a parameter in the list of settings and set its value 0
  4. Next (by right-clicking and selecting from the drop-down list " Create- Boolean«) you need to create a parameter with the name config.trim_on_minimize and meaning true
  5. Close the settings page and restart the browser

Using these two parameters, we made changes to the data caching subsystem, thereby reducing the consumption of RAM in minimized mode (meaning config.trim_on_minimize is responsible for uploading to the swap file while the browser itself is minimized), and also picked up one important parameter that changed the RAM consumption while traveling on the Internet.

The point is that browser.sessionhistory.max_total_viewers is responsible for the amount of allocated RAM into which the pages we visit are stored. This is done so that when you press the button " Back", the browser did not have to reload the entire page from the Internet or from the cache on the hard drive, which speeds up the journey through sites already visited using the above buttons " Forward-Back". I have a well-founded opinion that even without this gadget the transition is fast enough, so you can turn it off, because it consumes RAM according to a completely unscrupulous scheme:

Accordingly, assigning the above value 0 (instead of the standard -1) We disabled this function and thereby saved our beloved megabytes of RAM, which were invariably bitten off while surfing websites.

Next, I would like to note that a huge chunk of resource consumption is allocated not so much to the ‘y’ itself, but to the plugins and extensions attached to it, and therefore let’s carry out a little optimization in this area. To do this, open “ Tools- Add-ons"and look at what we have installed there:

  • First of all, you should remove everything that you definitely don’t use or the purpose of which you don’t know. To do this, simply select “ Delete» opposite one or another extension
  • Next, I recommend using the " Disable” opposite those plugins that you currently do not use at the moment, but which you periodically need. As an example, it could be, say, VideoDownloadHelper, which you probably download music and videos from time to time, but you don’t do it regularly (for example, I use this plugin at most once a week or two, and the rest of the time I have it turned off). Do this for all currently unused extensions and simply enable them as needed.

Now, as for " Plugins» (namely plugins, not add-ons), because they also need to be put in order, which, by the way, not everyone does simply without knowing about their existence. In order to manage them, go to the tab “ Tools- Add-ons- Plugins«.

Here, perhaps, it’s worth turning off everything except Shockwave Flash And Java TM Platform(although this plugin is not always needed and not for everyone). The rest, as a rule, are add-ons wrapped around various applications, which have absolutely no meaning. As an option you can still leave Adobe Acrobat(responsible for opening PDF files directly in), but personally I prefer to use the application of the same name rather than a plugin.

When you are finished working with plugins and extensions, restart your browser.

Let's move on to further setting up memory consumption, namely, this time, to working with the cache both in RAM and on disk. These settings are quite flexible and directly affect the memory and space chewed by the browser. I'll tell you what's what:

    • Rediscovering our favorite about:config. I wrote above about how to do this.
    • Enter in the line “ Filter" words browser.cache and we see in front of us something like this list:

    • Here we are interested in the parameters browser.cache.memory.enable And
    • The first one, namely browser.cache.memory.enable enables or disables the use of RAM for the purpose of caching the contents of loaded pages, namely images, user interface elements, etc. By setting the value here false You will disable the use of RAM for these purposes, which will reduce its consumption by the browser, but will directly affect performance. On the other hand, you can simply limit this cache by setting the parameter browser.cache.memory.max_entry_size value from the table below:

Where the first column shows how much memory will be allocated for the cache needs, and the second column is the corresponding value that is specified for the parameter browser.cache.memory.max_entry_size. That is, if, for example, you want no more than 64 MB, then set the parameter browser.cache.memory.max_entry_size meaning 4096.

By the way, here you can configure the use of the cache hard drive for the same purposes. The parameters are responsible for this browser.cache.disk.enable And browser.cache.disk.capacity. I have this caching disabled, but there is no RAM in the system 8 GB, and therefore memory caching is enabled and, accordingly, a lot more RAM is allocated for Firefox, because I am a supporter of increased performance. What is more important to you and why, think for yourself. In principle, you can disable both caches.

When finished editing, close the config and restart the browser.

That's all for now with RAM. Let's move on to the settings for the browser's loading speed and its speed in general, because some people complain about the long startup time and its periodic freezing.

Optimizing Firefox loading speed, as well as stability and speed

As a rule, long startup times and excessive slowness/freezing are associated with a weak disk subsystem and an overly bloated (or crookedly tuned) cache. We have already partially configured the cache. (and we will partially configure it), but everything else needs to be picked out. In particular, we will make several useful browser settings that will somewhat speed up its loading and overall operating speed.

To begin with, I recommend speeding up the operation of the disks a little, for which you need to make several settings to optimize them, which I wrote about in the article “A few settings to optimize the operation of the hard drive,” and also do defgramentation.

Next, I personally recommend transferring to disk C:/, namely at its root (i.e. not in one of the subfolders, ala Program Files, but simply). If my memory serves me correctly, then reinstalling the browser is not necessary for this - just use the right mouse button and the command “ Cut- Insert". Create a new shortcut if necessary (old one may not work due to path change), which is done with the same right mouse button and the item “ Create a shortcut". If C:/ is not the fastest drive in the system and there are physically faster ones, then move it there.

Let's move on to the settings. The fact is that when starting, the browser checks too many things, which slows down the loading. So let's remove this. To do this, we launch, open “ Tools- Settings". In the settings window that appears, go to the “ Additional" and subtab " General«.


Here I recommend removing the latter 3 ticks, namely “ Always check on startup if Firefox is the default browser«, « Send crash reports" And " Send performance data«.

On the subtab " Updates» disable checking for updates (this can always be done manually using " Reference- ABOUT-Check for updates«) and search engine plugins, that is, uncheck the appropriate boxes. In general, you can also disable checking for add-on updates, since they are checked every time the browser is updated. Here, think for yourself what is more convenient for you (I have it disabled).

Afterword

Something like that. I hope that your beloved FF after that I began to run faster and eat less.

PS: Article written February 7, 2009. Global update October 22, 2011.

Has your browser become slow? Do crashes and crashes happen often? - a sure sign that Firefox is eating up memory. The utility requires an average of 500 megabytes of RAM, like other browsers. Why is this happening? – a large number of open tabs, a clutter of core plugins and extensions, an old version of the program. If earlier I used flash by default for each open page, now only when necessary - this partially solved the problem with the RAM load, but did not eliminate it.

How to find out how much memory Firefox is using

The optimal “consumption” is 300–600 megabytes. Already at 800, noticeable performance problems begin, and at a gigabyte the utility collapses “For unspecified reasons” and prompts “Submit a crash report.” To find out how much a particular program consumes:

What to do

Why Firefox eats up a lot of memory has already been almost figured out; the jambs of browser developers and certified add-ons have not been mentioned. Yes, exactly those plugins that are officially approved by Mozilla. Everyone's favorite ad killer AdBlock Plus causes serious performance problems not only in Firefox, but also in Google Chrome. Try disabling it if your browser becomes slow. Or:

  • Update Firefox
  • Reboot the program or system.
  • Disable as many extensions and graphics theme as possible.
  • Close tabs if there are more than 20 open.
  • End unnecessary processes in Task Manager.
  • Update your video card drivers.
  • The most expensive solution, but very useful not only for working with the Internet, is expanding RAM.

No comments

This article is intended to help those who are puzzled by the problem of gluttony in the Mozilla Firefox browser. Namely, with regard to its use of a large amount of RAM, which in turn can lead to a heavy load on the disk system and central processor. I would like to note right away that I do not use this browser, but prefer Google Chrome. But frequently asked questions This topic prompted me to write this note. In it I will describe the reasons and list the most popular recommendations for solving the problem. First, let's look at the first thing - the reasons.
Often, memory overuse, as well as processor load, arise due to crooked plugins and bars. There is no need to decorate your browser with frills for all occasions or for the future. Leave only those that you really need, disable unnecessary ones, and don’t forget to update the rest. The latter is especially relevant due to the current frequency of releases of new versions of the Firefox browser.

To identify a problematic plugin, you can disable everything at once. Then enable them one at a time, checking for changes in system resource usage.

But still, the main reason for the overuse of RAM is the function of caching recently opened pages. This is not a mistake or a flaw, it was intended by the developers. A certain number of previously opened pages continue to be stored in RAM until the browser is completely closed. They take up space even when all tabs except the last one are closed. This is done so that the user can access a previously viewed page without the delay of reloading and processing it. It seems useful, but only if you have a modern, powerful computer. Unfortunately, simple configurations make it less and less possible to work comfortably with the latest versions of Firefox. Judge for yourself, today 1 GB of memory used by a browser alone will not surprise anyone, but what should those who have only 1 GB of RAM on board (for the operating system and other programs) do, and a computer is needed only for surfing the Internet, office applications and not upgradable? Such users can be asked to abandon the FireFox cache altogether, following the recommendations below.

First of all, you need to go to the settings page “ about:config” (indicate in the address bar). Confirm your action, if necessary:

and perform the following actions with the settings:

  • Decrease variable value browser.sessionhistory.max_entries from 50 to, for example, 10. This variable is responsible for the number of pages in the cache that can be returned to without rereading them from the Internet (in each tab);
  • Install browser.sessionhistory.max_total_viewers to 0. This variable is responsible for the number of already “parsed” (processed) pages from the previous paragraph stored in memory. If the required page is not in memory, it is read from the disk cache and processed again. Since this action is rarely performed, there is no point in keeping such pages in memory;
  • Create a new type variable bool, config.trim_on_minimize, and set it to true. Firefox will then free up unused memory when minimizing the window;
  • Install network.prefetch-next to false. In this case, Firefox will never read in advance pages that have links on the current page.

Restart the browser.



THE BELL

There are those who read this news before you.
Subscribe to receive fresh articles.
Email
Name
Surname
How do you want to read The Bell?
No spam