Notes
Notes - notes.io |
2 commits
Native Minecraft Servers using GraalVM Native Image
The Minecraft server can be difficult to deploy because it requires a lot of memory and CPU resources. This project allows to compile the Minecraft server into an executable that is self-contained and independent with the help of GraalVM Native Image. It is anticipated to utilize less CPU and memory resources, be more efficient to begin, and be simpler to deploy.
A native Minecraft server is smaller than Minecraft's server.jar and the JDK required to run it. With upx compression it is possible to reduce the size of the native executable can be reduced further to less than 40MB which is smaller than just the server.jar. Initial experiments also suggest that run-time performance is competitive with smaller footprint in memory. Create using GraalVM Enterprise native images for best results. This will give you greater performance and less memory consumption than the Community Edition. Also, consider using the G1 GC or Profile-Guided Optimizations. The Oracle Cloud Free Tier not only comes with four Ampere A1 cores and 24GB of RAM that is always free that's enough for hosting a Minecraft server and also provides access to GraalVM Enterprise.
For more information, refer to this blog post.
Disclaimer: This project is intended to be used for demonstration purposes only. It's meant to help the Minecraft community to evaluate the use of GraalVM Native Image. Please use at your own risk.
1. HANMA'S BLOG Download GraalVM Community or Enterprise (GraalVM 22.2.0 or later is required). Optional: make sure upx is in your $PATH to enable compression. 2. Go to the repository and download it. Then run build.sh. 3. Launch the native Minecraft server with ./native-minecraft-server. You must accept Minecraft's EULA the first time you launch the server.
How does it work
This project only contains the build.sh script along with reachability metadata and instructions to create the native Minecraft server. The build.sh script downloads Minecraft's server.jar first and then extracts the jars it contains. It then calls GraalVM native image using the proper configuration to create a native Minecraft server. If upx is on the $PATH script, it will compress the native executable.
Limitations and Known Issues
The configuration currently supports Minecraft 1.18.2. The server GUI has not been fully supported as of as of yet. - Mods are currently not supported. There isn't a build script for Windows yet, however the WSL should work. The native executable often fails to start upon startup. It is typically possible to restart it several times. Error: com.mojang.datafixers.types.templates.List$ListType cannot be cast to java.lang.Comparable.
Website: https://hanmayou.com/
![]() |
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
