Environment variables
You can use environment variables to tune Lingo4G's JVM options and other global settings.
L4G_HOME
Sets the path to Lingo4G home directory, which contains
Lingo4G binaries and global configuration. In most cases
there is no need to explicitly set the L4G_HOME variable, the
l4g launch scripts sets it automatically.
L4G_OPTS
Sets the extra JVM options to pass when launching Lingo4G. The most common use-case for setting
L4G_OPTS is setting the amount of memory Lingo4G can use using the -Xmx switch. For
example, the command below sets the heap to 16 gigabytes (on Windows):
SET L4G_OPTS=-Xmx16gon Linux or Mac:
export L4G_OPTS=-Xmx16gWhen not set explicitly, Lingo4G launch scripts rely on java's default heap size, computed through a process known as gc ergonomics (the exact value depends on the system's memory, CPU count, garbage collector type and possibly other factors).
JAVA_CMD
The Java executable to use to launch Lingo4G.