Gnaprout
Posts: 2
Joined: Mon Jul 01, 2019 7:07 am

Raspberry 4 & minecraft server?

Mon Jul 01, 2019 7:10 am

Hi everyone,

Since Java8 is no longer supported with Raspbian Buster, do you have a tutorial to install a MC server on Raspi 4?

User avatar
Gavinmc42
Posts: 3621
Joined: Wed Aug 28, 2013 3:31 am

Re: Raspberry 4 & minecraft server?

Mon Jul 01, 2019 8:29 am

You might have to wait until there is a 64bit OS for the Pi4
https://www.raspberrypi.org/forums/view ... 4&t=231660
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
rpiMike
Posts: 850
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: Raspberry 4 & minecraft server?

Mon Jul 01, 2019 8:39 am

You can download Oracle Java8 and install it :

https://www.oracle.com/technetwork/java ... 33151.html

or my Minecraft install does this for you:

https://www.raspberrypi.org/forums/view ... 8&t=243946

Gnaprout
Posts: 2
Joined: Mon Jul 01, 2019 7:07 am

Re: Raspberry 4 & minecraft server?

Mon Jul 01, 2019 9:14 am

Thanks for answers !

I follow this tutorial and it seems to work (just have to replace the version number) : https://blog.livthomas.net/installing-j ... erry-pi-3/

Jtreferee
Posts: 1
Joined: Mon Jul 08, 2019 12:52 pm

Re: Raspberry 4 & minecraft server?

Mon Jul 08, 2019 12:53 pm

Hi - have you got this working? If so, how does it run? I'm very interested in getting this running but can't afford to buy an RPi only for it to not work..

Thanks!

JT

ayitzyaboi
Posts: 1
Joined: Fri Jul 12, 2019 6:36 am

Re: Raspberry 4 & minecraft server?

Fri Jul 12, 2019 6:42 am

Hey, so I have my server up and running on my Pi 4, so far runs pretty great. I’ve had no connection issues, Ram issues, or power issues yet. The only problem I can see arising is that I can’t seem to get more than 2GB to allocate for the server. Basically, when I run the java file, I can only specify up to 2000 MB using the Xmx modifier. Anything passed that and I get an error. Anyone else having this issue?
I’m running Raspbian stretch with a spigot server.

hdtv35
Posts: 3
Joined: Mon Jun 20, 2016 8:26 pm

Re: Raspberry 4 & minecraft server?

Wed Jul 17, 2019 10:27 pm

Just wanted to comment on my experience. I'm using Raspbian Buster with Paper Spigot as the server. OpenJDK11 Java 11 for my version of Java. My script commands are:
"java -Xms1G -Xmx2G -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MixedGCLiveThresholdPercent=35 -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -Dusing.aikars.flags=mcflags.emc.gs -jar [PATH_TO_JAR]"

Performance isn't bad, igniting ~200 TNT results in very little lag and I don't get any rubber-banding with the mobs. Currently set render distance to 6 to preserve performance. CPU is clocked at 1750MHz with a heat sink and case. I'd also recommend placing the files on an external 3.0 USB drive with better Write/Read performance.

I'd say for a small server for some friends things would be pretty tolerable.

User avatar
HawaiianPi
Posts: 4531
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Raspberry 4 & minecraft server?

Wed Jul 17, 2019 11:03 pm

hdtv35 wrote:
Wed Jul 17, 2019 10:27 pm
Just wanted to comment on my experience. I'm using Raspbian Buster with Paper Spigot as the server. OpenJDK11
For what version of Minecraft?

I've been running a Java 1.12.2 server on a 3B (now 3B+) since 2017 for a small group of friends, and it works surprisingly well.
  • Raspberry Pi 3 Model B Plus Rev 1.3 in a Flirc heatsink case
  • Raspbian Stretch Lite
  • Oracle Java 8 (java version "1.8.0_201")
  • SpigotMC with render distance 10
  • SanDisk Ultra Plus A1 64GB micro SD card
  • Ethernet to router (although it was originally tested on wireless and that worked fine).
Tried 1.13 when it first came out and found it was too much for the little Pi. I haven't tried any later versions (running my "Broken Laptop" 1.13.2 server on an old Sony laptop, which is, in fact, broken).

Been meaning to try Buster and OpenJDK11 but haven't gotten around to it.

Might give my 2GB Pi4 a try when my 4GB models come in (if they ever do).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

MarkusBarkus
Posts: 1
Joined: Wed Aug 07, 2019 5:18 pm

Re: Raspberry 4 & minecraft server?

Wed Aug 07, 2019 5:22 pm

