From 6b06068224f97b28c85852753075ae7ef666bd2e Mon Sep 17 00:00:00 2001 From: HoodedDeath <37732447+HoodedDeath@users.noreply.github.com> Date: Wed, 10 Mar 2021 02:55:06 +0000 Subject: [PATCH] Fixing memory assignment Setting memory vars within 'JVM_OPTS' was not working, setting the minimum in 'INIT_MEMORY' and the maximum in 'MAX_MEMORY' work well though --- src/minecraftctl.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/minecraftctl.sh b/src/minecraftctl.sh index 6116f29..cbbfbe8 100755 --- a/src/minecraftctl.sh +++ b/src/minecraftctl.sh @@ -85,7 +85,9 @@ start() { -p $PORT:25565 \ -p $RCON_PORT:25575 \ -e "RCON_PASSWORD=${RCON_PASSWORD}" \ - -e "JVM_OPTS=-Xmx${MAXHEAP}M -Xms${MINHEAP}M -D${name}" \ + -e "JVM_OPTS=-D${name}" \ + -e "INIT_MEMORY=${MINHEAP}M" \ + -e "MAX_MEMORY=${MAXHEAP}M" \ -e "JVM_XX_OPTS=${EXTRA_JVM_OPTS}" \ -e "EULA=$EULA" \ -e "VERSION=$VERSION" \