<?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 usage after loading terrain in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/memory-usage-after-loading-terrain/m-p/1209734#M10643</link>
    <description>&lt;P&gt;Hi Jonas,&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you for sharing the script. In fact we recently encountered something similar. We are using a python script to iteratively import Multipatch feature classes and execute the CleaupShapes function, and later export them to a fresh fgdb. We have tons of such data to be processed and usually we just let the script run for days inside a CE instance. Usually after a day or two we'll get a "Out of memory" error, and we simply restart the CE instance and repeat the process.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm wondering if there are some good practices regarding such usage that you could share. I noticed in your modified script that you used temp folders to do the importing and deleted them after that. Would you recommend a similar approach for importing large multipatch datasets?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;</description>
    <pubDate>Tue, 06 Sep 2022 01:16:53 GMT</pubDate>
    <dc:creator>EvelynHsu</dc:creator>
    <dc:date>2022-09-06T01:16:53Z</dc:date>
    <item>
      <title>Memory usage after loading terrain</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/memory-usage-after-loading-terrain/m-p/1179348#M10526</link>
      <description>&lt;P&gt;I have a problem with unloading terrain placed on scene. Since the terrain I'm working on is pretty huge I decided to only load fragment of it, do some operations and unload it&amp;nbsp; in order to make space for the next one. The problem is, unloading the terrain seems to not free up memory.&lt;BR /&gt;&lt;BR /&gt;After loading and unloading hundreds of times from script, my memory usage is more than 50 GB and soon enough - CityEngine shows out of memory error. I tried to load and unload manually without the script and the outcome is the same - after doing it 10 times, Windows Task Manager shows the memory not freeing up.&lt;/P&gt;&lt;P&gt;Is this a memory leak? Should I be using ce.delete() or some other method of disposal?&lt;/P&gt;&lt;P&gt;I am working on CityEngine 2021.0.7316. I attached very simple project to replicate the error - open the MemoryTestScene.cej and run simpleMemoryTestScript.py.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 07:12:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/memory-usage-after-loading-terrain/m-p/1179348#M10526</guid>
      <dc:creator>AdamChełstowski</dc:creator>
      <dc:date>2022-06-02T07:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Memory usage after loading terrain</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/memory-usage-after-loading-terrain/m-p/1179925#M10530</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/477570"&gt;@AdamChełstowski&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks a lot for reporting this. It is indeed a merory leak. Until this gets fixed you can try the attached modified version of your simpleMemoryTestScript.py its does not fix the leak but it should be way less bad.&lt;/P&gt;&lt;P&gt;Best&lt;BR /&gt;Jonas&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 20:26:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/memory-usage-after-loading-terrain/m-p/1179925#M10530</guid>
      <dc:creator>JonasObertuefer</dc:creator>
      <dc:date>2022-06-03T20:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Memory usage after loading terrain</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/memory-usage-after-loading-terrain/m-p/1209734#M10643</link>
      <description>&lt;P&gt;Hi Jonas,&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you for sharing the script. In fact we recently encountered something similar. We are using a python script to iteratively import Multipatch feature classes and execute the CleaupShapes function, and later export them to a fresh fgdb. We have tons of such data to be processed and usually we just let the script run for days inside a CE instance. Usually after a day or two we'll get a "Out of memory" error, and we simply restart the CE instance and repeat the process.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm wondering if there are some good practices regarding such usage that you could share. I noticed in your modified script that you used temp folders to do the importing and deleted them after that. Would you recommend a similar approach for importing large multipatch datasets?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Sep 2022 01:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/memory-usage-after-loading-terrain/m-p/1209734#M10643</guid>
      <dc:creator>EvelynHsu</dc:creator>
      <dc:date>2022-09-06T01:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Memory usage after loading terrain</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/memory-usage-after-loading-terrain/m-p/1213732#M10655</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/602197"&gt;@EvelynHsu&lt;/a&gt;, we would like to further investigate this but its most likely not directly related to the original thread so I sent you a DM.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 07:39:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/memory-usage-after-loading-terrain/m-p/1213732#M10655</guid>
      <dc:creator>JonasObertuefer</dc:creator>
      <dc:date>2022-09-19T07:39:58Z</dc:date>
    </item>
  </channel>
</rss>

