-
Notifications
You must be signed in to change notification settings - Fork 2
Environment file
7thCore edited this page Aug 27, 2022
·
1 revision
The systemd service for the game server relies on the environmet file for certain configuration options. It is located in the environment directory for each instance of the dedicated server. It can be modified at any point in time but only when the server instance is not running.
Variables in the environmet file and their meaning:
| Variable | Meaning |
|---|---|
JAVA= |
The current java executable that is used by the server instance. For the latest version of java you can use java but for a specific version you have to install the desired java version and enter the path to the executable, for example /usr/lib/jvm/java-8-openjdk/bin/java
|
JAVA_ARGS= |
The additional java arguments you want to use with your server instance. Here you can set ram and other confiugurations. Defaults: -XX:+UseG1GC -Xmx6G -Xms1G -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -Dfml.ignorePatchDiscrepancies=true -Dfml.ignoreInvalidMinecraftCertificates=true
|
JAR_TYPE= |
Server type of the server instance. Can be server for vanilla, forge for forge or spigot for spigot. |