Skip to main content
READY CHUNKGC BENCH // ATM10 NEOFORGE 1.21.1 (450+ MODS) BASELINE: 2026-10-05 | TARGET: SPARK MSPT <50MS (20 TPS) | JAVA 21 ZGC
MCATM10RAM
MCATM10RAM Disclosure: Outbound /go/ links marked rel="sponsored" may earn a referral fee at zero checkout surcharge (Disclosures).
ATM10 Errors // ChunkGC Bench

NeoForge 450+ Mods Metaspace OOM: Off-Heap Classloading Cost

Loading 450+ mods and Mixin bytecodes in ATM10 allocates ~720-950 MB of native JVM Metaspace before the first player even joins.

Measured ATM10 JVM & Spark Profile

Because Metaspace lives in native process memory rather than the -Xmx Java heap, users who pass aggressive -XX:MaxMetaspaceSize=256M flags copied from vanilla guides crash during startup mod discovery, while unbounded Metaspace during dynamic classloading inflates container RSS.

Subsystem / SignalMeasured TargetOperational Impact
ATM10 Startup Metaspace Used710 - 890 MBMeasured post-worldgen on NeoForge 1.21.1
Safe MaxMetaspaceSize Cap1024M - 1280MPrevents startup OOM and runaway native growth
Total Non-Heap + OS Floor2.4 - 4.2 GBMust stay outside -Xmx inside Docker/AMP

Step-by-Step Triage & Config Remediation

  1. Remove legacy 256M/512M caps: Delete old vanilla -XX:MaxMetaspaceSize=512M arguments immediately from user_jvm_args.txt.
  2. Set 1024M safety ceiling: Use -XX:MaxMetaspaceSize=1024M (or 1280M with KubeJS/custom script reloads).
  3. Size node RAM for Heap + 3.2 GB: A 12 GB -Xmx heap needs a 16 GB host (Game Panel 4) once Metaspace and OS cache are added.
-XX:MetaspaceSize=512M
-XX:MaxMetaspaceSize=1024M
-XX:+PerfDisableSharedMem

Diagnostic FAQ

Is Metaspace included inside -Xmx12G?

No. Metaspace is native off-heap memory, so -Xmx12G plus 900 MB Metaspace already uses ~13 GB before Netty buffers or Linux OS.

Can /reload increase Metaspace usage?

Yes, repeated datapack and KubeJS script reloads can retain classloaders until a full server restart.

Related ATM10 Errors Guides

MCATM10RAM: Match JVM heap + off-heap before deploy Launch Game Panel