LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-13-2021, 08:28 PM   #1
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,834

Rep: Reputation: 108Reputation: 108
Firefox (Web Content) eats up huge memory


Hya

Problem Firefox (Web Content) eats up huge memory, on Debian (testing, AMD64).

Question Does anybody run into same situation? How to troubleshoot?

Troubleshooting So far, I have not found what triggers this situation. Killing "Web Content" crashes some open tab, but inconsistent. I have several Debian's around. It looks like only one of them is affected.

With web search, I have found several sites, which are several years old. mozilla site says "update firefox". StackExchange site explains what goes on, and use noScript plugIn. The former is of not much help, the latter works with side effect, -Javascript does not work!- so not practical.

I am wondering if anybody else runs into same situation. And can anybody direct me to next step?

cheers
 
Old 04-13-2021, 08:47 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,361
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
What particularly do you mean by "web content." For example, is it cookies, history, cached data, or something else?

Or are you perhaps referring to the "web content" item in top (or a similar application), as referenced in this discussion on the Ubuntu forums? Given the large amount of scripting on web pages, the presence of video and audio pop-ups, etc., web pages can use a lot of RAM to display, especially if you have a number of them open. In addition, per the link above, certain Firefox add-ons might contribute to RAM usage.
 
Old 04-13-2021, 09:01 PM   #3
dallas_cowboys
Member
 
Registered: Apr 2021
Posts: 33

Rep: Reputation: Disabled
mine says 82g virtual memory .. what up with that
 
Old 04-13-2021, 09:05 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,361
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
Just for grins and giggles, here's mine:

Code:
PID      USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND  
(snip)
2865718 [username]  20   0 2820408 227640 111276 S   0.6   1.4  56:05.79 Web Content
(snip)
I have five tabs open: three for my website, one for my hosting provider (not currently logged in), LQ, and the Ubuntu link I cited above.
 
Old 04-13-2021, 11:02 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Web content is web content, I've seen reports just opening one bloated web page eating up 400 MB of memory. Disabling javascript is practical, you can fine tune your most visited web sites and make them look useful, without floating videos and other annoying content. I keep uMatrix enabled at all times and web sites look almost sane in my browser.
 
Old 04-14-2021, 12:02 AM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,335
Blog Entries: 3

Rep: Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731
Quote:
Originally Posted by kaz2100 View Post
I am wondering if anybody else runs into same situation. And can anybody direct me to next step?
Yes, I run into it often, but even though the rendering engines are poor and inefficient, it has more to do with the javascript infecting what has replaced the modern web. I'm not sure if a tipping point has been crossed and that we have no way to repair the web. It's been noted for years and years. There are some grassroots initiatives here and there to try to reduce or eliminate the bloat. The 512kB club is one.

It's a matter of education and almost no one anywhere is willing to invest in education these days, especially ICT, and especially web design.

The push towards bloat also comes in part from Google/Alphabet and their search engine, along with the droves of posers, frauds, and charlatans pretending to be web developers yet producing only copious amounts of client-side javascript instead of HTML+CSS. Google is big enough to stop that in its tracks through its search engine ranking algorithm, yet it chooses to endorse that crap. Part of the reason for the endorsement is that it pushes people into accepting Google AMP for some temporary, short term gain in exchange for total loss of the Web.

However, that is more of a rant than intended. The bottom line is that about all you can do is take your business to another site and, if possible, let the failed site know why you voted elsewhere with your wallet. The fault is not entirely with your browser but more with what is delivered to it.

You might look at NoScript and be selective and minimal about which scripts are allowed to run.

Last edited by Turbocapitalist; 04-14-2021 at 12:03 AM.
 
Old 04-14-2021, 05:39 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Quote:
Originally Posted by Turbocapitalist View Post
... along with the droves of posers, frauds, and charlatans pretending to be web developers yet producing only copious amounts of client-side javascript instead of HTML+CSS.
C'mon, don't hold back - say what you really think ....
 
Old 04-14-2021, 05:54 AM   #8
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,335
Blog Entries: 3

Rep: Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731
I did hold back quite a bit, and even edited a little.

The point of contention is that the web grew as a commodity. The skills and technologies to create, use, maintain, and extend sites were common and interchangeable. It was also fairly secure from the client perspective, unlike client-side javascripting. Not only are there security, interoperability, accessibility, and usability problems introduced with client-side javascript, you also have the core problem of the site no longer being made from commodity technology. More can be said there, but the gist is that it leads directly to the bloat mentioned in #1 above. The cynic in me says that is just a taste of what webassembly will be.
 
Old 04-19-2021, 04:28 AM   #9
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,834

