05 / THE JVM ARGUMENTS DESK

Minecraft
JVM profiles.

JVM Arguments · Optimize Minecraft performance with carefully selected JVM configurations for Fabric, Forge, NeoForge, PvP, shaders, modpacks, and more.

16 curated profilesJava 8 → 25No magic FPS claims
16 profiles
01 / CLIENT

Fabric · Latest Versions

Sodium, Lithium and lightweight Fabric setups.

MC 26.x (26.1 onward)Java 256 GB heap
FabricFPS & Performance
-Xms1G -Xmx6G -XX:+UseZGC
Customize ↗
02 / CLIENT

Fabric · Minecraft 1.21.x

A generational ZGC starting point for modern Fabric.

MC 1.21.xJava 216 GB heap
FabricFPS & Performance
-Xms1G -Xmx6G -XX:+UseZGC -XX:+ZGenerational
Customize ↗
03 / CLIENT

Forge · Legacy Modded

A conservative collector for established Forge packs.

MC 1.18–1.20.4Java 178 GB heap
ForgeModpacks
-Xms2G -Xmx8G -XX:+UseG1GC
Customize ↗
05 / CLIENT

NeoForge · Latest Versions

Low-pause GC to try with a compatible NeoForge pack.

MC 26.x (26.1 onward)Java 258 GB heap
NeoForgeModpacks
-Xms2G -Xmx8G -XX:+UseZGC
Customize ↗
06 / CLIENT

Modern PvP · Latest Versions

A small, focused heap for Crystal, Sword and SMP combat.

MC 26.x (26.1 onward)Java 254 GB heap
Modern PvPFPS & Performance
-Xms1G -Xmx4G -XX:+UseZGC
Customize ↗
07 / CLIENT

Modern PvP · Minecraft 1.21.x

For Crystal, Sword, Axe and Mace PvP setups.

MC 1.21.xJava 214 GB heap
Modern PvPFPS & Performance
-Xms1G -Xmx4G -XX:+UseZGC -XX:+ZGenerational
Customize ↗
08 / CLIENT

Classic PvP · Minecraft 1.8.9

A lean starting heap for BedWars, SkyWars and Duels.

MC 1.8.9Java 82 GB heap
Classic PvPFPS & Performance
-Xms512M -Xmx2G -XX:+UseG1GC -XX:MaxGCPauseMillis=100
Customize ↗
09 / CLIENT

Maximum FPS

A lightweight G1 alternative for competitive setups.

MC 1.21.xJava 214 GB heap
FPS & PerformanceModern PvPFabric
-Xms1G -Xmx4G -XX:+UseG1GC
Customize ↗
10 / CLIENT

Vanilla Minecraft

A minimal baseline for unmodded Java Edition.

MC 26.x (26.1 onward)Java 254 GB heap
FPS & PerformanceSurvival & SMP
-Xms1G -Xmx4G -XX:+UseZGC
Customize ↗
11 / CLIENT

Shaders / Iris

A starting heap for Iris, shaders and visual mods.

MC 26.x (26.1 onward)Java 256 GB heap
Shaders & GraphicsFabric
-Xms2G -Xmx6G -XX:+UseZGC
Customize ↗
12 / CLIENT

Survival / SMP

Everyday exploration and multiplayer survival.

MC 26.x (26.1 onward)Java 256 GB heap
Survival & SMP
-Xms1G -Xmx6G -XX:+UseZGC
Customize ↗
13 / CLIENT

High Render Distance

For memory-hungry worlds and larger view distances.

MC 26.x (26.1 onward)Java 258 GB heap
Survival & SMPShaders & Graphics
-Xms2G -Xmx8G -XX:+UseZGC
Customize ↗
14 / CLIENT

Heavy Modpacks

A larger heap for substantial mod collections.

MC 1.21.xJava 2110 GB heap
ModpacksForgeNeoForge
-Xms2G -Xmx10G -XX:+UseG1GC
Customize ↗
15 / CLIENT

Recording / YouTube / OBS

Leave breathing room for recording and editing tools.

MC 26.x (26.1 onward)Java 254 GB heap
Content CreationFPS & Performance
-Xms1G -Xmx4G -XX:+UseZGC
Customize ↗
16 / SERVER

Minecraft Paper Server

A minimal G1 starting point for a self-hosted server.

MC 26.x (26.1 onward)Java 256 GB heap
ServersSurvival & SMP
-Xms4G -Xmx6G -XX:+UseG1GC
Customize ↗

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.

Java compatibility reference

Runtime baselines, not proof that every mod or launcher works. Prefer your launcher’s supported runtime and check the pack’s exact version.

MinecraftJava baseline
1.8.9–1.16.58 (recommended legacy runtime)
1.17.x16 minimum; some launchers use 17
1.18–1.20.417
1.20.5–1.21.x21
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.

How much RAM should I allocate?
Use caseStarting heap
Classic PvP2 GB
Modern PvP4 GB
Fabric + Sodium4–6 GB
Shaders + Iris6 GB
Vanilla Survival4–6 GB
Forge / NeoForge6–8 GB
Heavy Modpacks8–10 GB
Extreme Modpacks10–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.

What do the flags actually do?
Xms
The initial Java heap allocation.
Xmx
The maximum Java heap allocation, not a total RAM budget.
G1GC
A general-purpose collector balancing throughput and pause-time goals.
ZGC
A mostly concurrent collector designed for short GC pauses. CPU and memory trade-offs vary by workload.
GC pauses
Time the collector stops application threads. Shorter pauses can help consistency; they do not guarantee higher average FPS.
Sources, scope & testing

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.

Build a recommendation from your hardware →
Open the dedicated JVM hub ↗