Daviant
Posts: 3
Joined: Fri Dec 12, 2014 9:04 pm

Minecraft server crashes and rebuilds map everytime

Fri Dec 12, 2014 9:16 pm

Hello everyone!

First time i'm posting to this forum as i'm still quite of a newbie with Linux and Raspberry pi's.
I wanted to use my RPi for multiple things, but one of the first things I wanted to try is running a minecraft server.

I have a Raspberry pi B+ with Raspbian wheezy 2014-09-09
Using a class 10 SDHC card.

The problem with my server is as following:
A friend of mine helped me install my SPIGOT based MC Server.
After running the following command: sudo java -Xms256M -Xmx496M -XX:MaxPermSize=256M -jar /home/pi/spigot.jar nogui
It takes from 600 seconds to 5000 (!) to generate the map. I try to log on with my MC client and here's what happens:

It loads so slow, my map has to load for several minutes on the client. Thén, my server is not responding and neither is my Pi at times. As a beginner I'm really out of ideas what it could be (if I had any at all).
When i try the above command again, it starts generating level0,1 and 2 all over again.. don't know what to do.

I hope this information was enough to get some help from you guys, would really appreciate it.

Thanks in advance,
Dave


Genius23008
Posts: 54
Joined: Sun Jun 03, 2012 6:50 am

Re: Minecraft server crashes and rebuilds map everytime

Mon Dec 15, 2014 2:54 am

The Pi simply is not powerful enough to run a Minecraft server. While some people have got decent results, you are better off buying a old computer to host it on - one player online causes lag. Out of personal experience, gigabytes of RAM is needed for a decent server.

The reason the Pi hangs is because it has run out of memory most likely, or that the CPU is maxed out, and because of this it will not finish saving maps properly and produce corrupt folders. These will be rewritten each time as the Pi cannot read them.

Daviant
Posts: 3
Joined: Fri Dec 12, 2014 9:04 pm

Re: Minecraft server crashes and rebuilds map everytime

Mon Dec 15, 2014 9:50 am

Thanks for your reply.
I understand that it's not as good as a computer with more RAM, but my mate has got it to work fluently so that's what still leaves me confused since i've seen it myself. Any explanation for this? Maybe an older version of MC?

Thanks.

cems
Posts: 1
Joined: Sun Jan 04, 2015 1:15 am

Re: Minecraft server crashes and rebuilds map everytime

Sun Jan 04, 2015 4:19 am

reposting this since it did not appear the first time.

I have the same problem. looking at the crashlog it says the problem was a java error on the long number. I see that in november 2014 Arm and oracle announced an improved Java for arm was released. Cryptically they noted that it woul dnot work on raspian due something called softABI versus hardABI.

perhaps this has something to do with this? I have no idea. But if the solution is just to wait for them to fix java then it would be good to know.

Return to “Troubleshooting”