Server startup: error=12, Cannot allocate memory (Build 493)

Discussion in 'Bukkit Help' started by Janb, Mar 7, 2011.

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

    Janb

    Hi, here is my environment info:


    Not running any wrappers, running build 493. Vanilla MC and build 440 do not give me the following error on startup:


    Code:
    java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory
            at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
            at java.lang.Runtime.exec(Runtime.java:610)
            at java.lang.Runtime.exec(Runtime.java:483)
            at jline.UnixTerminal.exec(UnixTerminal.java:297)
            at jline.UnixTerminal.exec(UnixTerminal.java:282)
            at jline.UnixTerminal.stty(UnixTerminal.java:273)
            at jline.UnixTerminal.initializeTerminal(UnixTerminal.java:77)
            at jline.Terminal.setupTerminal(Terminal.java:75)
            at jline.Terminal.getTerminal(Terminal.java:26)
            at jline.ConsoleReader.<init>(ConsoleReader.java:191)
            at jline.ConsoleReader.<init>(ConsoleReader.java:186)
            at jline.ConsoleReader.<init>(ConsoleReader.java:174)
            at net.minecraft.server.MinecraftServer.<init>(MinecraftServer.java:65)
            at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:396)
            at org.bukkit.craftbukkit.Main.main(Main.java:83)
    Caused by: java.io.IOException: java.io.IOException: error=12, Cannot allocate memory
            at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
            at java.lang.ProcessImpl.start(ProcessImpl.java:81)
            at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
            ... 14 more
    
    but 493 does. This is a completely clean run with no plugins or any sort of shenanigans. Also, the game seems to run fine in every other way, I'm just concerned that there's something I should remedy before switching everything over to the RB.

    I'm using:


    to run my server. I googled around a bit, only thing relative I could find was something about swap space and VPSs (it's a VPS, by the way) but I don't know if it's relevant. Thought I'd ask here first before anything else :)

    Also, sorry if this has been answered somewhere already, I was unable to find the same problem posted, with search.

    Anyone have an idea or similar issues?
     
  2. Offline

    Kilandor

    I'm getting this too, using ProvisionHost as VPS
     
  3. Offline

    Janb

    At least I'm not the only one :)
     
  4. Offline

    woodzy

    crap u guys to? thiught it was just me
    that is the ONLY issue my server has right now
     
  5. Offline

    santiainen

    let me guess, you all have linuxes? :p

    Edit: I didn't want that smiley D:
     
  6. Offline

    TnT

    Seems to be commonly happening to people running OpenJDK 1.6.0_17 - at least from what I've seen.

    Can you install Sun Java 1.6.0_24 and try that please?
     
  7. Offline

    Pablo

    I am having the same issue and I am running OpenJDK 1.6.0_17. I'll update and post results here.
    [MERGETIME="1299624564"][/MERGETIME]
    I removed OpenJDK and installed Sun Java 1.6.0_24 and the error message no longer appears. Now I hope server uptime improves!
     
  8. Offline

    TnT

    If you want to keep testing, see if you can updated OpenJDK to something newer than 1.6.0_17. You should be able to update that to 1.6.0_24 as well (I think).
     
  9. Offline

    Pablo

    I only switched one of two servers to Sun Java. I'll update the other one which is still running OpenJDK 1.6.0_17 and let you all know what happens.
     
  10. Offline

    Janb

    That was it for me too--thanks a lot.

    Also, for Linux noobs like me, a how-to (initially only typing 'yum install java' from following a set-up guide is one thing...):

    http://www.if-not-true-then-false.c...java-jdk-jre-6-on-fedora-centos-red-hat-rhel/
     
Thread Status:
Not open for further replies.

Share This Page