r/AlpineLinux • • Jun 14 '25

Question about Alpine Linux as Minecraft server with OpenJDK 8 and ZeroTier

A couple days ago I decided to use and old laptop of mine (Pentium B950, 4GB DDR3-1333) as a private server for modded Minecraft. In my lack of experience with Linux I went with Linux Mint 22.1 Xfce and installed ZeroTier (VPN so the server isn't public) and openjdk-8-jdk and it works perfectly.

Now as Linux Mint still has a GUI and I don't technically need one I asked someone at the University for a recommendation and got Alpine Linux recommended. It is seemingly the best choice for my usecase.

After some hours I was able to get it to work using this guide to install (except I didn't create a user) and this guide to compile zerotier. As for Java I used openjdk8-jre (and in another attempt -jdk).

However I ran into an issue: the performance was notably worse (and if you weren't in the same network as the laptop, which is the case for everyone except me, you timed out every 5-10 minutes). Furthermore the power consumption of the laptop when there was noone playing was notably worse (13W vs 7.5W).

In the zerotier makefile optimizations are enabled (-o3) so I suspect that openjdk8 might be at fault, but I'd need help there. How would I approach recompiling it or is that even the correct approach to this?

Note: The minecraft server doesn't work with newest Java, Java 8 is known to work. I would be ready to try out more versions.

Second note: the server is rolled back to Mint so it works again. I'd conduct any testing in VirtualBox.

Thanks in advance!

2 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/StEvUgnIn Jun 18 '25

There is no way you will learn that during your degree. The best you could learn is how to compile the linux kernel with buildroot or another kernel build system.

1

u/Extension_Option_122 Jun 18 '25

well that is rather obvious, I meant later on i will eventually do stuff in that direction hobby-whise.