Skip to content

Commit 05cee48

Browse files
authoredMar 10, 2021
Merge pull request #4 from HoodedDeath/master
Fixing memory assignment
2 parents 1d905b0 + 6b06068 commit 05cee48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/minecraftctl.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ start() {
8585
-p $PORT:25565 \
8686
-p $RCON_PORT:25575 \
8787
-e "RCON_PASSWORD=${RCON_PASSWORD}" \
88-
-e "JVM_OPTS=-Xmx${MAXHEAP}M -Xms${MINHEAP}M -D${name}" \
88+
-e "JVM_OPTS=-D${name}" \
89+
-e "INIT_MEMORY=${MINHEAP}M" \
90+
-e "MAX_MEMORY=${MAXHEAP}M" \
8991
-e "JVM_XX_OPTS=${EXTRA_JVM_OPTS}" \
9092
-e "EULA=$EULA" \
9193
-e "VERSION=$VERSION" \

0 commit comments

Comments
 (0)
Please sign in to comment.