Firefox increases cpu usage over time
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: hpj, Unassigned)
Details
Attachments
(4 files)
| Reporter | ||
Comment 1•6 years ago
|
||
| Reporter | ||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
| Reporter | ||
Comment 5•6 years ago
|
||
| Reporter | ||
Comment 8•6 years ago
|
||
Here we go.
I can confirm this behaviour with 65.0 and 65.0.1 as well.
I'm sorry, but creating a new profile isn't a feasible option, since it involves creating many windows with many tabs in a certain order, and let it run for days. I cannot stop using FF in the usual way for that long. I depend on it too much!
Again. Sorry. Not an option.
Here's a workaround, that somewhat solves the problem temporarily, but has a downside as well.
In attachment Screenshot_20190217_firefox65.0.1_after_1d.png, you see the FF processes after one day. As you can see, the -childIO 8,9 and 10 are approaching 100%, saturating one core. I can mitigate the issue by terminating these processes.
FF will show the "one or more tabs crashed" window, and presents a button, which will rerun those again. Subsequent FF behaviour is back to normal again.
On a busy day, this procedure needs to be repeated 2-3 times. The lesser the distance from core saturation, the sluggishness increases up to a point, where FF is stalling.
The downside of this procedure is: my only(!) active add-on ADP+ gets into a non-functional state. It doesn't block any adds, nor does it show its configuration correctly.
As noted in https://bugzilla.mozilla.org/show_bug.cgi?id=1510762#c5, rerunning FF is no fun either, since it's unable to restore the session properly. The window positions and content is mixed up, only the tab order is preserved. FF 65 developed a new issue in this area: occasionally it "forgets" the URL of the active tab, and shows the "new tab" page instead.
I bet, the accumulation of CPU is related to some JS code, that piles up some (event) structures (those processes tend to have reserved the most memory as well).
| Reporter | ||
Comment 9•6 years ago
|
||
How can I reopen this bug?
| Reporter | ||
Comment 10•6 years ago
|
||
| Reporter | ||
Updated•6 years ago
|
Comment 11•6 years ago
|
||
Hi @Hans-Peter Jansen, Mention that I don't have openSUSE but I've tested this issue on Ubuntu 16.04 and cannot reproduce it. In my end the CPU range doesn't go over 10 % for 1h/30 min.
Additionally, the problem with restoring is another matter. I guess should remain to your main problem, the one with CPU high range.
Comment 12•6 years ago
|
||
Hi @Mike, can you help us with this issue? Is needed a performance profile recording to see what causes this high percentage of CPU? or other situation from which we figure it out what brings this increasing of CPU?
Thanks.
| Reporter | ||
Comment 13•6 years ago
|
||
Hi @Liviu,
thanks for chiming in.
Yes, this issue should remain dedicated to the high cpu usage. I just wanted to outline, what issues a long time power user of FF may face...
As said, the issue accumulates over time. My FF runs up to 7 days because of https://bugzilla.mozilla.org/show_bug.cgi?id=1510762#c5 and starts miss-behaving with the second day.
It would be nice to be able to show the cpu usage relative to URL, possibly separated in JS, rendering, whatever...
Comment 14•6 years ago
|
||
Hi @Hans-Peter Jansen, until @Mike gives us a hand with that issue you could please capture a performance profile? You can get more info on how to install and use the Cleopatra add-on (that helps you get the performance profile) by going to:
https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Profiling_with_the_Built-in_Profiler
https://perf-html.io/
Thanks.
Comment 15•6 years ago
|
||
Typically, the first step with issues like this, is to eliminate add-ons and customizations as the source of the problem. In the event that it's a preference or add-on that is causing the issue, it allows us to more quickly reproduce and diagnose the issue. In the event that the problem can be reproduced without add-ons or customizations present, then it points to a deeper problem within Firefox itself (or the pages it's visiting), and we can start boxing in the problem from that state.
(In reply to Hans-Peter Jansen from comment #8)
I'm sorry, but creating a new profile isn't a feasible option, since it involves creating many windows with many tabs in a certain order, and let it run for days. I cannot stop using FF in the usual way for that long. I depend on it too much!
Again. Sorry. Not an option.
It's not necessary for you to create a new profile. What we're asking you to do is to use Firefox's Safe Mode to (temporarily, and in your default profile) disable your add-ons and customizations.
You can enter this mode by going to Help > Restart with Add-ons Disabled. Upon restart, a dialog will come up asking if you want to enter Safe Mode (say yes).
Especially for users that depend on a large number of add-ons or customizations, this mode might be a bit uncomfortable and not what you're used to, but it will certainly help us reduce the problem space to something we can try to fix.
| Reporter | ||
Comment 16•6 years ago
|
||
Thanks @Mike for your reply.
Will do actively, but please note, that I effectively drive FF without plugins since I found the workaround of killing the -contentproc processes, which leaves adblock plus dysfunctional behind...
Especially for users that depend on a large number of add-ons or customizations, this mode might be a bit uncomfortable and not what you're used to, but it will certainly help us reduce the problem space to something we can try to fix.
I wouldn't count one a large number, but no problem, I've disabled adblock plus right now, and will follow the given procedure on the next run...
Updated•6 years ago
|
| Reporter | ||
Comment 17•6 years ago
|
||
Liviu, Mike,
I'm going to close this issue now.
After migrating to openSUSE Tumbleweed, this issue dissolved.
FF is able to survive for a couple of days, and doesn't show any of the described problems, even with ABP enabled. Obviously, the much improved user space (glibc and other basic libraries) was the game changer here (because I provided current builds of rust, node, gcc for FF on the old system).
I'm very sorry to have wasted our time.
FF shines bright again, if only https://bugzilla.mozilla.org/show_bug.cgi?id=372650#c45 wouldn't spoil the show on FF restart/system reboot.
Description
•