Assigning more RAM to a server GUIDE!

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

  1. Offline

    CevinWa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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?
  2. Offline

    bonesnrobes

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    This post has been edited 1 time. It was last edited by bonesnrobes May 29, 2012.
  3. Offline

    ShadowFury12

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

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

    Delaunois

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.

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

    ---PeT---

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    "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.

    This post has been edited 2 times. It was last edited by ---PeT--- Jun 20, 2012.
  6. Offline

    Delaunois

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.

    This post has been edited 1 time. It was last edited by Delaunois Jun 21, 2012.
  7. Offline

    InhumanSkills

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  8. Offline

    InhumanSkills

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Make sure you are using x64 bit java.
  9. Offline

    Delaunois

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  10. Offline

    Dem0123

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    still only got 190mb of ram :( and i am not running 64bit

    This post has been edited 1 time. It was last edited by Dem0123 Jun 24, 2012.
  11. Offline

    claudegriffith

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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)
  12. Offline

    frdmn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  13. Offline

    offroadguy56

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  14. Offline

    Omnitv

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This is a very very old thread.
  15. Offline

    TekeDome

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can someone make the config file for 1.3.1 R 2.0 with 2 gb of ram?
  16. Offline

    InhumanSkills

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That doesn't mean it's bad lol.
  17. Offline

    Jertyrano

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ok I got a little problem, I just installed java 6 64bits using ie 64bits, already had java 7 64&32bits installed, but whenever I start my bukkitserver, it says :
    Error occurred during initialization of VM
    Incompatible minimum and maximum heap sizes specified
    Press any key to continue...

    My bat file :
    @Echo OFF
    "C:\Program Files\Java\jre6\bin\java.exe" -Xmx1024M -Xms2096M -jar craftbukkit.jar
    PAUSE

    Changing jre6 to jre7 doesn't help...
    Got 8gb ram, i5 3570k, hd 6950
    Suggestions?

    This post has been edited 1 time. It was last edited by TnT Oct 23, 2012.
  18. Offline

    ImminentFate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    you've got the max and min the wrong way around :p try this:
    PHP:
    @Echo OFF
    "C:\Program Files\Java\jre6\bin\java.exe" -Xms1024M -Xmx2048M -jar craftbukkit.jar
    PAUSE
  19. Offline

    Darky1126

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @ImminentFate You may wish to clarify.
    Xms = Smallest (Minimum RAM used) heap
    Xmx = Largest (Most RAM allowed to be used) heap
  20. Offline

    Jertyrano

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Wow, didn't see that lol. Still weird I had that wrong since I copy/pasted, but thanks :) It works perfectly now.
  21. Offline

    ShadowedDreamer

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ok. This is an urgent plea for help. XD i have done all of what you have said to do and i am still getting errors saying basicly "not enough memory"which prevents my server from starting up. Its even too low ( or something ) that bukkit is unable to create a crash report. Please message me directly as i dont know what information would/will make it easy for someone to harm my network. Please and thank you are the magic words <3
  22. Offline

    jack10310

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    When I paste that in my .bat file This happens:
    Error: missing `server' JVM at `C:\Program Files\Java\jre7\bin\server\jvm.dll'.
    Please install or use the JRE or JDK that contains these missing components.
    Press any key to continue . .
  23. Offline

    deussingularis

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    My server is write like this:

    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit.jar
    PAUSE

    and if I try either to put 4G or 4096M, it doesnt works and appear this :

    Invalid maximum heap size : -Xmx4096M
    The specified size exceeds the maximum representable size
    Error: Could not create the Java Virtual Machine

    This post has been edited 1 time. It was last edited by TnT Apr 1, 2013.
  24. Offline

    captainploo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I really need help with this.

    I keep getting ,"did system overload or did system time change?" and I have already put 12 GB to the run.bat and I put Realtime in task manager and I have put the code in java and I still keep getting that error.

    Is there still a way I can solve this?

    This post has been edited 1 time. It was last edited by captainploo May 18, 2013 at 9:08 PM.

Share This Page