Closed Bug 1130718 Opened 11 years ago Closed 11 years ago

High CPU usage and Firefox not closing properly

Categories

(Firefox :: Untriaged, defect)

35 Branch
x86_64
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bobmulcahy, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0 Build ID: 20150122214805 Steps to reproduce: Under options, I checked "warn me when websites try to redirect." In subsequent days, as usual in the morning I would launch a number of sites at once (14; my usual morning reading) by middle clicking a folder of bookmarks. Actual results: Firefox CPU usage would jump to 30% and stay there, even after I had read and closed all the sites. Then I would close Firefox but in Windows Task Manager, Firefox stayed listed as a task, still running at around 30% CPU. The process had to be ended through Task Manager. When started next time, though, Firefox did not act as though it had closed incorrectly (no, "Well this is embarrassing" message). Expected results: Normally, CPU activity jumps when I launch a bunch of sites at once but then settles down. The only reason I noticed this problem is because my laptop has a noisy fan that only turns on under high load. When I unchecked "warn me when websites try to redirect", it started acting normally again.
It appears I was wrong about "warn me when websites try to redirect." This morning, the undesirable behavior happened again and that option was not checked, so I'm not sure what's up. The only add-in I have running currently is Flashblock. I'll try disabling that and see if it makes a difference.
Today the same behavior happened to me on my work machine, which is running Win 7: I noticed the fan came on, so I popped up the Task Manager and Firefox was running at 40% of the CPU. Closing Firefox didn't remove it from the list of running applications; I had to stop it manually. Will continue to experiment to see if I can isolate the cause.
This morning the same issue (high CPU usage and failure to close the program completely) happened again on my home machine, with Flashblock disabled, so that eliminates that possibility. Not sure what's happening. It happens both on my home and work machines, even when I have all plug-ins disabled. The only thing I ever customize in about:config is the behavior when you click on a link that is supposed to open a new window, but that doesn't appear to be the trigger to set off the behavior. Stumped.
I've been trying launching sites one by one, with Task Manager open, instead of all at once to see if a website is the culprit. This morning, the undesirable behavior started as I was browsing petapixel.com. Could have been a coincidence, of course. Will continue testing.
I'm having the same problem with Firefox 35.0.1 on Fedora 21 x86_64. I have already had to kill Firefox twice today because of this and I have only been browsing Facebook and Flickr. It works fine for so long then BAM 100% on one CPU core. Closing the tab or closing the whole browser Window does nothing, only killing the firefox process frees up the resources. As closing the offending tab doesn't do anything, its really hard to figure what is triggering this although I'd be willing to bet its JavaScript. Then again, its not like Flickr performs well on Firefox at the best of times since they changed to dynamically loading pages.
Just noting that this used to be common, but hasn't happened to me in a while now. Perhaps it was fixed in a new version of Firefox? Or maybe the website that was triggering it has fixed the issue on their end? Will continue to monitor.
Summary: "warn me when websites try to redirect" causes high CPU usage and Firefox not to close properly → High CPU usage and Firefox not closing properly
I spoke too soon in comment 6. I launched a number of websites all at once in tabs this morning, and the CPU stayed hovering around 30% even after they were all completely launched. I read them all, closing them as I went, and then closed the browser, but had to kill it via the Task Manager to make the Firefox process stop using 30% of the CPU.
https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Reporting_a_Performance_Problem might help seeing what's using the CPU. For hangs on shutdown, try waiting 1 minute and if that doesn't help, https://developer.mozilla.org/en-US/docs/How_to_Report_a_Hung_Firefox
Flags: needinfo?(bobmulcahy)
Hasn't crashed in awhile, happily. Still monitoring. Next time it crashes, I will wait a full minute before stopping it manually. Thank you.
Flags: needinfo?(bobmulcahy)
Thanks! Changing back the state of the 'needinfo' flag.
Flags: needinfo?(bobmulcahy)
This hasn't happened for a long time now--many weeks. Either a subsequent update to Firefox fixed it or something on my end changed or the websites that were triggering it changed. Whichever it is, I can no longer reproduce the problem. I'm not sure if that means I should change the status to RESOLVED or leave at UNCONFIRMED.
Thanks for the update! It's great to know the problem is solved for you.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Flags: needinfo?(bobmulcahy)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.