I've used sIEVE to monitor when each interval tick, and found these elements is added to DOM when the marker pop up.
It seems these elements wouldn't freed. http://vincentlilive.com/realtimemap.html (1 reference) nextSibling [null object] onresizeend onrowenter aria-haspopup childNodes [object] ondragleave canHaveHTML 0 onbeforepaste ondragover onbeforecopy aria-disabled onpage recordNumber previousSibling [null object] nodeName DIV onbeforeactivate accessKey currentStyle [object] scrollLeft 0 onbeforeeditfocus oncontrolselect aria-hidden onblur hideFocus 0 clientHeight 0 style [object] onbeforedeactivate dir aria-expanded onkeydown nodeType 1 ondragstart onscroll onpropertychange ondragenter id aria-level 0 onrowsinserted scopeName HTML lang onmouseup aria-busy oncontextmenu language scrollTop 0 offsetWidth 0 onbeforeupdate onreadystatechange onmouseenter filters (unknown) onresize isContentEditable 0 aria-checked aria-readonly oncopy onselectstart scrollHeight 0 onmove ondragend onrowexit lastChild [object] aria-secret onactivate canHaveChildren -1 onfocus onfocusin isMultiLine -1 onmouseover offsetTop -1 oncut parentNode [object] tagName DIV className onmousemove title role behaviorUrns [object] onfocusout onfilterchange disabled 0 parentTextEdit [null object] ownerDocument [object] offsetParent [object] aria-posinset 0 ondrop ondblclick onrowsdelete tabIndex 0 onkeypress aria-relevant onlosecapture innerText Vehicle No: vehicle 1 Date: 10/01/10 Time: 10:00:00 Longitude: 100.1001 Latitude: 3.1 Speed: 10km/hr Vehicle Engine: on Status: Within speed limit aria-live parentElement [object] ondeactivate aria-labelledby aria-pressed children [object] ondatasetchanged ondataavailable aria-invalid onafterupdate nodeValue onmousewheel onkeyup readyState complete onmovestart aria-valuenow aria-selected onmouseout aria-owns aria-valuemax onmoveend contentEditable inherit document [object] firstChild [object] sourceIndex 1 outerText Vehicle No: vehicle 1 Date: 10/01/10 Time: 10:00:00 Longitude: 100.1001 Latitude: 3.1 Speed: 10km/hr Vehicle Engine: on Status: Within speed limit isTextEdit 0 isDisabled 0 oncellchange runtimeStyle [object] scrollWidth 0 aria-valuemin onlayoutcomplete onhelp attributes [object] offsetHeight 0 onerrorupdate onmousedown clientTop 0 aria-setsize 0 clientWidth 0 onpaste tagUrn onmouseleave onclick outerHTML <DIV __sIEve_hookedNode="true" imageFetcherOpts="null" nn="0" pB="null"><P style="TEXT-ALIGN: left; PADDING-BOTTOM: 5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; PADDING-TOP: 5px" __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Vehicle No: </B>vehicle 1<BR __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Date: </B>10/01/10<BR __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Time: </B>10:00:00<BR __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Longitude: </B>100.1001<BR __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Latitude: </B>3.1<BR __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Speed: </B>10km/hr<BR __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Vehicle Engine: </B>on<BR __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Status: </B>Within speed limit<BR __sIEve_hookedNode="true" imageFetcherOpts="null"></P></DIV> ondrag aria-controls onresizestart aria-flowto ondatasetcomplete aria-required clientLeft 0 aria-describedby all [object] onbeforecut innerHTML <P style="TEXT-ALIGN: left; PADDING-BOTTOM: 5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; PADDING-TOP: 5px" __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Vehicle No: </B>vehicle 1<BR __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Date: </B>10/01/10<BR __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Time: </B>10:00:00<BR __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Longitude: </B>100.1001<BR __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Latitude: </B>3.1<BR __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Speed: </B>10km/hr<BR __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Vehicle Engine: </B>on<BR __sIEve_hookedNode="true" imageFetcherOpts="null"><B __sIEve_hookedNode="true" imageFetcherOpts="null">Status: </B>Within speed limit<BR __sIEve_hookedNode="true" imageFetcherOpts="null"></P> aria-activedescendant aria-multiselectable offsetLeft -1 align dataSrc dataFld noWrap 0 dataFormatAs cloneNode [object] imageFetcherOpts nn 0 pB On Tue, May 4, 2010 at 5:44 PM, meng han vincent li <[email protected]>wrote: > Hi, sorry bout posting the code. > > This is the url to my page. > http://www.vincentlilive.com/Realtimemap.html > > I try use the setLatLng() to reposition the marker instead of clear marker > and re-add. But it seems like the memory usage still goes up for each > interval tick. It goes up by around 40-50kb per second. > > Issit something to do with the openInfoWindowHTML because if the marker > doesnt show the pop up, the memory usage remain constant? > > On Tue, May 4, 2010 at 4:32 PM, [email protected] <[email protected] > > wrote: > >> On May 3, 11:22 pm, Vincent <[email protected]> wrote: >> > Hi All, >> > >> > I have a program which show the coordinates of vehicle at an interval >> > of 1seconds. The vehicle is display as a marker in the map. When >> > clicked, a pop up occurred, it will show the properties of the >> > vehicle. When the next interval tick, the existing marker on the map >> > will be remove and re-add to the map with different position. The pop- >> > up will be remained open for the next interval until the pop up is >> > manually closed. >> > >> > The problem i'm having now is when the marker is clicked and pop-up, >> > the memory usage keep increasing for every seconds. >> > >> > When i measure the memory usage and memory leak with sIEve, there's no >> > memory leak, but the memory usage keep increasing as well as the inUse >> > (DOM object created). >> > >> > Anyone know how to release the DOM of the openInfoWindowHtml ? i try >> > to use the marker.closeInfoWindow() and use the GEvent.removeListener >> > to deregister the marker click event listener, and assign related >> > object to null but it seems not working. >> > >> > Here is my code. >> > >> >> Here are the posting guidelines... >> >> http://groups.google.com/group/google-maps-api/web/suggested-posting-guidelines >> >> http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical >> >> Have you tried moving the existing marker rather than removing and >> adding a new one? >> >> >> http://code.google.com/apis/maps/documentation/reference.html#GMarker.setLatLng >> >> -- Larry >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Maps API" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<google-maps-api%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-maps-api?hl=en. >> >> > -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
