RAM issue

39 views
Skip to first unread message

koi

unread,
May 21, 2020, 3:52:49 AM5/21/20
to netlogo-users
Hi Folks,

I have an issue with running netlogo on a server using the netlogo-headless.sh script.
When running it on my local machine, it uses around 6 Gigabyte of Ram and everything is fine.
On the server i already configured the -Xmx to 20g and I still get an java exception when trying to run it:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at org.nlogo.agent.World2D.createPatches(World.scala:328)

As the stacktrace says, it is currently building up the patches. The patches are imported from a bitmap which are in total around 4 million patches.
Could this be the problem and should I scale the bitmap to a lower resolution?
The thing is, it works fine on my local machine - I only have the issue on my 40Gig Ram Server using the netlogo-headless.sh script

I appreciate every hint!
Thanks!

Aaron Andre Brandes

unread,
Jun 1, 2020, 2:20:24 PM6/1/20
to koi, netlogo-users

Hi,

How did you configure the memory? Did you just edit the config file, as described in

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

 

There is also a line in netlogo-headless.sh that sets the memory

 

JVM_OPTS=(-Xmx1024m -XX:+UseParallelGC -Dfile.encoding=UTF-8)

 

I’m not sure which value takes precedence, so you could try increasing both.

 

If that doesn’t work, please send more info about your personal computer and server.

 

From the NetLogo application (on your local computer) you can get the desired info as follows:

Select the “About NetLogo” menu item (below NetLogo), then click on the System tab. This will show your NetLogo version, OS version, Java version, and so on.

 

On the server this info might be provided along with the stack trace. If not you can get the three items mentioned above manually. The hardware info probably isn’t relevant.

 

Aaron

 

Aaron Brandes, Software Developer

Center for Connected Learning and Computer-Based Modeling

--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/6d9f6b82-eef9-4e97-8608-bca4283c1c6d%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages