← Back to DatabaseHow to Fix Exit Code 28
Topic: Minecraft Java Edition Exit Codes | Status: Updated
What is this error?
Exit Code 28 in Minecraft Java Edition indicates that the game has run out of memory during execution. This often occurs when the allocated RAM for the game is insufficient to handle the current demands of the world being played.
How to Fix It
- Check System Requirements: Ensure your computer meets the minimum system requirements to run Minecraft effectively.
- Allocate More RAM: Open the Minecraft Launcher, go to 'Installations,' select the desired profile, and click 'More Options.' In the 'JVM Arguments' field, adjust the value of '-Xmx1G' to a higher amount (e.g., '-Xmx2G' for 2 GB of RAM or '-Xmx4G' for 4 GB), depending on your system's capacity.
- Close Background Applications: Shut down any unnecessary applications running in the background that may be consuming system resources, particularly RAM.
- Optimize Game Settings: Lower the game’s graphical settings. Go to 'Options' > 'Video Settings' and reduce settings such as 'Render Distance' and 'Graphics Quality' to lessen memory usage.
- Update Java: Ensure you are using the latest version of Java that is compatible with Minecraft. You can download the latest version from the official Oracle website.
- Check for Mod Conflicts: If you are using mods, ensure they are compatible with the current version of Minecraft and consider removing any non-essential mods to free up resources.
- Reinstall Minecraft: If the error persists after the above steps, consider fully uninstalling and then reinstalling Minecraft to resolve any corrupted files.
Disclaimer: This is an educational guide. We are not responsible for data loss. Always backup your system.