Original Poster
Rep: Reputation: 108Reputation: 108
Hya

Thanks for replies;

It does not sound like that there is a straightforward solution without side effect(s). Network world is still under development, I guess.

Have a happy Penguin!

cheers
 
Old 04-19-2021, 05:14 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,981

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
firefox will (be able to) kill the system if you want to display a huge text file. No css, javascript, whatever involved, just a simple plain text file.
 
Old 08-02-2021, 05:05 PM   #11
cesarbergara
Member
 
Registered: Feb 2012
Location: Buenos Aires, Argentina
Distribution: Debian, Suse, Mandrake,
Posts: 92

Rep: Reputation: Disabled
Hi. More interesting. But can you summarize the way to solve de memory problem?
Have a nice day.
 
Old 08-03-2021, 12:41 PM   #12
LU344928
Member
 
Registered: Jan 2019
Distribution: Devuan, MX Linux, PCLinuxOS
Posts: 52

Rep: Reputation: Disabled
This memory leak has been around quite a while. A few days ago I was uploading some files to cloud storage while editing text. Not a lot of load you'd think. Then the system would freeze for a second or two. After this happened a few times I went into task manager and it was using a whopping 2.5gb of 4gb. As soon as the upload finished I closed it and used another browser, Falkon.

This was running on a live usb, but still, 2.5gb?
 
Old 08-19-2021, 11:56 PM   #13
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,834

Original Poster
Rep: Reputation: 108Reputation: 108
Hya
It looks like that many penguins run into same situation. For the time being, I go with LU344928, falkon, and see what happens. It looks it is mozilla based and similar interface.
cheers
 
Old 08-20-2021, 04:36 AM   #14
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
Blog Entries: 17

Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642
Quote:
Originally Posted by kaz2100 View Post
explains what goes on, and use noScript plugIn. The former is of not much help, the latter works with side effect, -Javascript does not work!- so not practical.

I am wondering if anybody else runs into same situation. And can anybody direct me to next step?

cheers
Yup, I would expect most people do. Mozilla made grandiose statements years ago about making Firefox more lightweight, and they backed that up with good releases. But since then things have just gotten worse and Firefox is bloated and a resource hog, and Mozilla have changed their stance. They now say "unused resources on a computer is bad, we we must use them even if we don't need them". That's their new policy.

I've always used noscript, and it works very well to limit and accept per domain javascript, so your statement it blocks all javascript is wrong. You can accept per domain and cut useless javascripts. You need to actively maintain your noscript policy!

I've tried many things to tame Firefox, with little success. Even so far as to run it as 32bit in a 32bit virtual machine, but it's so resource intensive that unless you give the virtual machine ALOT of resources it will be laggy and unusable. And that was a VM for just running Firefox. So the middle ground solution seems to be running Firefox in a container. I've not tried that, only partly with resource limited execution and partial sandboxing with Tomoyo LSM. Limiting RAM for Firefox to 2gb didn't seem to help, as it hit that limit rather quickly and still seemed to believe it had access to 8gb.. I blocked most access to /proc and /sys, but it still finds the real memory info somewhere and think it has access to that. This makes it crash rather quickly at 2gb.

Anyways, I had enough of Firefox already. So I switch to Konqueror, and doing the same things there takes about 1/2 of the resources that Firefox uses. In fact, just loading the GUI elements and a blank Firefox page seems to take up as much resources as a Konqueror window with a bunch of stuff going on. I hardly ever reach 2gb with Konqueror, and with the new QT WebEngine it's a very fast and lightweight browser, but still lacking some features (so please send feature requests to KDE!).

Last edited by zeebra; 08-20-2021 at 04:40 AM.
 
1 members found this post helpful.
Old 08-30-2021, 12:33 AM   #15
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,834

Original Poster
Rep: Reputation: 108Reputation: 108
Hya

I am not sure if this is related, however, firefox may not respond to key/mouse input when entire system goes hibernate/resume. It works again if killed by xkill and restore old sessions.

These days, I am trying falkon and Konqueror.
 
1 members found this post helpful.
  


Reply

Tags
debian, firefox, memory_leak



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mozilla (Javascript) eats my CPU and memory dlewan Linux - Software 8 09-10-2020 01:08 PM
Slamd 11 httpd eats all memory yepp Slackware 0 10-09-2006 12:10 PM
evolution eats more and more memory, then collapses jjonas Linux - Software 1 12-31-2005 02:03 PM
Slack10.2 (eats a lot of memory) industris Linux - Software 2 12-15-2005 01:43 PM
Wine eats memory! MylesCLin Linux - Software 3 12-10-2004 08:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration