From f3b3bd03a87f0f86fcd49d5ae5c4393613097b24 Mon Sep 17 00:00:00 2001 From: mathias Date: Wed, 29 Aug 2018 20:59:59 +0300 Subject: [PATCH] Use cgroup limits --- bin/start | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/start b/bin/start index c4dd8d4..b0e5c32 100755 --- a/bin/start +++ b/bin/start @@ -20,7 +20,7 @@ while true; do done & .bin/tmux new -d -s server 'while true; do - .bin/java/bin/java -Xms0m -Xmx300m -Xss512k -XX:MinHeapFreeRatio=1 -XX:MaxHeapFreeRatio=10 -Dcom.mojang.eula.agree=true -Dlog4j.configurationFile=log4j2.xml -jar minecraft-server.jar --world-dir=worlds + .bin/java/bin/java -Xms0m -Xmx300m -Xss512k -XX:MinHeapFreeRatio=1 -XX:MaxHeapFreeRatio=10 -XX:+UseContainerSupport -Dcom.mojang.eula.agree=true -Dlog4j.configurationFile=log4j2.xml -jar minecraft-server.jar --world-dir=worlds sleep 1 done' &