Issue leveraging memory workspace

251
2
07-17-2019 05:00 AM
RobW
by
New Contributor III

Hi, I am running a Python 3 script, and with that script I am trying to leverage the in_memory workspace. 

The work flow involves clipping manageable tiles of a simplified raster layer and then convert to a polygon feature class.  Using 'in_memory', I carry out an eliminate and a smoothPolygon. As new tiles are processed, I release and clean up the in_memory feature classes so as not to consume memory/RAM needlessly.

The script is intended to run for hours (more tiles = more time). For the most part it works. However at times the script process appears to just hang or greatly slows down. The hanging may even correspond to when my computer is locked for a period of time - like overnight.  The next morning, I can start the script up again on the same tile and the script completes. 

Has anyone else run into a similar issue?

Config Specs: 

ArcGIS Pro 2.4.0

Intel Core i7 | 64 GB

Win 10

0 Kudos
2 Replies
DanPatterson_Retired
MVP Esteemed Contributor

Are you using the new 'memory workspace'?

There are a number of qualifiers about performance

Write geoprocessing output to memory—ArcGIS Pro | ArcGIS Desktop 

You might have run up against them for sure

0 Kudos
RobW
by
New Contributor III

Yes. I am using the new memory.  Snippet from my code:  

fcElim = r"memory\fcElim"
fcElimSm = r"memory\fcElim_Sm"

0 Kudos