ayitzyaboi wrote: Hey, so I have my server up and running on my Pi 4, so far runs pretty great. I’ve had no connection issues, Ram issues, or power issues yet. The only problem I can see arising is that I can’t seem to get more than 2GB to allocate for the server. Basically, when I run the java file, I can only specify up to 2000 MB using the Xmx modifier. Anything passed that and I get an error. Anyone else having this issue?
I’m running Raspbian stretch with a spigot server.
I am curious about this as well. Has anyone had any successful experiences yet with making full use of the 4GB models memory. Was going to setup a new server this weekend following this guide: https://jamesachambers.com/raspberry-pi ... /#comments

Wondering if I am capped out at the 2GB limit.
Thanks!

xilliman
Posts: 1
Joined: Sun Aug 18, 2019 6:40 pm

Re: Raspberry 4 & minecraft server?

Sun Aug 18, 2019 6:43 pm

Im Running a Pi 4 with 4GB but the jar file will only start with a maximum of 2700m.

I guess we have to wait for a 64 bit OS.

SimonX45
Posts: 1
Joined: Mon Aug 19, 2019 9:52 am

Re: Raspberry 4 & minecraft server?

Mon Aug 19, 2019 12:39 pm

Hello !
I read all your conversation but I don't understand everything (hello from France ❤ )

I want to create a Minecraft server on a raspberry pi 4 4gb too, but before to buy the raspberry pi 4 I would like to know how many FPS or people we can have on the server (or any other information to understand the "power" of the server")

Can you help me ?

Thank you 😊

danskmacabre
Posts: 1
Joined: Wed Aug 28, 2019 11:35 pm

Re: Raspberry 4 & minecraft server?

Fri Aug 30, 2019 12:26 am

Hi. I recently got a RPI4 with 4GB RAM.
I set it up so the OS runs off an SSD rather than using the SDCARD using Raspbian. Other than that, it's a pretty standard RPI4.

I installed the Oracle 8 JRE and JDK.

I installed the Spigot builder for making the Minecraft JAR and installed a "Don't load chunks" or something like that to optimise performance.
I used this page to set it up.
https://circuitdigest.com/microcontroll ... ver-set-up
It's a little out of date, so I changed some of the commands

It was a little laggy at first, but smoothed out after a bit.
Tonight I'll be customising the server start command a bit, increasing the memory usage from 1gb to as much as I can get away with allocating.
Seems like the max I'll be able to allocate is 2.7 GB.
I'll be tweaking the server.properties file tonight too to improve performance.

User avatar
HawaiianPi
Posts: 4531
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Raspberry 4 & minecraft server?

Thu Sep 05, 2019 12:04 pm

I'm running a Java Edition 1.14.4 SpigotMC SMP server on a Pi 4B2 with Raspbian Buster and OpenJDK8, and it works pretty well. There is some nasty lag for a few minutes after launch, but if you wait a few minutes before logging in it's pretty playable. I still have some occasional lag, but it's not game breaking.

For comparison, I also have a SpigotMC 1.14.4 SMP server running on an old broken laptop with a 1st gen Intel Core i7- 740QM processor. So how do they compare? Even a 9 year old 1st gen i7 mobile processor is much, much faster.

I'll be giving this a try again with my 4GB model and 64-bit OS when I get the time. But for now, the 2GB model and Raspbian with OpenJDK8 works okay as a Minecraft server.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

IPodFan
Posts: 2
Joined: Mon Sep 09, 2019 3:37 pm

Re: Raspberry 4 & minecraft server?

Mon Sep 09, 2019 3:46 pm

Probably this suggestion is not an option for most of you, but you could also try to get away from Java Servers and instead switch to a C++ server. C++ servers are advertised as much less demanding in terms of performance. The only one known to me atm is Cuberite. Of course you do not have the whole Spigot-Plugin repository, but there are still some available in Cuberite forums and since most of you are playing with just a few friends, you should find what you are looking for.

I did not try it yet, but will post my experience together with my setup.

IPodFan
Posts: 2
Joined: Mon Sep 09, 2019 3:37 pm

Re: Raspberry 4 & minecraft server?

Tue Sep 17, 2019 5:22 am

Got it working for me now. I‘m using the RasPi version from Cuberite homepage. Additionally I have the 4b 4GB RasPi with Rasbian Buster Desktop (without preinstalled software).
It‘s working pretty smooth and I‘d recommend adding No-IP domainservice, for a constant IP-Update.
Both together did all I needed to have a small minecraft-server with a static adress.

PS: You should consider using a cooling for your RP 4b.

Return to “Gaming”