Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- BINDIR=$(dirname "$(readlink -fn "$0")")
- cd "\$BINDIR"
- while true
- do
- #java -server -Xms1G -Xmx20G -XX:MaxPermSize=128M -jar *.jar
- java -server -Xms15G -Xmx15G -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=35 -XX:G1MaxNewSizePercent=60 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AggressiveOpts -XX:+AlwaysPreTouch -jar *.jar
- echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!"
- echo "Rebooting in:"
- for i in 5 4 3 2 1
- do
- echo "$i..."
- sleep 1
- done
- echo "Rebooting now!"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement