Posted March 5Mar 5 Hi, I have a Forge server on Minecraft 1.20.1 version. It's not starting if I add custom start scripts to "run.sh" file. run.sh: #!/usr/bin/env sh # Forge requires a configured set of both JVM and program arguments. # Add custom JVM arguments to the user_jvm_args.txt # Add custom program arguments {such as nogui} to this file in the next line before the "$@" or # pass them to this script directly java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.20.1-47.3.33/unix_args.txt -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1HeapRegionSize=8M -XX:G1HeapWastePercent=5 -XX:G1MaxNewSizePercent=40 -XX:G1MixedGCCountTarget=4 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1NewSizePercent=30 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=15 -XX:MaxGCPauseMillis=200 -XX:MaxTenuringThreshold=1 -XX:SurvivorRatio=32 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true nogui"$@" Latest log: https://mclo.gs/0JS3LDK If I delete program arguments from run.sh the server is starting. Anyone help?
March 5Mar 5 4 minutes ago, Vizor said: # Add custom JVM arguments to the user_jvm_args.txt Did you try this?
March 5Mar 5 Firstly, I would not advise running as root for this, even for testing/trying to get it to work. Did that generate any logs? Post your run.sh and user_jvm_args.txt, maybe there's something in there that could be changed.
March 6Mar 6 Do not use Aikar's Flags. They're known to cause severe performance issues on Forge servers Official Forge Discord server | Support FAQ for players
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.