ATM10 Errors // ChunkGC Bench
Docker Exit Code 137: cgroup OOM Killer on Off-Heap Spikes
Exit Code 137 (128 + SIGKILL 9) leaves zero Java crash-report file because the Linux kernel OOM killer terminates the entire JVM process when RSS hits mem_limit.
Measured ATM10 JVM & Spark Profile
Operators frequently set -Xmx16G inside a 16 GB Docker or Game Panel container. Because ATM10 NeoForge consumes +2.4 to 4.2 GB in Metaspace, ZGC colored pointers/mappings, Netty DirectBuffers, and OS page cache, total RSS crosses 16 GB and triggers instant SIGKILL.
| Subsystem / Signal | Measured Target | Operational Impact |
|---|---|---|
| 16 GB Container (-Xmx14G) | CRASH (Exit 137) | Total RSS hits ~17.1 GB during chunkgen |
| 16 GB Container (-Xmx12G) | SAFE (14.8 GB RSS) | Leaves 1.2 GB headroom inside 16 GB |
| 32 GB Container (-Xmx26G) | SAFE (29.8 GB RSS) | Leaves 2.2 GB headroom + 4 GB off-heap |
Step-by-Step Triage & Config Remediation
- Inspect kernel OOM log: Check dmesg -T | grep -i oom or docker inspect <id> State.OOMKilled to confirm Exit 137.
- Lower -Xmx by 3 to 4 GB: Subtract at least 3.2-4.2 GB from host/container RAM before setting INIT_MEMORY and MAX_MEMORY.
- Disable host swap thrashing: Keep vm.swappiness=10 or lower on VDS nodes; swapping a ZGC heap causes multi-second freezes.
docker inspect mc-atm10 --format '{{.State.OOMKilled}} {{.State.ExitCode}}'
# 32 GB container safe setting:
INIT_MEMORY: "26G"
MAX_MEMORY: "26G"
mem_limit: 32g
Diagnostic FAQ
Why is there no hs_err_pid or crash-reports file on Exit 137?
SIGKILL from the Linux kernel cgroup OOM killer cannot be caught by the JVM, so the process disappears mid-instruction.
Does ZGC need more native headroom than G1GC?
Generational ZGC uses ~200-350 MB more native metadata than G1GC, making the +2.4-4.2 GB non-heap reserve mandatory.