<?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: Memory spikes an bloats while adding empty AGSGraphic layers in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/memory-spikes-an-bloats-while-adding-empty/m-p/208953#M1911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://developers.arcgis.com/en/ios/"&gt;ArcGIS Runtime SDK for iOS v10.1.1 Update 1&lt;/A&gt;&lt;SPAN&gt; is available now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2013 17:30:30 GMT</pubDate>
    <dc:creator>NimeshJarecha</dc:creator>
    <dc:date>2013-04-11T17:30:30Z</dc:date>
    <item>
      <title>Memory spikes an bloats while adding empty AGSGraphic layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/memory-spikes-an-bloats-while-adding-empty/m-p/208952#M1910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am making a simple GIS app using 10.1.1 SDK and in the start of my code I just load a webmap and add 3 *empty* graphic layers and 1 sketch&amp;nbsp; layer. However due to this addition in the beginning, the live bytes jump 15-20mb per layer added to the map in the beginning and then remain this way and dont come down if I remove these layers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running on a non retina iPad 3.&amp;nbsp; I wonder that this might cause rejection of my app from apple store as the total live bytes if all layers are active at a single time come up to around 80mb. Is this an issue with the SDK as I am only adding AGSGraphic layers and not doing any complex computing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code for addition looks like &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
- (void)didOpenWebMap: (AGSWebMap*)webMap intoMapView: (AGSMapView *)mapView
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(self.sketchLayer ==nil)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; self.sketchLayer = [AGSSketchGraphicsLayer graphicsLayer];
&amp;nbsp;&amp;nbsp;&amp;nbsp; self.sketchLayer.geometry = [[AGSMutablePolyline alloc] initWithSpatialReference:self.mapView.spatialReference];
&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.mapView addMapLayer:self.sketchLayer withName:@"Sketch layer"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; self.sketchLayer.visible=NO;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(self.graphicsLayer ==nil)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; self.graphicsLayer = [AGSGraphicsLayer graphicsLayer];
&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.mapView addMapLayer:self.graphicsLayer withName:@"Graphics Layer"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(self.graphicsLayerdraw == nil)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; self.graphicsLayerdraw = [AGSGraphicsLayer graphicsLayer];
&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.mapView addMapLayer:self.graphicsLayerdraw withName:@"Graphics Layer Draw"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
 


}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If any one can comment on why this memory bloat is occurring just by adding these empty layers then I would be grateful&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Humza&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 05:08:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/memory-spikes-an-bloats-while-adding-empty/m-p/208952#M1910</guid>
      <dc:creator>HumzaAkhtar</dc:creator>
      <dc:date>2013-03-08T05:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Memory spikes an bloats while adding empty AGSGraphic layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/memory-spikes-an-bloats-while-adding-empty/m-p/208953#M1911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://developers.arcgis.com/en/ios/"&gt;ArcGIS Runtime SDK for iOS v10.1.1 Update 1&lt;/A&gt;&lt;SPAN&gt; is available now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 17:30:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/memory-spikes-an-bloats-while-adding-empty/m-p/208953#M1911</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2013-04-11T17:30:30Z</dc:date>
    </item>
  </channel>
</rss>

