LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2011, 09:21 PM   #1
unenergizer
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
Exclamation [Help] "error=12, Cannot allocate memory"


I am hosted on a VPS (OpenVZ) with:
Memory: 3gb
Burst: 3gb
OS: Cent OS 5 32 bit
Java Version:
Quote:
java version "1.6.0_17"
OpenJDK Runtime Environment (IcedTea6 1.7.10) (rhel-1.20.b17.el5-i386)
OpenJDK Server VM (build 14.0-b16, mixed mode)
I am receiving an error when I start bukkit (a minecraft server software). I have properly installed java. And I am in the correct directories.

Code:
 java -Xms512m -Xmx2600m -jar craftbukkit.jar nogui
After doing that command I get the following:

Quote:
[root@server1 Minecraft]# java -Xms2600m -Xmx2600m -jar craftbukkit.jar nogui
[Lnet.minecraft.server.Statistic;@1319c
146 recipes
[Lnet.minecraft.server.Statistic;@1319c
16 achievements
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:66)
at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:406)
at org.bukkit.craftbukkit.Main.main(Main.java:87)
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
22:21:15 [INFO] Starting minecraft server version Beta 1.5_02
22:21:15 [INFO] Loading properties
22:21:15 [INFO] Starting Minecraft server on *:25565
22:21:15 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-686-g71ef92a-b714jnks (MC: 1.5_02)
22:21:15 [INFO] Preparing level "world"
22:21:15 [INFO] Preparing start region
22:21:16 [INFO] Done (0.074s)! For help, type "help" or "?"
Do notice the line in the above quote ""sh": java.io.IOException: error=12, Cannot allocate memory."

The server will generate a world, but you can not connect to it using the MC client. Does anyone know what the problem is? I have googled for this problem for literally the past 4 hours and I am getting no where. I appreciate and and all help I receive. If you, the professionals, need any more info from me, just ask.


Thank you for your help.
Andrew
 
Old 04-24-2011, 11:54 AM   #2
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Rep: Reputation: 46
I've never used craftbukkit before, but what program is it trying to run named just "sh"? is there maybe an error in one of the files for it to startup where it should be running something.sh and for some reason its trying to do a sh?

can you reinstall craftbukkit over top of your current install to see if that cleans it up? it almost reads like its a craftbukkit problem not a java problem.

just my 2 cents.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error: "SIOCSIFADDR: Cannot allocate memory" adding virtual IPv6 Addresses janneaa Linux - Networking 7 06-03-2013 03:44 PM
Problem with GIMP: error "failed to fork - cannot allocate memory" heffo_j Linux - Software 5 05-24-2009 01:19 AM
error "cannot allocate memory" pprs project Linux - Newbie 1 09-18-2007 05:41 AM
"bash: fork: Cannot allocate memory" error guarriman Linux - General 1 04-05-2007 01:46 PM
ndiswrapper troubles: "Failed to allocate DMA coherent memory." Oodini Linux - Wireless Networking 1 01-12-2005 01:20 AM


All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration