[Fixed but not completely solved]Can't add more RAM

Discussion in 'Bukkit Help' started by Zeus5966, May 2, 2011.

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

    Zeus5966

    My server is running 1GB of RAM but I wan't to bump it up to 2GB. I have 8GB on my computer but it doesn't tell me how much RAM I have usable. This is the error

    Code:
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    Press any key to continue . . .
    Any help would GREATLY be appreciated. Sometimes the lag is too much for my players
     
  2. Offline

    thecoolwolf

    i had that problem to. im guesing your using windows 7 64bit cuz it install java32bit instead of 64bit cuz most browsers cant use java 64bit. just download java 64bit here: http://www.java.com/en/download/manual.jsp :)
     
  3. Offline

    MSC

    Be sure you uninstall the 32bit version first (find it in Control Panel -> Uninstall A Program) so that it'll definitely use the 64bit one.

    In addition to allowing more RAM, the 64bit version can also be started with the "-server" option, which also optimizes performance.
     
  4. Offline

    Zeus5966

    Okay thank you both but I now can't find the path for the 64bit java... Where does it install to? and should I download both 64 and 32 bit?
     
  5. Offline

    thecoolwolf

    both can be installed at the same time ;) or at least i read that somewere xD any chanse you know how i can fix this btw? http://forums.bukkit.org/threads/problem-with-dll.15764/
     
  6. Offline

    Zeus5966

    Sorry no idea how :( I'd say 1. Don't use that program again 2. Download something off the internet and maybe it might rebuild itself?
     
  7. Offline

    thecoolwolf

    C/program/java :D and as i said above i think it works with both

    worth a shot and i allready deleted the program just in case it had been infected with something nasty:p

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

    Zeus5966

    OH MY GOD thank you so much. I give you diamonds for the help.
    @MSC I'm also curious about -server option. How do you set that up?
     
  9. Offline

    Zeus5966

    hello -server???
     
  10. Offline

    runyet1

    what is the -server option and what does it do?
     
  11. Offline

    Zeus5966

    I don't know. I'm trying to get the answer from MSC
     
  12. Offline

    cjc343

    You can add flags to the command you use to start java to customize the JVM. -server is one of those flags, and causes the server VM to be used. Depending on what other flags you use, this may already be the case, or may not be.
     
  13. Offline

    ledhead900

    Add these values and then leave it alone -Xms4G -Xmx4G remove the existing values first tho :). Make sure your using Java64bit
     
  14. Offline

    Zeus5966

    @cjc343 Explain how to add these flags

    @ledhead900 I got it fixed I just want more info
     
  15. Offline

    cjc343

    @echo off
    java -server -Xms1024M -Xmx1024M -Xmn150M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
    pause
     
  16. Offline

    Zeus5966

    I get this error
    Error: could not open `C:\Program Files\Java\lib\amd64\jvm.cfg'
    Press any key to continue . . .
     
  17. Offline

    TnT

    Reinstall Java. Easiest way - open x64 IE, go to Java.com and download the latest Java. Install and try again.
     
  18. Offline

    Omarathon1999

    Hello i have a fix.
    1. Do what thecoolwolf did.
    2. Then check if you have alot of files in your bin folder located in C:\ProgramFiles\Java\jre7\bin
    If you dont have alot then go to find the java in the ProgramFiles(x86) and copy the bin folder and replace the one in the 'ProgramFiles'. Then you are good to go!
     
Thread Status:
Not open for further replies.

Share This Page