Vanilla Minecraft
A minimal baseline for unmodded Java Edition.
-Xms1G -Xmx4G -XX:+UseZGCA minimal G1 starting point for a self-hosted server.
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.
-Xms4G -Xmx6G -XX:+UseG1GCStop the server and back up its start command. Replace its existing memory/GC flags before -jar with this configuration; retain the existing server JAR path, nogui option and required environment settings. Check your hosting memory limit: native JVM memory needs headroom beyond Xmx. Use Paper’s documentation for workload-specific tuning.
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.
A minimal baseline for unmodded Java Edition.
-Xms1G -Xmx4G -XX:+UseZGCEveryday exploration and multiplayer survival.
-Xms1G -Xmx6G -XX:+UseZGCFor memory-hungry worlds and larger view distances.
-Xms2G -Xmx8G -XX:+UseZGC