Assigning more RAM to a server GUIDE!

Discussion in 'Bukkit Help' started by InhumanSkills, Jan 21, 2011.

  1. Offline

    InhumanSkills

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You wont see any changes unless the server is under heavy load. The server will take what it needs but you set it's bounds. So the least it will take is 1Gb and the most is 3Gb.
  2. Offline

    InhumanSkills

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    There is no pro/con for not using incremental numbers. Java uses binary numbers. One gigabyte is equal to 1024^3 bytes. 8 bits can have a value from 0-255 (256 values) also a power of 2 (2^8) anyway it comes all down to how your computer is engineered. Read more here.

    So in essence Java will use this system to allocate ram. Meaning that it will only take numbers that are in this binary standard.
  3. Offline

    Techcuron

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Have a 64bit system and have Java 64bit as well.

    This post has been edited 1 time. It was last edited by Techcuron Jan 13, 2012.
  4. Offline

    spartanl99

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Windows sucks, not Mac. I think you were confused for a moment there.
  5. Offline

    DuckyDanger

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    I'm getting the same as this, with a 64-bit system and 64bit Java..
  6. Offline

    InhumanSkills

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Dare you to host a Minecraft server for more than 100 people on a Mac. LOL
  7. Offline

    InhumanSkills

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That's odd. It's been a while since I have played around with Ubuntu.
    I will take a look at it when I'm not swamped with my Aerospace Engineering. (College...)
    Please refer here for more help, while I learn more about the issue.

    This post has been edited 1 time. It was last edited by InhumanSkills Feb 2, 2012.
  8. Offline

    Guaele

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I have a 64 bits computer.
    Did i have to install a 64 bits JRE6?
  9. Offline

    Andrich2000

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm just wondering. Do u select how much ram u have? or how much goes to the server? Does it affect the computer (laptop) in anyway? My laptop is 6 gig ram and say i put 2 or 4 gigs into the server. Will it make all other things slower? What would the recommended amount of players be? (I need at least 8 slots) Thanks for your help!
    -Andrich2000
  10. Offline

    ShootToMaim

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  11. Offline

    Surgikill

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I keep getting the error that it cannot open the file. I have tried renaming the file and renaming the path in the .bat file. I have no idea what I am doing wrong.
  12. Offline

    Amaster123

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I have a problem.. i cant add more RAM to my server check it out.
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit.jar
    PAUSE
    Please help me everytime switch Xmx1G to 2G or something it doesnt work. and others are Xms1024-Xmx2048 or something like taht. but if mine just say Xmx1G then how would i add more RAM? Please help me.
  13. Offline

    nicko6113

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    just throwing this out there but mac is unix with a fancy gui. linux is a version of unix.

    the only difference is where java is located.
    #!/bin/sh
    "/usr/bin/java" -d64 -Xmx1G -Xms1G -jar craftbukkit.jar
  14. Offline

    pluginman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i followed your instructions but i cant launch the bat it always says unable to acess jar file craftbukkit jar.
  15. Offline

    SH4RK3YBOY

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i have windows seven 64 bit operating system and i set up a server for me and one friend he says he has lag but i dont experience any lag and he alsso times out.i seen videos and read the tutorial above im thinking of adding more ram.my computer has 4gb of ram but im afraid if i bump it up it will slow the computer and my dad would kill me.lease help thanks
  16. Offline

    SH4RK3YBOY

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    is 1024 enough for a minecraft server i have four gb of ram and 64 bit operating system
  17. Offline

    InhumanSkills

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You yourself will be able to test the performance of the server. If you have no lag then the server itself has no lag. The reason your buddy is lagging is because of your connection. You need a pretty good connection to have anything more than 5 people online. Rule of thumb is for every person you have on your server have 512mb (mega-bits) of up and download speed. Same goes for the client. He also needs a decent connection.
  18. Offline

    InhumanSkills

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Make sure the name of the .jar is correct. The name in your .bat has to match the name of the jar.
  19. Offline

    InhumanSkills

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Cool ill take that down. If anyone has a nice guide on how to set up a server on a Mac I would be happy to add it. I simply don't know many people who are doing it lol.
  20. Offline

    InhumanSkills

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You're using 32-bit java. Make sure you have 64-bit installed. 32-bit Java can handle a max of 1.5 GB.
    To download 64-bit java simply use 64-bit internet explorer and go to java's home page or just click HERE.
  21. Offline

    ---PeT---

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I have a question, and it might sound stupid, but hopefully you will not ignore me. ;)
    Does it matter which is first: -Xmx or -Xms? My run bat looks like this:
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx4096M -Xms4096M -jar craftbukkit-1.2.3-R0.3-20120322.072243-36.jar
    PAUSE
    And I'm just curious about those xm things, and what does "-Xincgc" do?
    Everything works fine, I have no problems on my server, but I'm still confused about that does it matter which is first? :L
    And what is that "-server -d64" thing:

    ?

    ps. Very good guide!

  22. Offline

    pluginman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i have a problem when i try to add more than 2 gb ram to my server. it says:unrecognised option: -Xm1024m
    error:could not create the java virtual machine.
    error:fatal error......
  23. Offline

    ---PeT---

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Maybe even I can help. :cool: If you have it "-Xm1024m" It is then incorrectly writed. (I suppose, not sure tho. :L)
    If the other -Xm thing is "-Xmx1024M", change your "-Xm1024m" to -Xms1024M
    If there already is -Xms1024M, change your -Xm1024m to -Xmx1024M.
    Hopefully you can solve that out. :)
  24. Offline

    InhumanSkills

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Xincgc just means Incremental Garbage Collection.

    From Java's site
    -server -d64 simply state that Java should treat this .jar as a server. And d64 mean using 64bit java.

    This post has been edited 1 time. It was last edited by InhumanSkills Mar 26, 2012.
  25. Offline

    InhumanSkills

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes that is correct =D thank you for helping me out. Between school, work and all other sorts of stuff this can get pretty taxing.
  26. Offline

    Vince

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    what is the pink "-server"
  27. Offline

    ---PeT---

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That is what InhumanSkills said.
    I suppose that "-server" can be replaced with "-jar" if needed. Or maybe it is the same thing. :rolleyes: I don't know but I have it as "-jar" in my ".bat" files.
    Hopefully this helped a bit.
  28. Offline

    InhumanSkills

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Unfortunately -server is not the same as -jar. Forgetting to put -jar will prevent the server from launching. "-server" is a tag you put if you want Java to launch the Java HotSpot Server VM. Read more about tags here.
  29. Offline

    ---PeT---

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ohh, now everything makes sense! Lol, thanks. :p
  30. Offline

    ---PeT---

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    My curiosity started again. [fire] Does that server thing give even more speed to server
    or does it help in any way your server? :p

Share This Page