Fabric · Latest Versions
Sodium, Lithium and lightweight Fabric setups.
-Xms1G -Xmx6G -XX:+UseZGCLeave breathing room for recording and editing tools.
Runtime baseline verified against documentation. Confirm your exact loader/mod versions; this is not a measured performance promise.
Xmx limits the Java heap, not Minecraft’s total process memory. Leave room for Windows, native memory, browsers and OBS. We never detect or allocate all your RAM. If Xmx drops below Xms, the initial heap is reduced to match.
-Xms1G -Xmx4G -XX:+UseZGCPrism Launcher, Modrinth App, CurseForge and MultiMC may manage memory separately. Use their memory controls and paste only the collector flags into their custom Java arguments field. Keep automatic Java selection unless the pack documentation says otherwise.
Runtime baselines, not proof that every mod or launcher works. Prefer your launcher’s supported runtime and check the pack’s exact version.
| Minecraft | Java baseline |
|---|---|
| 1.8.9–1.16.5 | 8 (recommended legacy runtime) |
| 1.17.x | 16 minimum; some launchers use 17 |
| 1.18–1.20.4 | 17 |
| 1.20.5–1.21.x | 21 |
| 26.x (26.1 onward) | 25 |
Java 21: generational ZGC uses both UseZGC and ZGenerational. Java 25: use UseZGC alone; ZGenerational is obsolete and ignored with a warning. It expires in Java 26. Never combine G1GC and ZGC. The selector checks your declared runtime, not the Java installed on your PC.
| Use case | Starting heap |
|---|---|
| Classic PvP | 2 GB |
| Modern PvP | 4 GB |
| Fabric + Sodium | 4–6 GB |
| Shaders + Iris | 6 GB |
| Vanilla Survival | 4–6 GB |
| Forge / NeoForge | 6–8 GB |
| Heavy Modpacks | 8–10 GB |
| Extreme Modpacks | 10–12 GB |
These are editorial starting ranges, not measured requirements. Extra heap does not automatically increase FPS and may cause memory pressure or longer collections. Follow pack requirements and leave several GB for the OS and other apps; recording needs additional headroom.
Reviewed 15 October 2026. These are valid HotSpot-style starting configurations, not gameplay benchmarks. Use a supported 64-bit Java distribution. ZGC availability depends on your platform/build. Loader, mods, CPU, GPU, render distance, shaders and background tasks all affect results.
Sodium, Lithium and lightweight Fabric setups.
-Xms1G -Xmx6G -XX:+UseZGCA generational ZGC starting point for modern Fabric.
-Xms1G -Xmx6G -XX:+UseZGC -XX:+ZGenerationalA small, focused heap for Crystal, Sword and SMP combat.
-Xms1G -Xmx4G -XX:+UseZGC