View Single Post
Old 02-11-2009, 06:51 AM  
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
Firefox get slow fast? Chew up insane amounts of memory?

Since getting into developing extensions, I've been keeping closer tabs on them and found that many of them are causing big problems.

If you suspect big memory leaks, if your browser is sucking up 500m+ memory, try this:

Type in about:config into the address bar and click "I'll be careful, I promise"

Type in Javascript into the Filter and look for these two entries:

javascript.options.showInConsole
javascript.options.strict

Set them both to true and then continue browsing like normal.
This will output the errors that extensions generate.

An example that I've found is the google toolbar. For what ever reason, it was firing off an error that fired off another error in the very core of Firefox itself. This particular combination set off an infinite loop on itself generating errors as quickly as the computer could process them.

Firefox would ramp up to 700-800m of memory within an hour and begin to cause problems for the whole machine so long as it was open.

So if you have some extensions installed and find your memory problems have gotten out of hand, you may need to do some house cleaning. The extensions are only nice so long as they're not bringing down the entire computer with it.
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote