In order to give more memory to AnyLogic itself find the AnyLogic.ini
file (this is similar to eclipse.ini
for regular eclipse which is the base for AnyLogic
) in the AnyLogic
installation folder and replace -Xmx1024M
with something like -Xmx8192M
.
You may want to know more about the jvm memory settings for example here and how memory settings affect eclipse and the application (your model) running in it.
If the error happens during running the model then according to the documentation:
The straightforward way of dealing with this problem is to increase Java heap space. By default the memory allocated to your model is limited to 64 Megabytes, which is well under the capacity of modern computer physical memory. Therefore you can simply allow the model to consume more. To do it go to the Advanced properties page of your experiment and enter the appropriate amount in “Maximum available memory” field.