[OpenLayers-Users] Need help with memory leak in IE

Kris Geusebroek kgeusebroek at xebia.com
Thu Sep 3 04:12:18 EDT 2009


Hi Hendrik,

A few months ago i posted a partial solution to this list.
Original mail is attached.

Hope this helps. If you make any improvements on this solution please let me know I'm still very interested in this topic.

Cheers Kris

-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On Behalf Of Hendrik Nibbrig
Sent: Thursday, September 03, 2009 9:43 AM
To: users at openlayers.org
Subject: [OpenLayers-Users] Need help with memory leak in IE

 
Hi,

My name is Hendrik and I'm currently evaluating OSM with OpenLayers to see if this is the way to go for our company. I have been developing in C++ and Java for the last 5 years to please go easy on me with Javascript as this is new to me. 

Our application will be displaying a list of vehicles on one side of the screen and then the user can pick one. We will then show the route of the vehicle on the map (e.g. using markers) along with a heap of other information. The Javascript will do a refresh every minute and so the map will be updated every minute as well. The user is free to switch to another vehicle at any time so I need to delete all current markers and then insert the new ones.

The current map system (by Infoware) has lots of issues which is why we want to change to OSM and OpenLayers. Therefore I made a little showcase where I can run some tests. The tests have showed that everything is fine using Firefox but in IE the memory steadily increases. IE7 is tolerable, but IE8 will be unbearable. 
I attached the showcase so you can have a look at the sourcecode. The data is anonym so don't worry about that. The best test to run is "Show whole trip every 5 seconds". This will insert 500 markers every 5 seconds and it will clear the existing markers before. As you can see in the showcase I tried using a vector as well but that wasn't any better. I'm open to any suggestions or even better solutions :)  

Oh btw: Except for the memory problem (which might be an issue of IE itself) I think OpenLayers is a great tool and on the right way.

Sorry if this gets double posted, but the first post was too large and I couldn't cancel it.

Kind regards/Mit freundlichen Grüßen

Hendrik Nibbrig
Systemanalytiker Java




T +49. 3375. 528 30 204

F +49. 3375. 528 30 19

hendrik.nibbrig at enovation-btc.de  ·  www.enovation-btc.de 

 

E.Novation BTC GmbH   

Freiheitstraße 120 B  ·  15745 Wildau

Managing Director: Walther Bernard
Registered Court: Amtsgericht Potsdam HRB 12345



This E-Mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this E-Mail in error) please notify the sender immediately and destroy this email. Any unauthorized copying, disclosure or distribution of the material in this email is strictly forbidden.
-------------- next part --------------
An embedded message was scrubbed...
From: "Kris Geusebroek" <kgeusebroek at xebia.com>
Subject: Re: [OpenLayers-Dev] [OpenLayers-Users] Performance and Memoryusagemeasuring: How To
Date: Thu, 14 May 2009 09:48:45 +0200
Size: 38624
Url: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090903/ac39bc4f/attachment.mht


More information about the Users mailing list