Assigning more RAM to a server GUIDE!

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

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

    Surgikill

    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.
     
  2. Offline

    Amaster123

    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.
     
  3. Offline

    nicko6113

    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
     
  4. Offline

    pluginman

    i followed your instructions but i cant launch the bat it always says unable to acess jar file craftbukkit jar.
     
  5. Offline

    SH4RK3YBOY

    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
     
  6. Offline

    SH4RK3YBOY

    is 1024 enough for a minecraft server i have four gb of ram and 64 bit operating system
     
  7. Offline

    InhumanSkills

    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.

    Make sure the name of the .jar is correct. The name in your .bat has to match the name of the jar.

    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.

    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.

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

    ---PeT---

    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!​

     
  9. Offline

    pluginman

    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......
     
  10. Offline

    ---PeT---

    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. :)
     
  11. Offline

    InhumanSkills

    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.

    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.

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

    Vince

    what is the pink "-server"
     
  13. Offline

    ---PeT---

    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.
     
  14. Offline

    InhumanSkills

    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.
     
  15. Offline

    ---PeT---

    Ohh, now everything makes sense! Lol, thanks. :p
     
  16. Offline

    ---PeT---

    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
     
  17. Offline

    CevinWa

    I have a question.
    I have a server that runs windows server 2003 32-bit with 12 gb ram. I have boosted the java.exe in the task manager and i just wondered if it will use all of the ram or just 1 gb when i've boosted it with priority realtime?
     
  18. Offline

    bonesnrobes

    ok so this is my run.bat
    Echo off
    "C:\Program Files\Java\jre6\bin\java.exe" -Xms1024M -Xmx6144M -jar craftbukkit.jar
    pause
    and this is my error:
    Invalid maximum heap size: -Xmx6144M
    The specific size exceeds the maximum representable size.
    Could not create the Java virtual machine.

    im running 64bit windows with 8gb of ram and intel quad core if that helps and im 90% sure i just downloaded java for 64 bit. Any help would be great!!
    EDIT: nvm i fixed it by changing jre6 to jre7
     
  19. Offline

    ShadowFury12

    Show Spoiler

    When i try adding ram the run.bat file says that there is too much memory or something about UM. Even when i make it run on only 2GB.
     
  20. Offline

    Delaunois

    I was looking for a bit of help to extend the RAM of my server. So i came here on your tut followed the steps but the ram stays the same look i got a screenshot.
    Show Spoiler

    [​IMG]
    The memory variates between 126mb an 327mb please respond.
     
  21. Offline

    ---PeT---

    "It only really comes into effect when your CPU is running at 100%, in which case, the higher priority processes will get more CPU cycles than the lower priority processes."
    I'm not sure but I haven't seen any big changes by setting that to high or realtime.
    And in realtime it just "give" more CPU to programs you are using in that time.

    It seems like you have 32-bit operating system: your maxium ram amount is 1024M (1GB).
    But if you don't have 32 bit system, give more information.

    Did you do anything wrong? If you think you didn't, try again. :D (Make sure you read right guide, for 32 or 64 bit operating system.) I can't help in any other way at the moment, that "Pail Server Manager" is not familiar to me. :oops:

    I'm just trying to help InhumanSkills by replying on some posts. I'm sure he/she will help you out as soon as he/she arrives.
     
  22. Offline

    Delaunois

    So like you said i tryed again but it still stays between 126mb and 327mb. If you want you can take a look with teamviewer because its also installed.
     
  23. Offline

    InhumanSkills

    Your computer is only going to use as much ram for the server as it needs.
    There would be no point for Minecraft to use all the Ram you allowed it to use.

    The usage will increase as the amount of players on the server increase or as the server utilizes more resources.

    Make sure you are using x64 bit java.

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

    Delaunois

    Oke thanks i tought already something like that because yesterday there wer 10 people online and a big map and the memory got to 700mb the higest i reached at tis moment still got 3 Gb left
    thanks
     
  25. Offline

    Dem0123

    still only got 190mb of ram :( and i am not running 64bit
     
  26. Offline

    claudegriffith

    i have a 64bit computer but how do i donwload 64 bit java and i keep getting the error anable to access jar file craftbukkit.jay (that is what my crat bukkit file is called)
     
  27. Offline

    frdmn

    1. http://www.oracle.com/technetwork/java/javase/index-137561.html
    2. Try to cd into your Directory that your .jar contains before you start the "java -jar ..." command
     
  28. Offline

    offroadguy56

    well. i somehow managed to get it to work, though i had to change a couple things.
    for one, if i had the "-d64" in the code the server wouldnt execute. trying to execute the server in 64bit java 6.
    and second, not every1 has the jar file with the name craftbukkit 0.0.1.jar or whatever. infact my jar is: craftbukkit-1.2.5-R1.3-20120425.174419-2.jar so i replaced the 0.0.1.jar with the other jar.
    server works good now.
     
  29. Offline

    Omnitv

    This is a very very old thread.
     
  30. Offline

    TekeDome

    Can someone make the config file for 1.3.1 R 2.0 with 2 gb of ram?
     
Thread Status:
Not open for further replies.

Share This Page