Fabric · Latest Versions
Sodium, Lithium and lightweight Fabric setups.
-Xms1G -Xmx6G -XX:+UseZGCJVM Arguments · Optimize Minecraft performance with carefully selected JVM configurations for Fabric, Forge, NeoForge, PvP, shaders, modpacks, and more.
Sodium, Lithium and lightweight Fabric setups.
-Xms1G -Xmx6G -XX:+UseZGCA generational ZGC starting point for modern Fabric.
-Xms1G -Xmx6G -XX:+UseZGC -XX:+ZGenerationalA conservative collector for established Forge packs.
-Xms2G -Xmx8G -XX:+UseG1GCA simple G1 baseline for modern modded instances.
-Xms2G -Xmx8G -XX:+UseG1GCLow-pause GC to try with a compatible NeoForge pack.
-Xms2G -Xmx8G -XX:+UseZGCA small, focused heap for Crystal, Sword and SMP combat.
-Xms1G -Xmx4G -XX:+UseZGCFor Crystal, Sword, Axe and Mace PvP setups.
-Xms1G -Xmx4G -XX:+UseZGC -XX:+ZGenerationalA lean starting heap for BedWars, SkyWars and Duels.
-Xms512M -Xmx2G -XX:+UseG1GC -XX:MaxGCPauseMillis=100A lightweight G1 alternative for competitive setups.
-Xms1G -Xmx4G -XX:+UseG1GCA minimal baseline for unmodded Java Edition.
-Xms1G -Xmx4G -XX:+UseZGCA starting heap for Iris, shaders and visual mods.
-Xms2G -Xmx6G -XX:+UseZGCEveryday exploration and multiplayer survival.
-Xms1G -Xmx6G -XX:+UseZGCFor memory-hungry worlds and larger view distances.
-Xms2G -Xmx8G -XX:+UseZGCA larger heap for substantial mod collections.
-Xms2G -Xmx10G -XX:+UseG1GCLeave breathing room for recording and editing tools.
-Xms1G -Xmx4G -XX:+UseZGCA minimal G1 starting point for a self-hosted server.
-Xms4G -Xmx6G -XX:+UseG1GCTry another game version or clear the filters.
Start with your launcher defaults if the game already runs well. These presets trade off throughput, heap usage and GC pauses; no preset guarantees higher FPS or lower ping.
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.