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 / Signal | Measured Target | Operational Impact |
|---|---|---|
| ATM10 Startup Metaspace Used | 710 - 890 MB | Measured post-worldgen on NeoForge 1.21.1 |
| Safe MaxMetaspaceSize Cap | 1024M - 1280M | Prevents startup OOM and runaway native growth |
| Total Non-Heap + OS Floor | 2.4 - 4.2 GB | Must stay outside -Xmx inside Docker/AMP |
Step-by-Step Triage & Config Remediation
- Remove legacy 256M/512M caps: Delete old vanilla -XX:MaxMetaspaceSize=512M arguments immediately from user_jvm_args.txt.
- Set 1024M safety ceiling: Use -XX:MaxMetaspaceSize=1024M (or 1280M with KubeJS/custom script reloads).
- 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.