Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true; do
- echo "Starting the server"
- exec screen -AmdS pixel110 /usr/lib/jvm/java-8-oracle/jre/bin/java -Xmx8196M -Xms8196M -XX:PermSize=256M -XX:+UseG1GC -Djava.security.policy=server.policy -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=60 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AggressiveOpts -XX:+UseLargePagesInMetaspace -XX:+AlwaysPreTouch -Djline.terminal=jline.UnsupportedTerminal -jar forge.jar nogui
- echo "Waiting 30 seconds before starting the server again"
- sleep 30
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement