<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AGSGraphicsLayer eat up memory in SDK 10.1.1 in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516171#M4433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks! I'll try it out ..&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, it works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jun 2013 07:41:05 GMT</pubDate>
    <dc:creator>JamesZhang</dc:creator>
    <dc:date>2013-06-24T07:41:05Z</dc:date>
    <item>
      <title>AGSGraphicsLayer eat up memory in SDK 10.1.1</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516166#M4428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I create 10 AGSGraphicsLayers and add to the MapView. It works well in SDK 2.3.2 on the iPad. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Today I upgrade the SDK to 10.1.1. It occupied nearly 600MB when I create 10 AGSGraphicsLayers on App starting. Then it crashed because it received high memory warning.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to solve my problem? How to optimize the 10 layers? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Addition, my app has ARC(auto-reference-couting) on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 03:25:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516166#M4428</guid>
      <dc:creator>JamesZhang</dc:creator>
      <dc:date>2013-06-10T03:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: AGSGraphicsLayer eat up memory in SDK 10.1.1</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516167#M4429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using Update 1 for the 10.1.1 release?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We improved memory management in that update. Please &lt;/SPAN&gt;&lt;A href="http://www.esri.com/apps/products/download/index.cfm?fuseaction=download.main&amp;amp;downloadid=898"&gt;download&lt;/A&gt;&lt;SPAN&gt; it and let us know how it works out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 19:45:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516167#M4429</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2013-06-10T19:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: AGSGraphicsLayer eat up memory in SDK 10.1.1</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516168#M4430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you using Update 1 for the 10.1.1 release?&lt;BR /&gt;We improved memory management in that update. Please &lt;A href="http://www.esri.com/apps/products/download/index.cfm?fuseaction=download.main&amp;amp;downloadid=898"&gt;download&lt;/A&gt; it and let us know how it works out.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I installed Update 1, but I'm still experiencing the low memory warning problem, and my app crashes especially when the user zooms and pans. It uses two ESRI maps and an ArcGIS map service that we created. Help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 19:40:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516168#M4430</guid>
      <dc:creator>DinaLi</dc:creator>
      <dc:date>2013-06-19T19:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: AGSGraphicsLayer eat up memory in SDK 10.1.1</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516169#M4431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you using Update 1 for the 10.1.1 release?&lt;BR /&gt;We improved memory management in that update. Please &lt;A href="http://www.esri.com/apps/products/download/index.cfm?fuseaction=download.main&amp;amp;downloadid=898"&gt;download&lt;/A&gt; it and let us know how it works out.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks! I'll try it out ..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 00:53:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516169#M4431</guid>
      <dc:creator>JamesZhang</dc:creator>
      <dc:date>2013-06-21T00:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: AGSGraphicsLayer eat up memory in SDK 10.1.1</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516170#M4432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dina,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you share with us the services you're using, or a repro test app that'll help us investigate the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can email you a secure link to upload your information to, but I'll need your email address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 19:15:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516170#M4432</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2013-06-21T19:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: AGSGraphicsLayer eat up memory in SDK 10.1.1</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516171#M4433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks! I'll try it out ..&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, it works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 07:41:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516171#M4433</guid>
      <dc:creator>JamesZhang</dc:creator>
      <dc:date>2013-06-24T07:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: AGSGraphicsLayer eat up memory in SDK 10.1.1</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516172#M4434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Dina,&lt;BR /&gt;&lt;BR /&gt;Can you share with us the services you're using, or a repro test app that'll help us investigate the problem?&lt;BR /&gt;I can email you a secure link to upload your information to, but I'll need your email address.&lt;BR /&gt;&lt;BR /&gt;_&lt;BR /&gt;D&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much for offering to assist. The code is available here: &lt;/SPAN&gt;&lt;A href="https://github.com/dinali/SNAPatlas.git"&gt;https://github.com/dinali/SNAPatlas.git&lt;/A&gt;&lt;SPAN&gt;. This is a proof-of-concept app to see if we can display some of our ESRI maps together in a single mobile app. The user can choose different maps. The problem is that the app runs fine on the simulator (all the features work), however, I've tested it on an iTouch (4th generation) and iPad 2 (both running iOS 6+) and I'm getting the didReceiveMemoryWarning exception and then the app crashes. I used the Instruments tool and the app uses a lot of memory. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically, the problem is with the code to change the base map - see the "Change the Map" / MapPickerViewController code. The app crashes after the user changes the map. I need to supply the URL for different maps (not just reset the layers). I thought maybe I could cache the two ESRI maps and only change my dynamic map, but I couldn't figure out how to do that. If I include&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; [self.mapView removeFromSuperview];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in the MainViewController's - viewDidDisappear method, the app will not crash. This raises other problems, however, because the mapView is no longer available for the Layers feature (TOCViewController) that is displayed using presentViewController. I don't know if there's a way to add the mapView back to the superview somewhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to iOS programming, so you'll notice that I've relied heavily on the ESRI samples. Any advice would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 17:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516172#M4434</guid>
      <dc:creator>DinaLi</dc:creator>
      <dc:date>2013-06-28T17:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: AGSGraphicsLayer eat up memory in SDK 10.1.1</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516173#M4435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In taking a look at your code, i noticed that you create a new instance of the MainViewController everytime the user changes the map. So if a user switches the map 5 times, you will have 6 MainViewControllers alive in memory, each containing its own hierarchy of view objects including a map view and its layers. This is not very efficient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is better if you reuse the single instance of MainViewController by popping the MapPickerViewController from the navigation stack. You should use the viewWillAppear method in MainViewController to reset the map and add new layers to reflect the map that the user picked. If many of the layers are common between the maps,&amp;nbsp; you don't need to reset the map, you can individually remove &amp;amp; add layers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jul 2013 21:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516173#M4435</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2013-07-06T21:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: AGSGraphicsLayer eat up memory in SDK 10.1.1</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516174#M4436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In taking a look at your code, i noticed that you create a new instance of the MainViewController everytime the user changes the map. So if a user switches the map 5 times, you will have 6 MainViewControllers alive in memory, each containing its own hierarchy of view objects including a map view and its layers. This is not very efficient.&lt;BR /&gt;&lt;BR /&gt;It is better if you reuse the single instance of MainViewController by popping the MapPickerViewController from the navigation stack. You should use the viewWillAppear method in MainViewController to reset the map and add new layers to reflect the map that the user picked. If many of the layers are common between the maps,&amp;nbsp; you don't need to reset the map, you can individually remove &amp;amp; add layers.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very, very much for taking the time to examine my code, Divesh. I am re-designing the app based on your advice. I am not encountering the didReceiveMemory warning issue any more, so this was clearly a coding issue and not an SDK performance problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 13:05:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsgraphicslayer-eat-up-memory-in-sdk-10-1-1/m-p/516174#M4436</guid>
      <dc:creator>DinaLi</dc:creator>
      <dc:date>2013-07-10T13:05:12Z</dc:date>
    </item>
  </channel>
</rss>

