"Best" startup script?

Discussion in 'Spigot Discussion' started by Ibas, Sep 20, 2013.

  1. Hey, I have question which one script is best and why or maybe none of these?


    Code (Text):
    java -Xmx1024M -jar spigot.jar -o true
     
    java -d64 -Xincgc -Xmx1024M -jar spigot.jar nogui
     
    java -Xmx1G -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:MaxGCPauseMillis=5 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -XX:UseSSE=3 -XX:+UseFastAccessorMethods -XX:+UseStringCache -XX:+OptimizeStringConcat -XX:+AggressiveOpts -jar spigot.jar
     
  2. joehot200

    Supporter

    java -d64 -Xincgc -Xmx1024M -jar spigot.jar is the best.

    Whoever invented
    Code (Text):
    java -Xmx1G -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:MaxGCPauseMillis=5 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -XX:UseSSE=3 -XX:+UseFastAccessorMethods -XX:+UseStringCache -XX:+OptimizeStringConcat -XX:+AggressiveOpts -jar spigot.jar
    is an idiot - Throwing every damn java flag into an application WONT help performance.

    My startup script:
    Code (Text):

    # /bin/sh
    while true
    do
    java -d64 -Xincgc -Xmx10G -jar craftbukkit.jar
    echo Its off..sleeping for 5
    sleep 5
    done
     
     
    • Disagree Disagree x 2
  3. Excuse me, but what is -d64 used for?
     
    • Funny Funny x 1
  4. Dmck2b

    Services Staff

    It forces java to use it's 64 bit component.
     
    • Useful Useful x 1
  5. Thanks! Im still such a noob at this. :)
     
  6. Just a quick note when using the -o flag on a startup script (if you do) don't use it with servers you intend on using with BungeeCord, because the -o flag overwrites the server.properties to turn the server onto online mode
     

  7. Correction, -XX:+UseConcMarkSweepGC needs to be there =P
    Meulen92 read http://www.spigotmc.org/threads/server-launch-parameters-empireminecraft.4880/ for some details on flags thats backed with reasoning and not theory.

    Also -d64 should never be needed. JVM will use the correct mode.
     
  8. joehot200

    Supporter

    It seemed not to on my old VPS, and i have never bothered changing it to find out.
     
  9. Windows? Note if the JVM was running in 32bit mode.. you wouldnt even be able to allocate over 3-4~GB of memory.
     
  10. Dmck2b

    Services Staff


    Afaik spigot removed -o.