Salva, See the FAQ section on "How big can my model be?" http://ccl.northwestern.edu/netlogo/docs/faq.html#how-big-can-my-model-be-how-many-turtles-patches-procedures-buttons-and-so-on-can-my-model-contain
The short answer is to modify your NetLogo.cfg file and change "-Xmx1024m" to something higher, like "-Xmx2048m". Using "-Xmx2048m" would give NetLogo two gigabytes of memory to use. If you still get out-of-memory errors, you can keep trying higher values depending on how much memory your system has. I hope that helps. -Jeremy On 10/16/18, 9:16 AM, "netlogo-devel@googlegroups.com on behalf of salvap...@gmail.com" <netlogo-devel@googlegroups.com on behalf of salvap...@gmail.com> wrote: Hi everybody, I'm trying to run my netlogo model (with gis extgension) using behavior-space and it repots me (see below). This problem doesn't appear when I use it without Behavior-space "ava.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferDouble.<init>(DataBufferDouble.java:86) at java.awt.image.BandedSampleModel.createDataBuffer(BandedSampleModel.java:206) at javax.media.jai.RecyclingTileFactory.createTile(RecyclingTileFactory.java:389) at javax.media.jai.PlanarImage.createWritableRaster(PlanarImage.java:1982) at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2319) at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2279) at javax.media.jai.RenderedOp.copyData(RenderedOp.java:2285) at org.myworldgis.netlogo.RasterDataset.createRendering(RasterDataset.java:300) at org.myworldgis.netlogo.RasterDataset.resample(RasterDataset.java:543) at org.myworldgis.netlogo.ApplyRaster.performInternal(ApplyRaster.java:51) at org.myworldgis.netlogo.GISExtension$Command.perform(GISExtension.java:61) at org.nlogo.prim._extern.perform(_extern.java:36) at org.nlogo.nvm.Context.stepConcurrent(Context.java:107) at org.nlogo.nvm.ConcurrentJob.step(ConcurrentJob.scala:65) at org.nlogo.job.JobThread.runPrimaryJobs(JobThread.scala:133) at org.nlogo.job.JobThread.$anonfun$run$1(JobThread.scala:68) at org.nlogo.job.JobThread$$Lambda$50/1989099353.apply$mcV$sp(Unknown Source) at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) at scala.util.control.Exception$Catch.apply(Exception.scala:224) at org.nlogo.api.Exceptions$.handling(Exceptions.scala:41) at org.nlogo.job.JobThread.run(JobThread.scala:66) Run #8, RUNTIME ERROR: Extension exception: Java heap space error while observer running GIS:APPLY-RASTER called by procedure SETUP-WORLD called by procedure SETUP called by procedure SETUP-FOR-BEHAVIOR-SEARCH called by procedure __EVALUATOR org.nlogo.nvm.WrappedExtensionException: Extension exception: Java heap space at org.nlogo.prim._extern.perform(_extern.java:40) at org.nlogo.nvm.Context.stepConcurrent(Context.java:107) at org.nlogo.nvm.ConcurrentJob.step(ConcurrentJob.scala:65) at org.nlogo.job.JobThread.runPrimaryJobs(JobThread.scala:133) at org.nlogo.job.JobThread.$anonfun$run$1(JobThread.scala:68) at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) at scala.util.control.Exception$Catch.apply(Exception.scala:224) at org.nlogo.api.Exceptions$.handling(Exceptions.scala:41) at org.nlogo.job.JobThread.run(JobThread.scala:66) Caused by: org.nlogo.api.ExtensionException: Java heap space at java.awt.image.DataBufferDouble.<init>(DataBufferDouble.java:86) at java.awt.image.BandedSampleModel.createDataBuffer(BandedSampleModel.java:206) at javax.media.jai.RecyclingTileFactory.createTile(RecyclingTileFactory.java:389) at javax.media.jai.PlanarImage.createWritableRaster(PlanarImage.java:1982) at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2319) at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2279) at javax.media.jai.RenderedOp.copyData(RenderedOp.java:2285) at org.myworldgis.netlogo.RasterDataset.createRendering(RasterDataset.java:300) at org.myworldgis.netlogo.RasterDataset.resample(RasterDataset.java:543) at org.myworldgis.netlogo.ApplyRaster.performInternal(ApplyRaster.java:51) at org.myworldgis.netlogo.GISExtension$Command.perform(GISExtension.java:61) at org.nlogo.prim._extern.perform(_extern.java:36) at org.nlogo.nvm.Context.stepConcurrent(Context.java:107) at org.nlogo.nvm.ConcurrentJob.step(ConcurrentJob.scala:65) at org.nlogo.job.JobThread.runPrimaryJobs(JobThread.scala:133) at org.nlogo.job.JobThread.$anonfun$run$1(JobThread.scala:68) at org.nlogo.job.JobThread$$Lambda$50/1989099353.apply$mcV$sp(Unknown Source) ... 4 more java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferDouble.<init>(DataBufferDouble.java:86) at java.awt.image.BandedSampleModel.createDataBuffer(BandedSampleModel.java:206) at javax.media.jai.RecyclingTileFactory.createTile(RecyclingTileFactory.java:389) at javax.media.jai.PlanarImage.createWritableRaster(PlanarImage.java:1982) at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2319) at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2279) at javax.media.jai.RenderedOp.copyData(RenderedOp.java:2285) at org.myworldgis.netlogo.RasterDataset.createRendering(RasterDataset.java:300) at org.myworldgis.netlogo.RasterDataset.resample(RasterDataset.java:543) at org.myworldgis.netlogo.ApplyRaster.performInternal(ApplyRaster.java:51) at org.myworldgis.netlogo.GISExtension$Command.perform(GISExtension.java:61) at org.nlogo.prim._extern.perform(_extern.java:36) at org.nlogo.nvm.Context.stepConcurrent(Context.java:107) at org.nlogo.nvm.ConcurrentJob.step(ConcurrentJob.scala:65) at org.nlogo.job.JobThread.runPrimaryJobs(JobThread.scala:133) at org.nlogo.job.JobThread.$anonfun$run$1(JobThread.scala:68) at org.nlogo.job.JobThread$$Lambda$50/1989099353.apply$mcV$sp(Unknown Source) at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) at scala.util.control.Exception$Catch.apply(Exception.scala:224) at org.nlogo.api.Exceptions$.handling(Exceptions.scala:41) at org.nlogo.job.JobThread.run(JobThread.scala:66) " All best, Salva -- You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-devel+unsubscr...@googlegroups.com. For more options, visit https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=DwIBaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=idNv4VBiONegY013hILcHgWfoaw8X5Xg6ZgTuFnxjJ8&m=mGxb02HunR88sUOSLQWk3cqDInoOFgVAUWcB4IaIaPk&s=kMl8dWIXsAzacgtcBpkD4lIUZKOZY26qnE34w1jbL3A&e=. -- You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.