--- title: "Memory and Java - VoxelSprout Launcher wiki" description: "Memory and Java arguments suggested for each instance, the Instances and Java settings, and the advanced options." url: https://voxelsprout.com/launcher/wiki/memory-and-java --- [VoxelSprout Launcher](https://voxelsprout.com/launcher) [Wiki](https://voxelsprout.com/launcher/wiki) Memory and Java # Memory and Java Memory and Java arguments suggested for each instance, the Instances and Java settings, and the advanced options. Each instance gets memory and Java arguments suggested from its Minecraft version, loader, mods, shaders, the pack's own memory figure, the Java that runs it and your computer. One rule decides everywhere: when you play, on the **Options** tab and in every fallback. ## On the Options tab * The **Memory** slider, and under it the suggestion: the memory, the garbage collector and the Java version, with a line of why for each choice, and **Apply**. * A small **Suggested** mark by **Java and memory** means the instance's settings are well off the suggestion: a gigabyte and a fifth on memory, another collector, or a flag its Java refuses. * New instances, modpack installs and imports take the suggestion on their own, marked as the launcher's. A value set by the launcher follows the next suggestion; a value you set is never replaced. The tab says which in one quiet line. ## Settings: Instances and Java **Settings > Instances and Java** has **Suggest memory for each instance** and **Suggest Java arguments for each instance**, both on by default. Turned off, every instance gets one value, which starts from the suggestion for a typical modded pack; an instance's own setting still wins. ## How much memory | Instance | Suggested | | ----------------------------- | -------------------------------------------------------- | | Vanilla | 3 GB (2 GB on 1.12 and older) | | Modded | 2.5 GB, plus about 24 MB a mod (14 MB on 1.12 and older) | | Forge or NeoForge | 0.5 GB more | | With ModernFix or FerriteCore | 15% less for the mods' share | | With Iris or Oculus | 0.5 GB more | | With Distant Horizons or Voxy | 1 GB more for each | | A CurseForge pack | At least what the pack recommends | * At most 12 GB from mods alone, and 16 GB in all, rounded up to whole gigabytes. * Never more than your computer can spare: half of the memory on a computer with 6 GB or less, otherwise all but a quarter, keeping at least 3 GB for everything else. * A check before launch warns when the computer is short of memory. ## Java arguments * The G1 collector with Mojang's tuning; string deduplication for 100 mods or more; compact object headers on Java 25 and newer. * Generational ZGC instead on Java 21 and newer, with 6 or more cores, 16 GB or more and a heap of 6 GB or more (with a fifth more heap). * Transparent huge pages on Linux. ## Advanced **Advanced: which Java, and its arguments** on the Options tab lets you pick the Java and type your own arguments, for one instance or (in Settings) for all. * Arguments are checked as you type: `-Xmx` and heap flags that fight the slider, duplicates, a flag turned on and off, two collectors, unknown flags, flags of another system, and flags this Java doesn't have or dropped. * When you play, flags the running Java would refuse to start with are left out, so a flag for Java 21 doesn't stop a Java 8 instance. * Environment variables can be set per instance too. ## Java * **Get the right Java automatically** downloads the Java each Minecraft version needs (Mojang's runtimes or Azul Zulu). * Javas already on your computer are found; you can add one by its path and test it. * If a version needs a Java you don't have, the launcher walks you through getting it. ## Window Window size and fullscreen, for every instance or one; and what the launcher does when the game starts: minimise, hide, close or quit. ![An instance's Options tab: the memory slider at 10 GB, and the suggestion line Generational ZGC, Java 21, matches the suggestion](https://voxelsprout.com/media/launcher/memory-light.webp) An instance's Options tab: the memory slider at 10 GB, and the suggestion line Generational ZGC, Java 21, matches the suggestion Screenshot1 / 2 [Previous Screenshots](https://voxelsprout.com/launcher/wiki/screenshots) [Next Sandbox and privacy](https://voxelsprout.com/launcher/wiki/sandbox-and-privacy) Something missing or wrong on this page? Say so on [Discord](https://discord.gg/CvdkGbEW4y).