Whenever I start my server using nohup java -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer
without replacing the original server_level.dat
The server starts fine
But whenever I do replace the server_level.dat
With a different map
I get this in nohup.out
06:11:36 stdin: ioexception! No more direct console input is possible.
java.io.IOException: Bad file descriptor
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:199)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at com.mojang.minecraft.server.e.run(Unknown Source)
06:11:36 Loading level
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.lang.reflect.Array.newArray(Native Method)
Anyone know what the problem could be?
Is my server not big enough?
May be a bit off topic, but I prefer screen. You can shutdown your server without needing to do killall, access stdin and some other stuff. Of course that might not be the problem that killed it, could be the map either.
Rollback Post to RevisionRollBack
I disagree with you, therefore you are wrong.
Quality of output = Skill * Effort
As kraffslol said, that only ever happens normally if the map is broken somehow. Just try removing the map, first get to the directory wherever server_level.dat is, and through PuTTY run the command "-rm -f serverlevel.dat", do not upload a custom map yet. Now try just running the command "java -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer", notice I removed the nohup command. If the server starts fine like that, try uploading your custom map, and then try the command above. Note that the command without nohup in the command, once you log out from the SSH server, the Java process will shut off. Appending nohup at the beginning will continue running Java even if you sign out. What this will do is just help us pin point more as to where the error is coming from. One thing to try after this is just deleted the nohup files in your root directory, this sometimes cleared up nohup errors for me in the past.
So far I've only gotten one map to work
And it was a very tiny flat map
I'm using Fivebean.com
Mini VPS
Could that be the problem?
Do I not have enough memory?
Also with some maps that I've used
I get the error right after someone joins the server
Make sure the map you use is under 1mb. I was able to generate a 512x512x256 map and have it run just had to make sure it was under 1mb. Even 1.1mb it would crash.
Remove some caves, or trees... something.
I was using the trial Dreamhost PS averaging ~800mb of memory. It was just too much to be affordable at the moment.
Edit: Memory could be an issue, if you go over your allocated amount, for example 128mb, then java shuts down.
without replacing the original server_level.dat
The server starts fine
But whenever I do replace the server_level.dat
With a different map
I get this in nohup.out
06:11:36 stdin: ioexception! No more direct console input is possible.
java.io.IOException: Bad file descriptor
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:199)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at com.mojang.minecraft.server.e.run(Unknown Source)
06:11:36 Loading level
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.lang.reflect.Array.newArray(Native Method)
Anyone know what the problem could be?
Is my server not big enough?
Some of which I know work
But I think I might have found the problem
Thank you though!
Quality of output = Skill * Effort
And it was a very tiny flat map
I'm using Fivebean.com
Mini VPS
Could that be the problem?
Do I not have enough memory?
Also with some maps that I've used
I get the error right after someone joins the server
Remove some caves, or trees... something.
I was using the trial Dreamhost PS averaging ~800mb of memory. It was just too much to be affordable at the moment.
Edit: Memory could be an issue, if you go over your allocated amount, for example 128mb, then java shuts down.