TCLauncher

TCLauncher › All guides

JVM arguments for Minecraft: what to use and what not

Do you need the “optimised Java flags” people copy from the internet? What JVM arguments really do, which are safe, and when to leave them alone.

Updated:

JVM arguments for Minecraft: what to use and what not — TCLauncher

JVM arguments are Java launch parameters: how much memory to take, which garbage collector to use, which experimental features to turn on. The internet is full of “magic” sets that supposedly add FPS. The truth is simpler: for most players the best option is an empty field.

What the launcher already does

  • Memory is set with a slider in the instance settings — no need to add -Xmx and -Xms by hand.
  • Java is picked for the game version — modern Java 17 and 21 already use the G1 garbage collector with sensible settings.

Why old “flags” hurt

Many popular sets were written for Java 8 years ago. On Java 17–21 some options no longer exist — and Java simply refuses to start with Unrecognized VM option. Other options make the modern collector work worse than the default. If the game won't start after pasting an “optimisation”, see Java errors.

When arguments really help

  • A big modpack and lots of memory (8 GB or more) on Java 21. Generational ZGC may reduce pauses: -XX:+UseZGC -XX:+ZGenerational. Check the result in the “Statistics” tab — if it got worse, remove it.
  • The modpack author's advice. Some modpacks recommend specific parameters for themselves — trust those more than a random video.
  • Diagnostics. Mod developers sometimes ask you to add a parameter to collect a log. Remove it after testing.

Where to change them

In the “Instances” tab open the instance settings (the gear icon) and find the “JVM arguments” field. Parameters are separated by spaces, each starting with a dash. Changes apply to one instance, so experimenting is safe.

What gives more than any flags

  1. The right amount of memory — how much memory to allocate.
  2. Performance mods — best FPS mods.
  3. Playing on the dedicated GPU — a laptop with two GPUs.

Download TCLauncher — memory and Java are set up correctly before you change anything.

FAQ

Do I need JVM arguments for Minecraft?

For most players, no. The launcher sets memory itself and picks a modern Java with good defaults.

Why won't the game start after pasting flags?

Old sets were written for Java 8, and some options don't exist in Java 17–21. Clear the “JVM arguments” field.

Should I add -Xmx to the arguments?

No, memory is set with the slider in the instance settings.

Download TCLauncher