Use discount code :
SPRING25
25% OFFON YOUR FIRST ORDER
BEFORE
0 : 19 : 15 : 34
Day
Hours
Mins
Secs
Tutorials
Configuring and managing your server

How to configure Java Flags

You can customize the behavior of your Minecraft server by adding your own Java flags. This allows advanced users to optimize performance based on their specific needs.

Step 1: Create the user_jvm_args.txt File

Connect to your server via FTP (e.g., WinSCP or use the WebFTP).

Navigate to the root directory of your server (where server.jar is located).

Create a new file named:
user_jvm_args.txt

Step 2: Add Your Custom Java Flags

You can write the flags in one of two ways:

All flags on a single line, separated by spaces:

-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions

One flag per line:

-XX:+UseG1GC

-XX:+ParallelRefProcEnabled

-XX:+UnlockExperimentalVMOptions 

Both formats are supported; choose whichever is easiest for you to manage.

/!\ Notice, You must only adds flags in this file. You do not need to configure XMX or XMS values because the memory is automatically allocated by your plan. Do not configure any .jar file; it's determined on the panel.

Recommended Java Flags for Minecraft Servers

Here are some commonly used flags that help improve server performance:

 
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled
-XX:+UnlockExperimentalVMOptions
-XX:G1NewSizePercent=20
-XX:G1MaxNewSizePercent=60 
-XX:G1HeapRegionSize=16M
-XX:G1ReservePercent=15
-XX:InitiatingHeapOccupancyPercent=20
-XX:G1MixedGCCountTarget=4
-XX:+AlwaysPreTouch
-Dusing.aikars.flags=https://mcflags.emc.gs 

These flags are widely used and based on best practices for running Minecraft servers with modern Java versions.

Step 3: Save and Restart

Save the user_jvm_args.txt file and make sure it is placed in the root of your server directory.

Restart your server, your custom flags will be automatically applied on launch.