fix(minecraft): 3G heap so the server fits its 4 GB minimum
With MEMORY=4G and requiredMemoryMb 4096, Java's heap plus overhead exceeded the container limit and the server was killed on start; the boot test failed every time. With 3G it is ready in about 18s at 4 GB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e9ff989246
commit
e8edf853f7
1 file changed
+3
-3
@@ -31,7 +31,7 @@ defaultConfig:
|
|||||||
HARDCORE: false
|
HARDCORE: false
|
||||||
JVM_OPTS: -DgeyserTransport=nethernet -DgeyserAdvertiseAddresses={PUBLIC_IP}:{PUBLIC_PORT_19132}
|
JVM_OPTS: -DgeyserTransport=nethernet -DgeyserAdvertiseAddresses={PUBLIC_IP}:{PUBLIC_PORT_19132}
|
||||||
MAX_PLAYERS: 20
|
MAX_PLAYERS: 20
|
||||||
MEMORY: 4G
|
MEMORY: 3G
|
||||||
MODE: survival
|
MODE: survival
|
||||||
MOTD: GBRHosting - {SERVER_NAME}
|
MOTD: GBRHosting - {SERVER_NAME}
|
||||||
ONLINE_MODE: true
|
ONLINE_MODE: true
|
||||||
@@ -117,8 +117,8 @@ configSchema:
|
|||||||
type: integer
|
type: integer
|
||||||
MEMORY:
|
MEMORY:
|
||||||
category: System & General
|
category: System & General
|
||||||
default: 4G
|
default: 3G
|
||||||
description: Maximum heap memory allocated to the Java process (e.g. 4G, 6G, 8G).
|
description: Java heap for the server. Keep it about 1 GB below your server's memory (3G on 4 GB, 7G on 8 GB); Java needs the rest, and a heap as large as the memory limit makes the server crash on start.
|
||||||
title: Memory Allocation
|
title: Memory Allocation
|
||||||
type: string
|
type: string
|
||||||
MODE:
|
MODE:
|
||||||
|
|||||||
Reference in new issue
Block a user