Hi @netlogo-users!
Hi Li,
We are sorry you ran into this problem.
I recommend you update to NetLogo 6.3.0 if you are not already using it (download here)
The post you included does not have the correct name of the relevant configuration file.
If you do a standard NetLogo installation the configuration file will be
/Applications/NetLogo 6.3.0/NetLogo 6.3.0.app/Contents/app/NetLogo 6.3.0.cfg
In the file you will find the lines
[JavaOptions]
java-options=-Djpackage.app-version=1.0
java-options=-Xmx1024m
Edit the file so that -Xmx1024m is replaced by -XX:MaxRAMPercentage=50, resulting in
[JavaOptions]
java-options=-Djpackage.app-version=1.0
java-options=-XX:MaxRAMPercentage=50
The JVM will now automatically allow NetLogo to use up to have of your RAM.
This has worked well for me, and doesn't require specifying a specific number for RAM allocation.
Let us know if you need more help.
- Aaron
--
Aaron Brandes, Software Developer
Center for Connected Learning and Computer-Based Modeling
From:
netlog...@googlegroups.com <netlog...@googlegroups.com> on behalf of li <xohyu...@gmail.com>
Date: Monday, March 6, 2023 at 12:44 PM
To: netlogo-users <netlog...@googlegroups.com>
Subject: [netlogo-users] Re: Increasing RAM
Hi @netlogo-users!
My model is quite big, and when I try to run it, it says that the model is too large to run. I've been looking for answers but haven't found any until I came across this post.
As for my concern, it is quite related to this one. I was only able to locate jvm.cfg file, and I'm not sure which file I should modify because I couldn't find the .cfg file mentioned in the user manual. By the way, I am using the Macbook Air M1 2020, macOS Monterey version 12.3.1 8GB of RAM
Many thanks!
Li
--
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/c4275410-374d-49b2-a639-4a1df45d52d9n%40googlegroups.com.