From 6ad7773e2b0cf3e026dd0a861b6e8fd10120f80b Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Mon, 1 Nov 2021 17:28:58 -0500 Subject: [PATCH] docs: clarified JVM_OPTS and JVM_XX_OPTS syntax --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 14c4f2cb..27f11705 100644 --- a/README.md +++ b/README.md @@ -1297,8 +1297,7 @@ To let the JVM calculate the heap size from the container declared memory limit, ### JVM Options General JVM options can be passed to the Minecraft Server invocation by passing a `JVM_OPTS` -environment variable. Options like `-X` that need to proceed general JVM options can be passed -via a `JVM_XX_OPTS` environment variable. +environment variable. The JVM requires `-XX` options to precede `-X` options, so those can be declared in `JVM_XX_OPTS`. Both variables are space-delimited, raw JVM arguments. For some cases, if e.g. after removing mods, it could be necessary to startup minecraft with an additional `-D` parameter like `-Dfml.queryResult=confirm`. To address this you can use the environment variable `JVM_DD_OPTS`, which builds the params from a given list of values separated by space, but without the `-D` prefix. To make things running under systems (e.g. Plesk), which doesn't allow `=` inside values, a `:` (colon) could be used instead. The upper example would look like this: `JVM_DD_OPTS=fml.queryResult:confirm`, and will be converted to `-Dfml.queryResult=confirm`.