It seems that no matter what I do, Firefox refuses to cooperate...
After using sites like Facebook, and my own sites, that are powered by AJAX (though mine uses iframes instead) - basically any site where you don't actually load any new pages over a long time, but there's plenty of JavaScript in the background - I have noticed the following average results:
Average RAM usage after at least 4 hours of activity on sites like Facebook (1 tab):
- Chrome: 30Mb
- IE9: 25Mb
- Firefox: 650Mb
My friend tells me this is because of Windows messing up with Firefox's garbage collection. But I think that's just him being a Linux+Firefox fanboy...
Can anyone tell me what causes such massive memory leaks just by running JavaScript over an extended period of time? Is there anything that can be done to prevent this?