Your setup
Total installed RAM, not currently free memory.
Startup settingsG1GC
Start with G1GC. This ZGC preset targets Java 21. Select the Java version in your launcher or on your server.
Start with this allocation
Allocate to your game in the launcher · 7,168 MB
- Minecraft
- 7 GB
- OS and other apps
- 9 GB
This is an estimate from your settings, not a measurement of your game. Check it with your own pack.
Launcher argumentsView code
-Xmx7168M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
Where to use it
Find the memory setting in your launcher and set 7,168 MB. If you use JVM arguments, replace the existing memory flags with the copied line. Keep only one -Xmx flag.