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

    InhumanSkills

    That doesn't mean it's bad lol.
     
  2. Offline

    Jertyrano

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

    ImminentFate

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

    Jade

    ImminentFate You may wish to clarify.
    Xms = Smallest (Minimum RAM used) heap
    Xmx = Largest (Most RAM allowed to be used) heap
     
  5. Offline

    Jertyrano

    Wow, didn't see that lol. Still weird I had that wrong since I copy/pasted, but thanks :) It works perfectly now.
     
  6. Offline

    ShadowedDreamer

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

    jack10310

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

    deussingularis

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

    captainploo

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

    131ad3

    i have java 64bit but i cant allocate more than 600m of ram for my server
    Echo OFF
    "%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -Xms600m -Xms600m -jar craftbukkit.jar
    PAUSE
     
  11. Offline

    InhumanSkills

    Does your computer have enough RAM? Second make sure you do M instead of m. In order to find out how much RAM you have left and available hold CTRL+SHIFT+ESC, click on the Performance tab and under "Physical Memory (MB)" check "Available" that's the maximum you can allocate without crashing.
     
  12. Offline

    fredghostkyle1

    sorry way off topic here: shit that speedtest.net link you have is a a university? WOW. Ok back: nice guide i dont run my servers like that but if it works!
     
  13. Offline

    131ad3

    My com has 6gb of ram but i can't assign more than 600 mb
     
  14. Offline

    rrk01

    My computer has 12gb ram and I can't give more than 1gb to the same problem.
    I have 131ad3's problem :(
     
  15. Offline

    fredghostkyle1

    64 bit OS and 64 bit Java. Then edit your Run.bat, (if something other than windows i dont think there should be a problem)

    read post above this one by me.

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

    rrk01

    fredghostkyle1
    wait what do i have to do?

    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -Xms1024M -Xmx1024M -jar craftbukkit.jar
    PAUSE



    That's my bat file

    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    Press any key to continue...


    That's my error

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

    fredghostkyle1

    looks like u need 64 bit java. Google that, download it and instal. If your still getting that error something is wrong in the way you launch.
     
  18. Offline

    rrk01

    Nevermind, I just had to disable mob/animal spawns in my plot world.
     
  19. Offline

    rrk01

    @fredghosekyle1
    Ok, I downloaded 64 bit java, Whenever i try to give more than one gb of ram to my server it gives the heap space error. Why?
     
Thread Status:
Not open for further replies.

Share This Page