<?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: Virtual Memory in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724977#M56200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try deleting and recreating the geoprocessor object after each iteration, this should severely improve performance, as the GP gets slower, and slower........and slower.... the more loops it is forced to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, use multiprocessing pool.map() to split your job over your pc cores &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2011/08/29/Multiprocessing.aspx"&gt;http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2011/08/29/Multiprocessing.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2011 08:26:29 GMT</pubDate>
    <dc:creator>AlexOulton1</dc:creator>
    <dc:date>2011-10-21T08:26:29Z</dc:date>
    <item>
      <title>Virtual Memory</title>
      <link>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724970#M56193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm running a loop over Network analysis.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After some work and after increasing the memory of my desktop to 8G I'm being able to run it for a while. But ArcGis still crashing. I suppose it's a problem of virtual memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DOES ANYONE KNOW HOW TO INCREASE THE VIRTUAL MEMORY USE BY ArcGis? Like the set mem command in stata?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;J&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 16:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724970#M56193</guid>
      <dc:creator>JaimeMillan</dc:creator>
      <dc:date>2011-10-13T16:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual Memory</title>
      <link>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724971#M56194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Short answer, no. Long answer, hopefully soon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/38343"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/38343&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the part I think you are interested in...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ArcGIS Desktop on 64-bit &lt;BR /&gt;ArcGIS Desktop 10.0 applications are natively 32-bit applications but take advantage of a technology known as large memory awareness. This means that individual processes, such as ArcMap.exe, may be capable of accessing more than 2GB of memory (up to 4GB) when run on a 64-bit OS. Note that some functionality and third-party libraries that are part of ArcGIS are not compatible with large-address-awareness, and as such, some portions of ArcGIS may not be able to address more than 2GB even when running on a 64-bit OS.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 16:39:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724971#M56194</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2011-10-13T16:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual Memory</title>
      <link>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724972#M56195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wow, this is very bad news for me!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your answer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;J&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 17:06:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724972#M56195</guid>
      <dc:creator>JaimeMillan</dc:creator>
      <dc:date>2011-10-13T17:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual Memory</title>
      <link>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724973#M56196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you able to split your origins into multiple files (or something like that) so you are dealing with smaller bunches of data each time?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Network analyst crashes a lot, and for a huge number of reasons; what else can you tell us about your situation or specific error messages...?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 22:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724973#M56196</guid>
      <dc:creator>StacyRendall1</dc:creator>
      <dc:date>2011-10-13T22:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual Memory</title>
      <link>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724974#M56197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perhaps you can look at your process. Running "network in a loop" rings alarm bells. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you need to remove previous runs in the loop to release memory? If the first pass works, then you must clean up. Network results are held in memory, perhaps write them out to a file if you need to keep them.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 19:22:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724974#M56197</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2011-10-18T19:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual Memory</title>
      <link>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724975#M56198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The /3GB switch can also help, but it is an advanced technique, and the benefit will be minimal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://technet.microsoft.com/en-us/library/bb124810(EXCHG.65).aspx"&gt;http://technet.microsoft.com/en-us/library/bb124810(EXCHG.65).aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 11:22:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724975#M56198</guid>
      <dc:creator>ChristopherStorer</dc:creator>
      <dc:date>2011-10-19T11:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual Memory</title>
      <link>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724976#M56199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've found that, due to persistent memory leaks, any kind of serious iterative work with ArcGIS requires a lot of extra effort.&amp;nbsp; If running the same loop consistently crashes on the same iteration, and increasing the size of input data set makes it crash, consistently, on an 'earlier' iteration, then you probably have a memory leak issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my experience, the only way to handle these is to build the analysis as a wrapper script for the operation in python, and then code an additional driver routine to launch that wrapper.&amp;nbsp; For first try, look at the 'os.system' method.&amp;nbsp; Once you've got that down, try the subprocess module.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bonus? If you can pay the cost of book-keeping, you can launch multiple instances (loop steps), and keep things moving.&amp;nbsp; Penalty?&amp;nbsp;&amp;nbsp; Extra helping of book-keeping.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my experience: Even with the simplest operations, if you run it 1000 times, you can expect some of them to crash anyway (Error 999999).&amp;nbsp; So do code some logic to keep track of failed evaluations, and generate a list of what needs to be re-rendered down the line.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 22:00:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724976#M56199</guid>
      <dc:creator>DarylVan_Dyke</dc:creator>
      <dc:date>2011-10-20T22:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual Memory</title>
      <link>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724977#M56200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try deleting and recreating the geoprocessor object after each iteration, this should severely improve performance, as the GP gets slower, and slower........and slower.... the more loops it is forced to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, use multiprocessing pool.map() to split your job over your pc cores &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2011/08/29/Multiprocessing.aspx"&gt;http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2011/08/29/Multiprocessing.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 08:26:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/virtual-memory/m-p/724977#M56200</guid>
      <dc:creator>AlexOulton1</dc:creator>
      <dc:date>2011-10-21T08:26:29Z</dc:date>
    </item>
  </channel>
</rss>

