Memory Leak?
Posted: Wed Jul 22, 2009 4:37 pm
I've been noticing lately that Firefox 3.5.1 seems to be using more and more memory the longer I have it open. This is the normal sign of a memory leak so I decided to install the Leak Monitor Extension to see if I could track down what was causing it.
The first thing I noticed is that it seemed like memory was being leaked every time I went to a new browser page. Closing windows was even worse. I disabled all my add-on and the problem went away (not entirely, but for the most part yes) so I started re-enabling them one at a time. When I enabled Noscript I started getting the "New Leak Alert" windows popping up when closing window, browsing to new sites and the like.
The vast majority of the time there is a "Reclaimed Leak" popup for each "leak alert" popup, indicated that the garbage collector managed to reclaim the memory, but it took it longer than it should have.
I once asked the author of Leak Monitor about these leak then reclaim alerts back in early 2008 and he said that "these alerts are a sign of a bug (probably in the Core) that we're taking multiple cycles of garbage collection to clean things up. With the cycle collector, it should only take one cycle. So we should really make these go away by fixing the underlying bugs."
Steps to reproduce:
1. Start browser and open a bunch of windows. The browser should have some kind of home page (preferably with javascript) so the windows aren't all blank.
2. Just start closing the newly opened windows.
Note I have other extensions leak a lot worse than NoScript or cause the leaks from Noscript to never be reclaimed, but I figured I'd post here since NoScript is at least temporarily leaking objects.
The first thing I noticed is that it seemed like memory was being leaked every time I went to a new browser page. Closing windows was even worse. I disabled all my add-on and the problem went away (not entirely, but for the most part yes) so I started re-enabling them one at a time. When I enabled Noscript I started getting the "New Leak Alert" windows popping up when closing window, browsing to new sites and the like.
The vast majority of the time there is a "Reclaimed Leak" popup for each "leak alert" popup, indicated that the garbage collector managed to reclaim the memory, but it took it longer than it should have.
I once asked the author of Leak Monitor about these leak then reclaim alerts back in early 2008 and he said that "these alerts are a sign of a bug (probably in the Core) that we're taking multiple cycles of garbage collection to clean things up. With the cycle collector, it should only take one cycle. So we should really make these go away by fixing the underlying bugs."
Steps to reproduce:
1. Start browser and open a bunch of windows. The browser should have some kind of home page (preferably with javascript) so the windows aren't all blank.
2. Just start closing the newly opened windows.
Note I have other extensions leak a lot worse than NoScript or cause the leaks from Noscript to never be reclaimed, but I figured I'd post here since NoScript is at least temporarily leaking objects.