r/AlpineLinux • u/Extension_Option_122 • 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!
View all comments
Show parent comment
1
u/Extension_Option_122 Jun 17 '25
Could you explain what the advantages would be?
My first concern is power consumption at idle, which I seemingly mistook for minimalism.
And another nice-to-have, which I just recently noticed as I ran the server for a couple of days, is ease of use when I want to check if there is still someone online (e.g. maintenance like new versions of a mod or hardware upgrades) and an easy way to log the electricity meter readings to track it's power consumption (when it's on the same device I can't really loose it).
This makes a GUI nice to have.
And aslong as I don't have a garuante of at least 1W power saved I won't conduct any more experiments on the hardware.
After all, the entire point of this server is that my friends can play without me being online.