Problem with ram in start.bat

Discussion in 'Bukkit Help' started by simpatiqqo, Jan 31, 2012.

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

    simpatiqqo

    All right, first of all apologies for my bad english, im from argentina .
    Well, my main problem is that i have installed a new ram to avoid lag in my server. I have got 2 mushkin 2x2 1333 mhz and one kingston of 4gb. ( Just saying, theres is no problem with rams, works perfectly)
    All right, the server is all done, and it is all fine . But my problem is with my start.bat

    I Have got 64bit windows os so my bat should say something like this.

    @echo off
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xms1536M -Xmx1536M -jar craftbukkit.jar
    pause

    OK.. MY problem is that although i have got 8gb of ram , when i put a value higher tan 1536 says me the follow error:

    "ERROR OCCURRED DURING INITILIZATION OF VM
    COULD NOT RESERVE ENOUGH SPACE FOR OBJECT HEAP
    COULD NOT CREATE THE JAVA VIRTUAL MACHINE.
    PRES A KEY..."

    So, please give me the solution to put more ram :D i am wiling to put 4gb but when put higher that 1536 appear that error.

    HELP PLEASE!

    My e-mail is [email protected]

    Thanks.
     
  2. Offline

    chilldy

    Try Java7 instead of version 6.
     
  3. Offline

    simpatiqqo

    Ive download it, do i have to modiffy the .bat?
     
  4. Offline

    ArcheCane

    Yes modify the jre7 download place.
     
  5. Offline

    simpatiqqo

    it dosnt work

    please, can you write how the new .bat will be?
    i dont understand ... im recently learning

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

    chilldy

    Last edited by a moderator: May 23, 2016
  7. Offline

    simpatiqqo

    OK I HAVE CHANGE MY JAVA, I HAVE WRITE THE UBICATION OF NEW JAVA IN THE BAT BUT STILL I CANT ADD MORE RAM THAN 1500 :S
    Heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeelp
     
  8. Offline

    bassfader

    You are using the 32bit version of java. Download and install the 64bit Version and change your start.bat accordingly (remove the "(x86)"). This should work.
     
  9. Offline

    ShAd0w

    Okay so here is my suggestion...

    Use a program called CCleaner to completely remove/uninstall Java. After you have uninstalled java restart the computer. Reinstall the 64bit version of java and create a new Start.bat file with this...

    After you have done this, restart one more time. Then start your server up without any plugins installed. and slowly build it back up to its current state. If this doesn't resolve your problem let me know something here and ill run you through a troubleshoot for the "Could not run VM " error.
     
Thread Status:
Not open for further replies.

Share This Page