NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

Your Codespace will Open once it is Ready

2 commits



Native Minecraft Servers with GraalVM Native Image



The Minecraft server is known to require a lot of memory and CPU resources and is difficult to install. This project lets you transform the Minecraft server into a native executable by using GraalVM. As such, it is designed to use fewer CPU and memory resources as well as provide faster startup times, and be simpler and less expensive to deploy.



A native Minecraft server is less than 120MB in size, and with that significantly smaller than Minecraft's server.jar along with a JDK required to run it. With upx compression, the size of the native executable may be reduced to less than 40MB which is smaller than just the server.jar. Initial tests also showed a competitive run-time and a smaller footprint for memory. For best results, use GraalVM Enterprise Native Image, which has better performance and less memory usage than the Community Edition, and try out the G1 GC and Profile-Guided Optimizations. The Oracle Cloud Free Tier provides four Ampere A1 cores with 24GB of RAM, which can be enough to host a Minecraft server. It also gives you access to GraalVM enterprise.



Check out this blog post for more information.



Disclaimer This project is designed to be used only for demonstration purposes. It's designed to assist the Minecraft community to evaluate the use of GraalVM Native Image. Please use at your own risk.



1. Download GraalVM Community or Enterprise (GraalVM 22.2.0 or later is required). Optional: Make sure upx is installed on your $PATH in order to enable compression. 2. Check out the repository and download it. Then, run build.sh. 3. Launch the native Minecraft server with ./native-minecraft-server. The first time you run the server, you will be required to follow the standard procedure of accepting Minecraft's EULA.



How does it work



This project only contains the build.sh script, reachability metadata, and instructions for creating an native Minecraft server. The build.sh script downloads Minecraft's server.jar first and then extracts the jars it contains. Minecraft Crafting It then invokes GraalVM native image with the appropriate configuration to create an original Minecraft server. If upx is on the $PATH, the script will compress the native executable.



Limitations and Issues



The configuration currently supports Minecraft 1.18.2. - The server GUI has not been implemented as of yet. Mods aren't currently supported. - There is no build script for Windows yet, however the WSL should work. Sometimes, the native executable fails to start. It is generally possible to restart it several times. Error: com.mojang.datafixers.types.templates.List$ListType cannot be cast to java.lang.Comparable.


Here's my website: https://minecraft-crafting.co/
     
 
what is notes.io
 

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

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.