[OpenLayers-Dev] Memory leaks

Schuyler Erle sderle at metacarta.com
Tue Apr 10 11:18:30 EDT 2007

On Tue, 2007-04-10 at 10:24 -0400, Stephen Woodbridge wrote:
> Wei Yang Ng wrote:
> > Hi,
> >    I am a ka-maps user. Recently, I noticed memory leaks (I used Process 
> > Explorer for windows) in FF2 while navigating maps in my ka-map 
> > application. I decided to conduct the same test with Google maps and 
> > found similar results. The memory does get released if refresh the page, 
> > however there is some evidence of leaks caused by circular references in 
> > Javascript as not all page memory is released as the page refreshes. I 
> > then decided to conduct the same test with the OpenLayers demo found in 
> > the main page of the website. Again, I noticed the same problem. 
> > Example, FF2's memory usage is 66 mb when i first view the map. As I 
> > zoom in and out, the usage keeps jumping till I had about 200 mb of 
> > memory consumed by FF2. Has anyone noticed such a problem?
> Yes, I have noticed something similar. I periodically have to kill FF2 
> and restart it to regain memory when I have browser open running OL.

Are you running the 2.4 release candidate? We've done a ton of work on
fixing memory leaks quite recently.


More information about the Dev mailing list