[OpenLayers-Dev] Memory leaks

Stephen Woodbridge woodbri at swoodbridge.com
Tue Apr 10 10:24:41 EDT 2007


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.

-Steve



More information about the Dev mailing list