Can I host 2 or more servers on one PC?

Discussion in 'Bukkit Discussion' started by RG_PankO, May 27, 2011.

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

    RG_PankO

    I was wandering - Is there a way to host 2 or more servers on one PC?

    On the post next to mine there is that dude that siad he don't have any lag on 2 server with 40 slots each.
    Can I do something like this on 1 machine?
     
  2. Offline

    tha d0ctor

    yes but it is completely dependent on your setup, most importantly RAM and connection quality
     
  3. Offline

    RG_PankO

    For 2 servers 30 slots each can you please just suggest what do you think - how much ram and what internet connection. - btw for the internet connection the most inportant part is the upload, right?

    Why is that WoW servers for 145871581 thousands of player need lower qulity servers then a minecraft with 50 players :/ ?
     
  4. Offline

    Phaedrus

    WoW runs on clusters of powerful servers. It's a completely different architecture and design. It's apples to oranges really.

    Minecraft is just very inefficient with the way it handles world data. If WoW had to stream realtime world data to the players constantly it would be just as bad as minecraft. The Wow world is static and doesn't really change, so when you install the multi gig game you have a copy of the world data on your pc and it never changes. the minecraft world is Voxel based, meaning all the world data near the player has to be sent to the player, including things underground that you cant even see. And the client doesn't store that world data locally for very long. Every time to leave an area it discards the world data completely, meaning the next time you go back it has to be resent all over again.

    The solution is a local cache for world data that gets compared to the server state, that way only changed data gets sent. Ideally you could optionally pre-download all the world data from your favorite server in one go, and then only receive changes to it on a regular basis, plus immediate changes to the area you are currently in.

    Anyway, that's more a description of WHY minecraft performs so poorly, rather than an answer to your question. To answer your question we really need to know what kind of hardware you have access to. but generally, since minecraft is very single threaded, you can probably easily host 2 half decent servers on a single system provided you have enough ram and cpu power, and a fast internet connection.

    Lets say you need something like this for two 20-30 slot servers....
    a modern CPU with at least 4 cores running at 3ghz.
    4-8 gigs of ram per server depending on plugins.
    Very fast hard drives to serve out world data, or a ramdisk
    and probably 5Mbps per server
    you'll probably want to use MySQL for any plugins that have that option
     
    Oscarius likes this.
  5. Offline

    Xaostica

    Oh yes.
     
  6. Offline

    Orcem12

    MySQL will organize the server a lot better and reduce lag and may also increase members. I also use Linux on a separate computer and it makes things run a lot smoother then Windows or MAC lets it. :)
     
  7. Offline

    kahlilnc

    You can just use different Ports.
    EX:
    43.34.33.343:25565
    43.34.33.343:34343
    :) I hope that works.
    PS, those aren't real ip's lul

    EDIT: When someone joins one, they have to use the full ip with the port number.

    And it's not all about the RAM, want proof? Google brohoster's server hosting. they host over 3700 minecraft servers. They use minimal Ram and host Maximum amount of people on it with there other great specs. And redstonehosting does have great cheap prices too. And minimal ram that I have seen. But brohoster has more testimonials.

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

    Nathan C

    Yeh, try them out.

    They use little RAM, and it works good for a while, but then when RAM starts to leak or plugins want to use more, it starts to lag and eventually crashes.

    Brohoster is a gimmick.
     
  9. Offline

    kahlilnc

    I doubt that. :eek: No one adds to many plugins to where you can't take anymore, there is always a limit to everything. I have 93 plugins and I have no problems. lulz. :cool: And on BroHoster they have 500+ testimonials. I will hit you up with the link if needed. AND Brohoster has auto reboot when server crashes.
     
  10. Offline

    Nathan C

    Oh, did I mention that they don't give you standard ports? That is my biggest gripe....they can't even give you your own ip.

    The instead give you 23456 or some other random port.
     
  11. Offline

    kahlilnc

    What's bad about that?
     
  12. Offline

    pomo4ka

  13. Offline

    Rikaelus

    That's par for the course with online gaming. IP addresses, while the vast majority of them are unused, are sold in blocks to companies like Google and they'd have a limited number to work with within their allocated block(s).
     
  14. Offline

    RG_PankO

    @Phaedrus your answer is superb!

    Well.. now I am kind of disapointed. I need really strong machine to run a good server for Minecraft...
    I have dual core 2.6 processor, 3gb of ram.

    @Phaedrus I would also like to know: Not only what hardware I need to run 2 servers on 1 machine but how to do it? I mean the one server will take the 655325 port. What will the other server do? I read somewhere that you can adjust custom port that you like. How do we do this?

    Becouse if 2 people enter the same IP how will my computer know to what server to send this players?
     
  15. Offline

    Phaedrus

    You can specify the port in the server.properties file
     
    RG_PankO likes this.
  16. Offline

    RG_PankO

    I have several more questions :)
    But for one of them can't find any info on the google/forums.

    Can I somehow limit the world? To make it, lets say, 500x500 blocks so the server goes lighter?

    I read somehwere that the world is... actually... well you know... limitless?
    And how much the people explore in the world the havier it gets.
    Does it really work like that? And if so - can't I set boundaries so my PC don't crush if 4 people go in 3 diferen directions and just explore for hours/days :/
     
  17. Offline

    Lolmewn

    Get WorldBorder, and set the border to 500 or something.
     
  18. Offline

    RG_PankO

    Thx! I think this is exacly what I needed.

    Can someome please tell me what are the worlds?
    I mean.. I know there is normal - with trees, water and stuff :) and the otherone is Nether where is the lava and the spirits/ghosts.

    So I read somewhere that I can have two diferent worlds in normal view - with tree, water, with diferent rules - one pvp, one not, for example.

    Is there a plugin like "World manager" or something?
     
  19. Offline

    Phaedrus

    You need to use a combination of MultiVerse, which lets you have multiple worlds connected by portals you create, MultiInv, which allows for separate worlds to have distinct inventories, and Permissions, which allows you to define different access to commands for users/groups in each world.
     
  20. Offline

    RG_PankO

    @Phaedrus can I buy a beer please? How can you so good to me when I ask so dumb quesitons :/

    Ok here comes the next one :)
    I am still on 1.5_2
    When bukkit releases a stable version to 1.6 will I be able to use my world or I will have to start a new one?
     
  21. Offline

    Phaedrus

    You will be able to use your old world.
     
Thread Status:
Not open for further replies.

Share This Page