Customization with Minecraft - Cant start with java args

System Information

Field Value
Operating System Linux - Ubuntu 24.04.2 on x86_64
Product AMP ‘Phobos’ v2.6.0.12 (Mainline)
Virtualization None
Application Minecraft
Module MinecraftModule
Running in Container No
Current State Failed

Problem Description

Issue

Im using an old laptop with ubunto serveran amp to hostminecraft server. Intel(R) Core™ i7-3610QM CPU @ 2.30GHz, 8 cores 8gb ram. Im trying to install a server modpack which runs correctly but i found the original server has java args to improve performance. -Xms4G
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=200
-XX:+UnlockExperimentalVMOptions
-XX:+DisableExplicitGC
-XX:+AlwaysPreTouch
-XX:G1NewSizePercent=30
-XX:G1MaxNewSizePercent=40
-XX:G1HeapRegionSize=8M
-XX:G1ReservePercent=20
-XX:G1HeapWastePercent=5
-XX:G1MixedGCCountTarget=4
-XX:InitiatingHeapOccupancyPercent=15
-XX:G1MixedGCLiveThresholdPercent=90
-XX:G1RSetUpdatingPauseTimePercent=5
-XX:SurvivorRatio=32
-XX:+PerfDisableSharedMem
-XX:MaxTenuringThreshold=1
As y try to copy apste them the server wont start. I ve been trying lots of things but didnt manage to start the server with that config.

Reproduction Steps

  • Paste recommended java args
  • Start server
  • Cant start

AMP works fine with Java args, make sure that you’ve added them under Java and Memory, and not in the additional startup flags section.
You also don’t need Xms, Xmx, jar, or nogui, as AMP handles those.
You may also need to separate them by spaces and not newlines. Worst case you can read the console to see what flags aren’t working in your setup.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.