Debugging high (near total) CPU/memory usage of "Web Content" application on Linux Mint

63,613

Solution 1

this is a common problem causing nothing but the battery wasted energy decreasing unplugged operation time significantly.

the cause of the problem appears to be very simple: you may have too many tabs opened each having bulky and useless endless loops running java-scripts.

those java-scripts are usually not origin of the web site you are working with but an ad based 3rd parties from somewhere else trying to collect some info from your FFox session or just to display switching ads on a side.

the simple (but not unique) solution would be to install NoScript plugin - causing immediate effect - Web Content process CPU consumtion will decrease almost to 0%.

so keep NoScript installed on all your FFox'es and keep track on what domain you are actually allowing scripts from to be executed very carefully.

it's a good practice to allow only original domain scripts for permanent (a choice "allow") to have the web site you are visiting to display correctly all the useful information, but to keep side or extra domains only in "forbid" or "temporary allow" mode so the next FFox load will keep all these unwelcome scripts banned again.

Solution 2

I just had this problem with the "new" Firefox. The process was consuming 2.4 GB on a 4 GB machine with only one tab open. Disabling the Ghostery plugin solved the issue for me.

Solution 3

I had the same problem and tried to close one by one the opened tabs, to locate the one that relies heavily on Web Content process. It turned out that ebay utilize about 20-30% of my cpu, depending on your machine, this percentage can potentially be lower or higher.

Solution 4

I looks like you have some problematic Firefox plugins or extension installed? Try disabling any/all extensions and see if that resolves the issue.

Edit*: Check this link for further info - looks to be flash related: https://forums.linuxmint.com/viewtopic.php?t=231186

Share:
63,613

Related videos on Youtube

J. Taylor
Author by

J. Taylor

Gardener, programmer, forest critter

Updated on September 18, 2022

Comments

  • J. Taylor
    J. Taylor almost 2 years

    I have Linux Mint installed on 3 computers at home, and all of them are almost unusably slow whenever Firefox is open. Here is the output from top:

    top output while running Web Content

    As you can see, "Web Content" and Firefox are collectively using up nearly all of my CPU, and more than 50% (4GB+) of system memory.

    I have never had this problem in the past with Debian or Ubuntu, but it is occuring on every computer I've installed Mint on so far. This extremely high (near total) CPU/memory usage is constant, and is rendering my computer unusable.

    Does anyone have ideas about how to fix this? If there is no fix, how can I keep this "Web Content" application from running at all?

    • Admin
      Admin over 7 years
      This happen to me with lubuntu 15 too.
    • Admin
      Admin over 7 years
      It happens to me with Ubuntu 16.04. I don't think it is related to Mint or any other distro.
    • Admin
      Admin almost 7 years
      1) I use firefox nightly, updated regularly, 2) and I turn off the e10s, because I think it is a catastrophal move. --> I never had any problem, and I have a very fast, very small firefox. I simply don't have WebContent processes and similar crap.
    • Admin
      Admin almost 6 years
      What is e10s? Web search turns up nothing seemingly related. there is a Wikipedia page for it but redirects to the main Firefox page for Features, but no where is e10s listed in the Firefox wikipedia page.
    • Admin
      Admin over 5 years
      @bgoodr e10s == Electrolysis aka Multiprocess Firefox. support.mozilla.org/en-US/kb/…
    • Admin
      Admin about 5 years
      I'm getting this on Ubuntu 18 where the "Web Content" processes are not so high but around 10%, 14% or less of CPU but they are decimating the responsiveness of the mouse and keyboard, even when there's only one tab open. I've found no answers so I am contemplating various progressive clean up actions and may just re-install a totally new firefox and profiles.
    • Admin
      Admin over 3 years
      I filed an enhancement request: bugzilla.mozilla.org/show_bug.cgi?id=1685453
  • Xi'an
    Xi'an over 7 years
    Sadly this link does not make sense for me.
  • J. Taylor
    J. Taylor about 7 years
    It doesn't help. This happens even with the default install.
  • Hexdump
    Hexdump about 7 years
    That sounds like a rather reasonable explanation.
  • XavierStuvw
    XavierStuvw over 6 years
    This is a good explanation for my case: I had NoScript and Ghostery up and running. Disabling Ghostery has brought the CPU usage of Web Content applications to a reasonable few percent. Hence, in my case, NoScript is useful (see post below) but could not guard against Ghostery. I use Ubuntu 14.04 LTS; the issue was felt more in a laptop than in a desktop with same Firefox and add-ons.
  • XavierStuvw
    XavierStuvw over 6 years
    Upvoted, but in my case Ghostery was the add-on that appeared to engage the CPU while NoScript was also working. Apparently, NoScript had no control on the WebContent activities related to the functioning of Ghostery (arguably because they come from inside the system). My experience is in line with this other answer
  • Oleg Kokorin
    Oleg Kokorin over 6 years
    Ghostery is not a tool to have. it was never suggested one.
  • Herman Jaramillo
    Herman Jaramillo about 4 years
    @Oleg Kokorin : How to I install NoScript Plugin ?
  • Pawel Debski
    Pawel Debski over 3 years
    That's my problem too. Ubuntu 20. I need (like) however to have many tabs open. Can I configure Firefox somehow to stop Java Script in tabs I am not currently looking at?
  • U. Windl
    U. Windl over 3 years
    I had dozens of TABs open, Noscript and Ghostery running, but disabling Ghostery only had a short effect on the CPU usage of "Web Content".