Only 1 GB of RAM and vanilla server runs fine, but bukkit gives "failed to initialize the VM"?

Discussion in 'Bukkit Help' started by ObiWanobi, Jun 19, 2011.

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

    ObiWanobi

    Yeah, so, my problem is pretty much up there in the title. The root of this problem is that my notebook, which I usually run minecraft and my server on, is in the shop, plus I want to set the server up on my desktop so that I can play on it without it eating my notebook's memory up. My notebook runs 32-bit Windows Vista and has 4 GB of RAM, and bukkit works fine on there.

    But on to the problem itself. I did take a look at this thread: http://forums.bukkit.org/threads/bat-file-explained.602/ which explains .bat files, but I thought that it was odd that the vanilla server ran fine yet bukkit gave me the error:

    Code:
    "Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine."
    I followed the instructions in that thread, and changed my .bat file to:
    Code:
    @echo off
    "C:\Program Files\Java\jre6\bin\java.exe" -Xms1024M -Xmx1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar
    pause
    as directed in the thread, but the problem persisted. (Is it relevant that the .jar works but the .exe of the vanilla server won't even open?)

    As I said in the title, I only have 1 GB of RAM, so is that the problem?

    At any rate, here are my answers to the questionnaire:

    1. What OS are you using (Brand and version - Ex. Windows XP SP3)?
    • I am running Windows XP (media edition if that is important) SP3
    2. What architecture is the OS you are running (x64 or x86)?
    • If this question means what I think it means, I am running a 32-bit OS.
    3. What version and architecture is your java install? (Type: java -version in command prompt.)
    • java version "1.6.0_26"
    • Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
    • Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
    4. Are you running any wrappers? McMyAdmin, mcadmin, Hamachi, etc?
    • No.
    5. What build of CraftBukkit are you running?
    • git-Bukkit-0.0.0-766-g3fc0460-b818jnks (I think that translates to build 818)
    6. What command are you using to run your CraftBukkit server?
    • I don't know? I just click it and it runs fine on my notebook but it gives me the "Failed to initialize VM" error on my desktop.
    7. What plugins are you running?
    • CommandBook
    • CraftBook
    • Permissions
    • War
    • WorldEdit
    • WorldGuard
    • Runecraft
    8. What error are you getting (post your server.log file if possible)?
    Code:
    "Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine."
    9. What have you tried already?
    • Searching for anyone else with this problem.
    10. Have you tried any of the things below?
    • Well, it says:
    • So I decided to post here since the problem does not occur when minecraft_server.jar is run (again, though, Minecraft_Server.exe won't even open for some reason. Minecraft.exe doesn't open either- I have to play it in the browser on my desktop <_>)
    Any help would be much appreciated.
     
  2. Offline

    dak393

    (unrelated but your java version and CB version can be updated :) )
    How much ram does your desktop have? Only 1Gig? Because I can tell you right now trying to reserve 1 gig for the server when you only have 1 gig available in total is just not going to work. try lowering the ram maybe 512 M?
     
  3. Offline

    ObiWanobi

    Good god, you're a genius.

    Thank you so much!

    EDIT: That is to say, lowering it to 512 MB worked like a charm!!!! :D
     
  4. Offline

    dak393

    Great :)
     
Thread Status:
Not open for further replies.

Share This Page