Skip to content

Commit

Permalink
Fixing memory assignment
Browse files Browse the repository at this point in the history
Setting memory vars within 'JVM_OPTS' was not working, setting the minimum in 'INIT_MEMORY' and the maximum in 'MAX_MEMORY' work well though
  • Loading branch information
HoodedDeath authored Mar 10, 2021
1 parent becb96a commit 6b06068
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/minecraftctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 6b06068

Please sign in to comment.