From 48f79f54bf81e54c263856e300535d63aa6fd7aa Mon Sep 17 00:00:00 2001 From: Daschi1 <50054971+Daschi1@users.noreply.github.com> Date: Sun, 13 Feb 2022 16:02:37 +0100 Subject: [PATCH] =?UTF-8?q?Added=20an=20example=20for=C2=A0JVM=5FOPTS=20(#?= =?UTF-8?q?1359)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 25047476..33919f2e 100644 --- a/README.md +++ b/README.md @@ -1487,6 +1487,9 @@ To let the JVM calculate the heap size from the container declared memory limit, General JVM options can be passed to the Minecraft Server invocation by passing a `JVM_OPTS` 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. +``` +-e JVM_OPTS="-someJVMOption someJVMOptionValue" +``` 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`.