Customize
Java, memory, and performance
Select a compatible runtime and tune memory and garbage collection without guesswork.
Two versions of this page follow. Step by step walks through the task in order. In depth explains the underlying behavior. They describe the same product, at different levels of detail.
Step by step
Follow the steps in order. No prior modding knowledge assumed.
Each Minecraft version needs a particular version of Java. Agora can find or download the right one for you and pick sensible performance settings on its own.
After this you will be able to
- Use the right Java for each instance.
- Give Minecraft enough memory without slowing down your computer.
- Know why the automatic settings are a good default.
Let Agora manage Java
With Java set to Automatic, Agora uses a suitable Java already on your computer or downloads one. Java it downloads is kept just for Agora and does not affect other programs. Choose Prompt if you want Agora to ask before downloading, or Manual if you prefer to install Java yourself.
Set memory sensibly
More memory is not always faster. We suggest giving Minecraft enough for the pack while leaving a few gigabytes for everything else on your computer. If the game feels slow, more memory is not always the fix. It helps most when the game runs out of memory or the log says it is short.
Leave performance tuning on Auto
Java has settings that affect how smoothly the game runs, and Auto picks good ones for your Java version. We recommend leaving it on Auto unless you have a specific reason to change it.
In depth
How the system actually behaves, and why, for readers who prefer the model to a recipe.
For when you want to choose Java or its settings yourself for one instance. The automatic choices suit most people, so it is worth having a reason before changing them.
After this you will be able to
- Use a different Java for one instance.
- Compare the performance options fairly.
- Avoid old Java settings that cause trouble.
Use a different Java for one instance
Settings decides which Java Agora uses everywhere. To use a different one for a single instance, pick it on that instance's Java & Args tab. When you are done testing, clear it again so Agora goes back to choosing a suitable Java for you.
Trying the performance options
Auto is the default. ZGC low latency can reduce sudden pauses on newer Java versions. G1GC high efficiency is another option you can pick yourself. Pre-touch allocated memory sets aside all the game's memory at startup, which can reduce stutter later but makes the game slower to start.
- To compare fairly, test in the same world doing the same things.
- Watch for stutter, how long the game takes to start, how much memory it uses, and whether it crashes.
Use your own Java arguments sparingly
Arguments you add yourself can clash with the ones Agora sets, or be out of date. The launch preview shows what will actually be used. Allowing an incompatible Java version is best kept for a quick test, with a snapshot to go back to.
This guide is the same text Agora shows in its built-in Help & Guide, which is searchable and links directly to the screens it describes.