Closed Bug 1408698 Opened 8 years ago Closed 8 years ago

firefox takes a lot of CPU after a few days running

Categories

(Core :: General, defect)

52 Branch
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE
Tracking Status
firefox-esr52 --- wontfix

People

(Reporter: bugzzzz, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 Build ID: 20170808115619 Steps to reproduce: Run a few windows for a few days. Actual results: The CPU consumption became high with one window opened (the session restore window) : $ top top - 21:13:58 up 16 days, 7:39, 15 users, load average: 1,94, 2,30, 2,20 Tasks: 391 total, 1 running, 390 sleeping, 0 stopped, 0 zombie %Cpu(s): 24,5 us, 9,0 sy, 0,0 ni, 66,5 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st KiB Mem: 8176336 total, 6763156 used, 1413180 free, 110196 buffers KiB Swap: 5213056 total, 2344700 used, 2868356 free. 2294672 cached Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3980 me 20 0 3921020 991196 113716 S 141,8 12,1 896:04.72 firefox 2280 root 20 0 557592 304952 185632 S 1,0 3,7 443:22.30 X 3343 me 20 0 21460 2172 1160 S 0,7 0,0 31:42.26 gam_server 3740 me 20 0 3484500 274720 90348 S 0,7 3,4 374:26.25 plasma-desktop 4214 me 20 0 620400 57640 0 S 0,7 0,7 45:22.76 mysqld 7086 me 20 0 28468 3016 2328 R 0,7 0,0 0:00.09 top 14643 me 20 0 624368 56548 27744 S 0,7 0,7 66:48.87 konsole 6513 root 20 0 0 0 0 S 0,3 0,0 0:00.12 kworker/u12:4 12937 root 20 0 315380 652 0 S 0,3 0,0 12:00.83 packagekitd 22215 me 20 0 38956 3596 2332 S 0,3 0,0 4:23.25 ssh 26425 me 20 0 383888 22656 16048 S 0,3 0,3 1:43.41 kdesu 1 root 20 0 181260 4116 1948 S 0,0 0,1 0:16.46 systemd 2 root 20 0 0 0 0 S 0,0 0,0 0:00.54 kthreadd 3 root 20 0 0 0 0 S 0,0 0,0 2:34.71 ksoftirqd/0 After killing firefox and restarting it on the bugzilla window, I get the following CPU consumption : $ top top - 21:32:30 up 16 days, 7:58, 15 users, load average: 0,37, 0,71, 1,18 Tasks: 391 total, 1 running, 390 sleeping, 0 stopped, 0 zombie %Cpu(s): 4,5 us, 1,0 sy, 0,0 ni, 94,4 id, 0,1 wa, 0,0 hi, 0,0 si, 0,0 st KiB Mem: 8176336 total, 6581856 used, 1594480 free, 114852 buffers KiB Swap: 5213056 total, 2344608 used, 2868448 free. 2379848 cached Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 7269 me 20 0 2893268 760812 156752 S 13,9 9,3 8:24.14 firefox 2280 root 20 0 583376 329740 210420 S 3,3 4,0 444:11.54 X 4214 me 20 0 620400 57580 0 S 1,3 0,7 45:24.67 mysqld 14643 me 20 0 624992 57176 28112 S 1,3 0,7 66:54.93 konsole 7865 me 20 0 28468 3160 2472 R 0,7 0,0 0:00.26 top Expected results: No CPU consumption increase after a few hours/days
Can you use the gecko profiler to get some profiling information to figure out where we're spending time? ( https://perf-html.io/ - install the add-on, start capturing when the browser is struggling to keep up and/or using a lot of CPU, and eventually 'share' the profile to create a link that you can copy-paste into a comment here) I have a suspicion about where we'll need to troubleshoot next, but the profile when high CPU is occurring will help confirm that the next bit of information is needed to diagnose this. Also, what Linux distro are you using?
Flags: needinfo?(bugzzzz)
I'm using mageia-5.1 : $ uname -a Linux station 4.4.13-desktop-1.mga5 #1 SMP Fri Jun 10 12:16:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux I commonly use about 30 windows with 2 to 5 tabs opened in each at the same time. In this configuration, CPU consumption increases after a few days and firefox eventually crash. But recently, I had the same result with just a few windows. I have installed the add-on and will tell you more when the problem happens.
Flags: needinfo?(bugzzzz)
Just checking in to see if the problem has recurred.
Flags: needinfo?(bugzzzz)
I couldn't observe a new CPU consumption increase because I have regular crashs after just one day of running time and with just a few windows opened.
Flags: needinfo?(bugzzzz)
(In reply to bugzzzz from comment #4) > I couldn't observe a new CPU consumption increase because I have regular > crashs after just one day of running time and with just a few windows opened. Have you tried a profile refresh? https://support.mozilla.org/en-US/kb/refresh-firefox-reset-add-ons-and-settings Based on your description of the problem having gotten worse lately while still on ESR52, this sounds like it might be the culprit.
Closing this issue for now. If you are able to try refreshing your settings, and still have issues, please reopen.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
I performed a profile refresh and it doesn't change anything.
You need to log in before you can comment on or make changes to this bug.