Advertisement
Guest User

spigot start script

a guest
Apr 30th, 2014
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. #! /bin/bash
  2. # Configuration Variables
  3. #server_jar="minecraft_server.jar"
  4. #server_jar="craftbukkit.jar"
  5. server_jar="spigot.jar"
  6.  
  7. # Launch server
  8. # Removed parameters:
  9. # -Xincgc \ # Does not work (should not work) with -XX:+UseConcMarkSweepGC
  10. # -Xnoclassgc \ # Bukkit uses this and leaves dead RAM if disabled
  11. # -XX:+UseCompressedStrings \ # Support removed in Java 7
  12. # -XX:+UseAdaptiveSizePolicy # it is incompatible with UseConcMarkSweepGC
  13.  
  14. # -Xmn1G -Xms2G -Xmx4G \
  15.  
  16. #rm server.log
  17. #logfile="logs/"`eval date +%Y%m%d%H%M%S`".log"
  18. #touch $logfile
  19. #ln --symbolic $logfile server.log
  20.  
  21. java \
  22. -d64 \
  23. -Xms2G -Xmx4G \
  24. -Dfile.encoding=UTF-8 \
  25. -XX:PermSize=128m -XX:MaxPermSize=256m \
  26. -XX:NewRatio=3 -XX:+UseThreadPriorities \
  27. -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048 \
  28. -XX:CMSInitiatingOccupancyFraction=90 \
  29. -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled \
  30. -XX:MaxGCPauseMillis=50 -XX:ParallelGCThreads=4 \
  31. -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking \
  32. -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 \
  33. -oss4M -ss4M -XX:UseSSE=4 -XX:+UseLargePages \
  34. -XX:+UseStringCache \
  35. -XX:+UseCompressedOops -XX:+OptimizeStringConcat \
  36. -XX:+UseFastAccessorMethods -XX:+AggressiveOpts \
  37. -jar $server_jar \
  38. nogui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement