RAM shortage while playing Minecraft, Out of Memory is not necessarily due to your computer being too weak, as the computer configuration for playing Minecraft is not particularly demanding. Any mid-range computer today can handle the current Minecraft computer configuration without any lag.
Guide to fixing RAM shortage while playing Minecraft
Cause:
The issue with Minecraft when it reports Out of Memory is not because your computer lacks RAM for Minecraft, but because the default Minecraft system has 1GB of RAM with 128 MB graphics only. Compared to today's computers, this figure is too low. Therefore, you can adjust this figure to help fix the RAM shortage issue when playing Minecraft nowadays.
Step 1:
Step 2: However, in the next step, don't rush into the game but choose Edit Profile instead.
Step 3: In the Profile Editor section, check the JVM Arguments box.
Step 4: Immediately, you will see the code line next to it light up, and we will edit this code snippet as follows:
-> Here you will see 2 values: -Xmx1G, -Xmn128M corresponding to the default RAM and vRAM values of the graphics card that Minecraft sets. To change, simply switch to -Xmx2G and -Xmn512M, of course, you have the right to set higher levels if you want. For us, setting 2GB RAM and 512 MB vRAM is more than enough.
-> So the code snippet will be transformed into:
-Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn512M.
->Note: After setting up, remember to click Save Profile.
Step 5: That's it, the RAM shortage issue in Minecraft has been fixed, now you just need to enter the game to verify.
Step 6: Choose any gameplay mode in Minecraft, it doesn't matter which one, and simply enter the game.
Step 7: While in the game, press F3 to display a long set of statistics. Look to the upper right corner, where you'll see the corresponding RAM amount you've set.
If the number matches the RAM you set, it means the Minecraft RAM shortage issue has been completely resolved, and you won't encounter Out of Memory situations anymore.
Above are all the steps to quickly fix the RAM shortage issue when playing Minecraft. Dealing with this RAM shortage issue is quite simple, isn't it? Just change two settings, and you can play Minecraft smoothly without worrying about errors.
For those who frequently experience Minecraft on their computers, don't forget to bring along some Minecraft codes. Using Minecraft codes is not only harmless but also encouraged as it helps players have the best experience.