need a simple linux start script.

Discussion in 'Bukkit Help' started by TheCrazySquirell, Sep 22, 2011.

Thread Status:
Not open for further replies.
  1. Hi,

    I have been having an absolute nightmare trying to find a linux server start script, I have had a server before but the thread that helped me has dissapeared. Could someone possibly write me a simple one? Just to start the server.

    Running Linux Ubuntu 11.4 x86 (32bit)
    artur@Squirell-PC:~$ java -version
    java version "1.6.0_22"
    OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1)
    OpenJDK Server VM (build 20.0-b11, mixed mode)
     
  2. Offline

    kyle921

    Try this:
    Code:
    java -server -verbose:gc -Xms2G -Xmx3G -XX:PermSize=64m -XX:MaxPermSize=128m -XX:+UseConcMarkSweepGC -XX:ParallelGCThreads=7 -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -Xnoclassgc -XX:UseSSE=3 -jar craftbukkit.jar
    But make sure to replace "-Xms2G" and "-Xmx3G" with your respective min and max RAM values, and replace "-XX: ParallelGCThreads=7" with the number of available cores you have minus one (e.g. my system has 8 total, so I set it to 7).

    If that doesn't work, just try this:
    Code:
    java -Xms2G -Xmx3G -jar craftbukkit.jar
    However, know that the second, while simpler, will not run as well. Also, either of these should be in a file called "start.sh" in the same folder as your CraftBukkit jar. If you're still having trouble after this, ask away.
     
    TheCrazySquirell likes this.
  3. Thank you so much!!! I would hug you if I could =)
     
Thread Status:
Not open for further replies.

Share This Page