Environment variables

You can use environment variables to tune Lingo4G's JVM options and other global settings.

L4​G_​H​O​M​E

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 L4​G_​H​O​M​E variable, the l4g launch scripts sets it automatically.

L4​G_​O​P​T​S

Sets the extra JVM options to pass when launching Lingo4G. The most common use-case for setting L4​G_​O​P​T​S 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=-Xmx16g

on Linux or Mac:

export L4G_OPTS=-Xmx16g

When 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).

J​A​V​A_​C​M​D

The Java executable to use to launch Lingo4G.