more ram?

Discussion in 'Bukkit Help' started by zane, Oct 22, 2011.

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

    zane

    i am starting a server for a large group of people (75+) an need to know how to alot more ram to the server and cant find any good help out there.
    please help me out thanks.



    pinkie pie is best pony
     
  2. Offline

    ImminentFate

    a good rule of thumb is to allow at least 100mb ram per person. Even better is to allocate 200mb to allow for plugins, etc. So, for 75 people you would need at least 7.5gigs RAM but preferably 15gigs
     
  3. Offline

    zane

    ok i have 7.00 gb unused and able to be put towards this ( will up to 16 gb soon) how do i teell the server to use the ram? it seems to cap its self at about 1 gb
     
  4. Offline

    Diamondo25

    The startup parameters contains min and max memory usage with -Xms and -Xmx.
    Change these to -Xms 6G -Xmx 7G for 6 GB min and 7GB max.
     
  5. Offline

    SlyCooperMan

    I know it's kind of off topic, but does it matter how much RAM you use in the minimal space?
     
  6. Offline

    Diamondo25

    Sort of, it will automatically assign 6GB so you are sure there won't be lag when more is needed.
     
  7. Offline

    SlyCooperMan

    I thought that when more was needed it just gave more until it reached the max size allowed, but I guess you learn something new everyday. Thanks for the help!
     
  8. Offline

    ImminentFate

    Ultimate code for running your server:
    PHP:
    @ECHO OFF
    java 
    -server -Xmn2G -Xms6G -Xmx7G -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=-XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
     
    Or, if that's too much, you can use this simpler one:
    PHP:
    @ECHO OFF

    java 
    -server -Xmn2G -Xms6G -Xmx7G -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
     
  9. Offline

    SlyCooperMan

    So what exactly does that do? I can't seem to figure it out.
     
  10. Offline

    Diamondo25

    Set the Java VM to server mode, sets Min Ram Usage to 6 GB, Max Ram Usage to 7 GB and sets the heap size for young generation to 2 GB.
     
  11. Offline

    SlyCooperMan

    Ooh, technical. Since my server runs on linux, is there a .sh version that I could use for my liking?
     
  12. Offline

    ImminentFate

    oh. well, everything stays the same, just the beginning of the code changes where you give it the sh command. Everything is java, so nothing changes from platform to platform
    Actually, post your current startup command here, and i will modify mine to fit easily
     
  13. Offline

    SlyCooperMan

    Code:
    #!/bin/sh
    BINDIR="$(dirname "$(readlink -fn "$0")")"
    cd "$BINDIR"
    java -Xincgc -Xmx3G -jar craftbukkit-0.0.1-SNAPSHOT.jar
    That's what I use most of the time, and yes, I know 3 gigs isn't that much.
     
Thread Status:
Not open for further replies.

Share This Page