Select to view content in your preferred language

client memory

669
1
01-22-2012 06:52 PM
DavidChon
Emerging Contributor
Has anyone profiled memory usage with the Flex API? I did a simple test by running an app that loads a relatively small extent from a local Tileserver layer. I'm seeing a footprint of almost 400 MB of RAM when I run this in IE. Is this expected? IE with a blank page takes 22 MB of RAM. Is there some way to manage the memory of the map API so it doesn't grow too large?

(component code)
<esri:Map id="myMap"
     panDuration="0"
     wrapAround180="true"
     logoVisible="false">
</esri:Map>

(AS code)

private function loadLayer(url:String, id:String):void{
     var tileLayer:ArcGISTiledMapServiceLayer=new ArcGISTiledMapServiceLayer(url);
     tileLayer.id=id;
     myMap.addLayer(tileLayer);
}
Tags (2)
0 Kudos
1 Reply
IvanBespalov
Frequent Contributor
0 Kudos