Best start_server.commands

Discussion in 'Bukkit Discussion' started by hawkfalcon, Oct 8, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    hawkfalcon

    The wiki recommends
    Code:
    #!/bin/bash
    cd "$( dirname "$0" )"
    java -Xmx1024M -Xms1024M -jar craftbukkit.jar -o true
    and I use a similar one:
    Code:
    #!/bin/bash
    cd "$(dirname "$0")"
    java -server -Xmx2G -jar ./craftbukkit.jar
    
    What do you use? Whats the best to use? Why?
    Let me know!
     
  2. Offline

    TnT

    The wiki should work for anyone. Your script is really no different, just ups the Xmx value, which will break anyone using Java x86.

    The wiki is obviously there for the majority of users. Your script may differ, and that is OK, but I wouldn't say one is better.

    Also, for -server to work you must be using the JDK, or it has no benefit whatsoever.
     
    hawkfalcon likes this.
  3. Offline

    hawkfalcon

    Okay. Is the Xms value required?
     
  4. Offline

    TnT

    Only if you wish to include it. It is not required, just helps to start faster.
     
    hawkfalcon likes this.
  5. Offline

    afistofirony

    Code:
    #!/bin/bash
    cd "($dirname "0")"
    -java -Xmx3072M -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -jar craftbukkit.jar
    I've used this ever since our server got 1.3. It seems to help a lot with lag.
     
  6. Offline

    Sushi

    I use a custom launcher script written in Ruby, but when it comes down to actually launching the server, it does what the bash script on the wiki does.
     
Thread Status:
Not open for further replies.

Share This Page