how do I run 2 servers at once?

Discussion in 'Bukkit Help' started by rykuu, Feb 16, 2013.

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

    rykuu

    Ok, so I am using Ubuntu Desktop for my server OS, and I have bukkit servers on it (one is mine the other is my sisters). I know to have them on different ports, which I do and both are forwarded and work, but for some reason I cannot run the 2 servers at the same time. I have one up, but when I start another the terminal disappears after a moment of being up, and the server never comes up. It doesn't mater the order of the servers being brought up (I can start with hers or mine, but nada).

    Any help would be nice.
     
  2. Offline

    Lolmewn

    I'm guessing the Java VM cannot allocate enough memory. How much memory do you have and how much are you giving them?
     
  3. Offline

    rykuu

    oh.... well that might be the problem. I only have 3/4 gig of RAM (ya, I need more, I know)
     
  4. Offline

    Lolmewn

    Try assigning one gig to every server. See if it starts then.
     
  5. Offline

    lokpique

    What startup string are you using for the servers... (it's not "might" be the problem... this IS the problem)

    He doesn't have a gig. he has 3/4 of a gig... 728 MB.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  6. Offline

    rykuu

    Here is the code in the SH file, I assume that is what you mean by startup string.

    Code:
    #!/bin/sh
    BINDIR=$(dirname "$(readlink -fn "$0")")
    cd "$BINDIR"
    java -Xms1024M -Xmx1024M -jar craftbukkit.jar -o true
    
    If I have to adjust the amount of RAM one gets, I would like to give priority to one (mine) and the bare minimum for 1-2 players for the other (her's)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  7. Offline

    Lolmewn

    Oh. And then two servers? That's going to be hard :confused:
    If you want, you can try assigning 256 MB to each then.
     
  8. Offline

    lokpique

    Ok, given that you said you only have 768mb of ram, you can't allocate 1024 to ONE process, let alone 2.
     
Thread Status:
Not open for further replies.

Share This Page