17 September 2017

3.1. Increasing memory

If you intend to manipulate a very large model, it is possible to increase the memory used by GNA by setting the JAVA_ARGS variable. For instance, value -Xms256M -Xmx1024M allows GNA to use a memory of 256 Mb up to 1024 Mb.

On Windows, open the System properties, select the Advanced tab, and click on Environment variable in order to define a new variable with the name JAVA_ARGS.

On Linux or MacOS, use one of the following command, depending on your shell:

setenv JAVA_ARGS "-Xms256M -Xmx1024M"
export JAVA_ARGS "-Xms256M -Xmx1024M"