My (core duo 2Ghz) CPU consumption gets very high (70-95%) when firefox is loading pages. Is this normal ?
-
wearetheborg Notebook Virtuoso
-
John Ratsey Moderately inquisitive Super Moderator
That seems high. I would try reinstallation of Firefox.
Flash can give the CPU some work so you might want to load Flashblock.
John -
ViciousXUSMC Master Viking NBR Reviewer
sounds like the work of spyware or a virus... id try a new install of firefox first and go from there like John said.
-
Since you're posting in the Linux forum, I'm assuming you're running some Linux distro, correct? If that's the case, I doubt that it's a spyware/virus issue. But, it's definitely not normal to have that much CPU usage for just loading web pages (I'm also assuming you just mean regular web pages, not like, 20 tabs, all loading really flash heavy pages).
Since this is a Linux question and not Windows, I doubt that reinstalling Firefox (unless you replace config files, but I'll get to that in a minute) will actually do anything useful. As for the config files, better to just manually back them up and reload the defaults.
Okay, so, for starters, which distro are you using? Honestly, it shouldn't really matter, but it's nice to know because sometimes distro specific problems do crop up.
I guess, the first thing is to make sure that it is indeed the Firefox that's taking up all your resources, so open up a terminal and run "top" (views running processes), then load a couple web pages and check to make sure that it's the Firefox process that's using the CPU (it's "firefox-bin" on my computer).
Another thing you can try is backing up your Firefox settings to see if that's the problem and reloading the default ones.
You can do this with the following command:
Code:$ mv ~/.mozilla/firefox ~/.mozilla/firefox.bak
If you find that that doesn't make a difference, you can always restore your old profile with the following commands:
Code:$ rm -r ~/.mozilla/firefox/ $ mv ~/.mozilla/firefox.bak ~/.mozilla/firefox
-
Check out the official Firefox forum: http://forums.mozillazine.org/viewtopic.php?t=477283
Also search the forum with "high CPU usage" or something similar; someone has probably had this problem before. -
wearetheborg Notebook Virtuoso
I'll check it out. Another sympto is that say a page loads, then when I scroll down for the first time, I again get very high cpu utilisation. Only for the first time, when I scroll back up and back down again, things are fine.
I should mention I usually have a lot of tabs open in my firefox session, and firefox gobbles up memory.
Eg, top gives 733m-Virtual, 572m-Res, and 26m- Shared.
I have 2GB of ram.
My OS is Suse SLED-10 -
Does it still exhibit the same problems when you have only a handful of tabs open? (< 5)
Even with 2GB, could you be maxing out your ram? Does top show you using your swap space? -
wearetheborg Notebook Virtuoso
Yes, even with one tab open, the cpu utilisation jumps up for a second or two when the page is loading (30-50%
.
Though I could not replicate the behavior of cpu utilisation jumping when I was scrolling the page for the first time when only one tab was open.
I've observed the same behavior on Mandriva -
Maybe any FF plugins could be the cause.
-
Firefox always acted weird when I had IPv6 enabled. Blacklist it in about:config and see if it works any faster.
-
Yep, some plugins can really mess things up.
I had a proxy switching plugin (can't remember the name) that I used until a few weeks ago. I got rid of it when I noticed that creating a new firefox window (yes, window, not tab) was very slow: the CPU would go to 100% for a few seconds and then the new window would appear. I found that plugin was the culprit. I removed it and everything was fine again. I replaced it with FoxyProxy which works fine.
One thing you can do to help diagnose the problem is to run:
$ firefox -safe-mode
It will start firefox without loading plugins, extensions, etc. You can then check whether you still have the problem. Another thing which may be useful for testing is to run it as if you were another user. If you run
$ firefox -ProfileManager
Firefox will start with a profile manager window. You can then create a brand new profile and use that profile to start firefox. You can then check whether you still have that problem or not.
Edit: Actually t12ek's suggestion achieves the same thing as -ProfileManager. -
What graphics card do you have? It's possible that you aren't using the proper drivers, which means the CPU is forced to do a lot more work to render the pages. If you have an nVidia/ATi card, try using the official binary drivers and see if that improves things.
-
wearetheborg Notebook Virtuoso
I have a Nvidia quadro fx 1500m card, but I had the same problem on other computers too..
I tried firefox in safe mode, with a new profile, with ony one tab, and while the problem was less pronounced, it still existed. CPU usage by firefox would still hit upto 50% when a page was loading.
I'm surprised you guys dont see this. -
1. Are you using top for CPU usage? (One of your previous messages suggests that you do.)
2. How long does that usage stay up when you load a page?
3. Does it affect the responsiveness of the GUI?
4. It would be helpful to know what drivers you are using for X. Find the section called "Device" in /etc/X11/xorg.conf and tell us what it says. In my conf file, it looks like this:
Code:Section "Device" Identifier "ATI Technologies Inc Radeon R250 [Mobility FireGL 9000] " Driver "ati" BusID "PCI:1:0:0" EndSection
-
wearetheborg Notebook Virtuoso
1. I use top
2. CPU usage is high for 1-2 secs.
3. Yes, but not a whole lot. What does sometimes freeze is when firefox is opening a new tab, the current tab freezes, or becomes very sluggish, when I try to do scroll, or type something in the reply box.
Code:Section "Device" BoardName "Quadro FX 1500M" BusID "1:0:0" Driver "nvidia" Identifier "Device[0]" Screen 0 VendorName "NVIDIA" EndSection
CPU utilisation very high when firefox is loading page ?
Discussion in 'Linux Compatibility and Software' started by wearetheborg, Jul 29, 2007.