Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. #!/bin/sh
  2. BINDIR=$(dirname "$(readlink -fn "$0")")
  3. cd "\$BINDIR"
  4. while true
  5. do
  6. #java -server -Xms1G -Xmx20G -XX:MaxPermSize=128M -jar *.jar
  7. 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
  8. echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!"
  9. echo "Rebooting in:"
  10. for i in 5 4 3 2 1
  11. do
  12. echo "$i..."
  13. sleep 1
  14. done
  15. echo "Rebooting now!"
  16. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement