<?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 ArcGIS js API 4.x : Is there memory leak when adding and removing graphics in the view in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-4-x-is-there-memory-leak-when-adding/m-p/694394#M64569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;here is a little sample with a button which remove graphics and add 5000 new random graphics to the default graphiclayer .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;we can see that the memory increase after each click and is never released even if we force garbage collection in the browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be there is a mistake in my sample?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a memory leak in the API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a workaround to adda and remove graphics periodically without memomry leak?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Browser used : Firefox (60.7.2ESR)&lt;BR /&gt;ArcGIS API for JavaScript : 4.11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2019 08:43:47 GMT</pubDate>
    <dc:creator>CharlesMILLOT1</dc:creator>
    <dc:date>2019-07-09T08:43:47Z</dc:date>
    <item>
      <title>ArcGIS js API 4.x : Is there memory leak when adding and removing graphics in the view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-4-x-is-there-memory-leak-when-adding/m-p/694394#M64569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;here is a little sample with a button which remove graphics and add 5000 new random graphics to the default graphiclayer .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;we can see that the memory increase after each click and is never released even if we force garbage collection in the browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be there is a mistake in my sample?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a memory leak in the API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a workaround to adda and remove graphics periodically without memomry leak?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Browser used : Firefox (60.7.2ESR)&lt;BR /&gt;ArcGIS API for JavaScript : 4.11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 08:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-4-x-is-there-memory-leak-when-adding/m-p/694394#M64569</guid>
      <dc:creator>CharlesMILLOT1</dc:creator>
      <dc:date>2019-07-09T08:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS js API 4.x : Is there memory leak when adding and removing graphics in the view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-4-x-is-there-memory-leak-when-adding/m-p/694395#M64570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Charles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Try 4.12. I see that GC occurs after a couple of seconds automatically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:23:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-4-x-is-there-memory-leak-when-adding/m-p/694395#M64570</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-07-09T13:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS js API 4.x : Is there memory leak when adding and removing graphics in the view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-4-x-is-there-memory-leak-when-adding/m-p/694396#M64571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with 4.12 and have the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I launch the page.&lt;/P&gt;&lt;P&gt;Firefox take about 500Mb of memory.&lt;/P&gt;&lt;P&gt;After 50 creation/removing of the 5000 graphics the memory has grown up to 1Gb!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any other idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 15:40:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-4-x-is-there-memory-leak-when-adding/m-p/694396#M64571</guid>
      <dc:creator>CharlesMILLOT1</dc:creator>
      <dc:date>2019-07-09T15:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS js API 4.x : Is there memory leak when adding and removing graphics in the view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-4-x-is-there-memory-leak-when-adding/m-p/694397#M64572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Charles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I sorry I forgot the part about you using Firefox. I tested in Chrome and did not have that issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 15:44:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-4-x-is-there-memory-leak-when-adding/m-p/694397#M64572</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-07-09T15:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS js API 4.x : Is there memory leak when adding and removing graphics in the view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-4-x-is-there-memory-leak-when-adding/m-p/694398#M64573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested with Chrome 75 and reproduce that issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GC occurs but not all the memory is released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After several add/remove of graphics, the memory increase ever and ever despite of the GC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 16:06:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-4-x-is-there-memory-leak-when-adding/m-p/694398#M64573</guid>
      <dc:creator>CharlesMILLOT1</dc:creator>
      <dc:date>2019-07-09T16:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS js API 4.x : Is there memory leak when adding and removing graphics in the view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-4-x-is-there-memory-leak-when-adding/m-p/694399#M64574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Charles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Then you need to contact esri tech support and open a bug for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 16:13:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-4-x-is-there-memory-leak-when-adding/m-p/694399#M64574</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-07-09T16:13:30Z</dc:date>
    </item>
  </channel>
</rss>

