From 43444335f5839997d12507b65ab0352a71733cee Mon Sep 17 00:00:00 2001 From: Mykhailo Ivanchenko Date: Fri, 23 Oct 2026 15:43:49 +0200 Subject: [PATCH] Fix JVM heap args crashing the server on every real connection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lazymc's command line forwarded -Xms/-Xmx straight to run.sh, which passes trailing args to Minecraft's own arg parser (not the JVM) — crashed with "X is not a recognized option" on every wake attempt. Heap flags now go in user_jvm_args.txt where Forge actually expects them. --- server/setup-server.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/server/setup-server.sh b/server/setup-server.sh index f8618f4..13e66ff 100755 --- a/server/setup-server.sh +++ b/server/setup-server.sh @@ -43,6 +43,15 @@ else echo "==> Forge server already installed, skipping" fi +# JVM heap flags go in user_jvm_args.txt, NOT on lazymc's command line — run.sh +# forwards any args after "nogui" straight to Minecraft's own arg parser (not +# the JVM), so passing -Xmx/-Xms there crashes with "X is not a recognized option". +cat > "$SERVER_DIR/user_jvm_args.txt" < "$BASE_DIR/lazymc.toml" <