ATM10 Fixes // ChunkGC Bench
Hardening itzg/minecraft-server Docker Compose for ATM10
Aligning Docker mem_limit with INIT_MEMORY, MAX_MEMORY, and explicit ZGC flags prevents silent container OOM kills and keeps backups atomic.
Measured ATM10 JVM & Spark Profile
Running itzg/minecraft-server:java21 on Hostinger Game Panel or UltaHost VDS gives reproducible Java 21 upgrades, isolated volumes, and clean healthchecks—as long as container mem_limit stays 3.2 to 6 GB above MAX_MEMORY.
| Subsystem / Signal | Measured Target | Operational Impact |
|---|---|---|
| 16 GB Node Docker Config | mem_limit: 16g / MAX: 12G | 4 GB safe off-heap + OS margin |
| 32 GB Node Docker Config | mem_limit: 32g / MAX: 26G | 6 GB safe off-heap + ZGC margin |
| Image Tag Requirement | java21 (OpenJDK 21) | Required for ATM10 NeoForge 1.21.1 + ZGC |
Step-by-Step Triage & Config Remediation
- Pin the java21 image tag: Use image: itzg/minecraft-server:java21 so Generational ZGC flags never fail on older runtimes.
- Keep 4-6 GB gap below mem_limit: Set INIT_MEMORY and MAX_MEMORY equal (e.g. 26G inside mem_limit: 32g).
- Mount persistent NVMe volume: Bind ./atm10-data:/data on NVMe storage and exclude transient caches from off-site tar snapshots.
services:
atm10:
image: itzg/minecraft-server:java21
container_name: mc-atm10
restart: unless-stopped
ports:
- "25565:25565"
mem_limit: 32g
environment:
EULA: "TRUE"
TYPE: "NEOFORGE"
INIT_MEMORY: "26G"
MAX_MEMORY: "26G"
JVM_OPTS: "-XX:+UseZGC -XX:+ZGenerational -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:MaxMetaspaceSize=1024M -XX:MaxDirectMemorySize=1536M"
volumes:
- ./atm10-data:/data
Diagnostic FAQ
Does itzg/minecraft-server overwrite user_jvm_args.txt?
When using TYPE=NEOFORGE with INIT_MEMORY, MAX_MEMORY, and JVM_OPTS, the container injects those flags cleanly at launch.
Can I run this compose stack on Hostinger Game Panel or UltaHost VDS?
Yes. Hostinger Game Panel provides managed container/AMP isolation, while UltaHost VDS gives full root Docker Compose control.