briandr

Script runs fine in ArcMAP, get out of memory error in cmd

Discussion created by briandr on Mar 5, 2012
Latest reply on Oct 4, 2013 by jborovanskyarcdata-cz-esridist
I have been working on a arcmap gp model for doing a few CF solves and intersection queries. The model runs great in arcmap, when I export it to python and run it from the CMD prompt I get an out of memory exception. (See Below)

"arcpy.Solve_na(Closest_Facility_2__2_, "SKIP", "TERMINATE")
  File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\na.py", line 1378,
in Solve
    raise e
arcgisscripting.ExecuteError: ERROR 030024: Solve returned a failure.
Out of memory.
Failed to execute (Solve)."

Watching it run from task manager it will chew up about 1GB of ram and die, watching the same thing run in arcmap it will chew up about 1GB of ram and succeed.


I have googled the error code and briefly searched the forums without much luck. I have seen some people mentioning an option for running in process but I'm not really sure what that means.

Any help would be appreciated.

On a side note, the system doesn't actually run out of memory. The development machine has 8GB total and always fails before 5GB total is reached.

Thanks
Brian

Outcomes