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);
}