Notes
![]() ![]() Notes - notes.io |
- 2 commits
Native Minecraft Servers that use GraalVM Native Image
The Minecraft server is known to use a lot of CPU and memory resources and is difficult to deploy. This project allows to compile the Minecraft server into a self-contained native executable with the help of GraalVM Native Image. This is expected to use less resources in terms of memory and CPU as well as provide faster startup times, and be simpler and less expensive to deploy.
A native Minecraft server is smaller than Minecraft's server.jar and the JDK required to run it. The native executable can be further compressed in order to reduce its size to less than 40MB. This is less than the server.jar. Initial tests suggest competitive run-time performance with smaller footprint of memory. To get the best results, build with GraalVM Enterprise Native Image which is more efficient and lower memory usage than the Community Edition, and try using the G1 GC and Profile-Guided Optimizations. The Oracle Cloud Free Tier provides four Ampere A1 cores with 24 GB RAM that is enough to host the Minecraft server. It also grants you free access to GraalVM Enterprise.
For more information, refer to this blog post.
Disclaimer This project is designed to be used only for demonstration purposes. It's meant to assist the Minecraft community to evaluate the use of GraalVM Native Image. Use at your own risk.
1. Download GraalVM Community or Enterprise (GraalVM 22.2.0 or later is required). Optional: Make sure that upx is installed on your $PATH to enable compression 2. Go to the repository and download it. Then, run build.sh. 3. Minecraft skins Launch the native Minecraft server with ./native-minecraft-server. When you first run the server, you will be required to follow the standard procedure of accepting Minecraft's EULA.
How It Works
This project only contains the build.sh script as well as reachability metadata. It also includes instructions to create the native Minecraft server. The build.sh script downloads Minecraft's server.jar and extracts jars as well as other resources from it. After that, it launches GraalVM Native Image with the right configuration to create an original version of the Minecraft server. In addition, and only if upx is located on the $PATH script, it will compress the native executable.
Limitations and issues that are known
The configuration currently supports Minecraft 1.18.2. - The server GUI is not yet supported. - Mods are currently not supported. - There is no build script for Windows yet, but the WSL should be able to work. Sometimes, the native executable fails to start. It is typically possible to restart it multiple times. Error: com.mojang.datafixers.types.templates.List$ListType cannot be cast to java.lang.Comparable.
Read More: https://mc-skins.org/
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team