Firefox Slow Performance

I have to say, firefox on ubuntu's performance is attrocious. Very quickly it gets into 100% cpu use (thank god I have multiple cores) and hundreds of megs of ram. Even closing tabs does not help the issue (unless google.com uses supreme amounts of javascript).

On the same machine chromium browser runs lightning smooth. I tried swiftfox, nothing useful there. Is this a common problem? Only recent (past 3.6) versions have even been able to scroll rather smoothly vs choppy performance when using the scroll bar on pages. The performance is getting close to running firefox on a windows xp virtual box vm.

Edit:

OS:

Kubuntu 9.10. Installed Gnome packages for Ubuntu and use those. Upgraded to 10.04.

64bit

Nvidia Proprietary Video Drivers using the Restricted Driver tool.

Hardware:

Core 2 Quad

4gb DDR2 667 ram

7200rpm hdd

Nvidia GeForce 8800

Also note for everyone responding:

The default settings work damn well in windows on the same machine. The performance in Linux is what sucks.


Solution 1:

There's a possibility that the sqlite database that Firefox uses becomes too fragmented and reading that could grind the hard drive for a minute or two (especially if you like me have hundreds of bookmarks and never delete history)

The solution to this is the Vacuum Places Improved addon (link text). It defragments your sqlite database, and the startup performance is markedly improved (at least for me it did). Maybe that will work for you.

Solution 2:

I can't replicate the issues you're detailing - this seems very odd to me (and I'm speaking on the level of testing on multiple machines. This likely may be something particular with your setup.

Here are a few things that can contribute to poorer performance on a machine:

  • Clean Install v Multiple Upgrades: I had a similar issue on a workstation that had been upgraded through the years from 5.10 to 9.04 the desktop would randomly restart at odd intervals with no warning - and no log entries. I ended up doing a clean install and the issue went away. Not the best scenario where Troubleshooting triumphed but an example of how older configurations can cause weird issues.
  • Hardware: Far less likely - but it may just be an issue with that Firefox release and your setup (drivers, configuration, etc) might be conflicting - which would explain why Swiftfox (a Firefox derivative aimed at increasing performance of the Mozilla tool for Linux) is also responding poorly.

I would search for people exhibiting similar issues with Firefox on setups similar to yours ( You didn't provide anything so I can't really help you further ) but it may be a configuration, compilation issue.