Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Minecraft error "..Error: java.lang.OutOfMemoryError: Java heap space" after Minecraft (Not Responding)

Featured Replies

Posted

I went to allocate RAM on the CurseForge Launcher, and it showed the max I could allocate was 17120MB, or 17.12GB, out of my 32GB RAM.
When I go to my modpack options off the Minecraft Launcher, it reads -Xmx17120m - Xms256m, or -Xmx17.12GB -Xms0.256GB, which means MC can allocate 17.12GB to heap space, and it can only allocate a maximum of 0.26 heap space.
Should Minecraft be able to allocate more than a max of 0.26 heap space, or should that not affect it?

Game crashed after the launcher wouldn't respond, showed a link to this page, which says that the error could be caused by the game running out of memory, and that I should check my JVM arguments or remove any resource packs installed on my modpack, so I uninstalled my resource packs, which didn't do jack since Minecraft still wont respond and Im still stuck on the red Mojang screen.
https://bugs.mojang.com/browse/MC-23484

Game crashed after it was stuck on the red Mojang screen, and gave me this error (along with the crash report linked at the bottom:
"The game crashed whilst rendering overlay
Error: java.lang.OutOfMemoryError: Java heap space"
which indicates to me that the heap space allocated through Xms shouldn't be an issue, but that the maximum allocated heap space of 256m, and it not saving changes past this, IS an issue. Changing the value on the modpack through the Minecraft Launcher doesnt work, and only the Xmx value changes through the CurseForge Launcher.


https://gist.github.com/iiEco-Ryan3166/a855247b12741e4cd41fbf77cb2cb41b

-Xms is the initial (minimum) heap allocation

Your crash report shows you allocating 4G (4096m) maximum heap

Quote

JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4096m -Xms256m

It's not clear to me from the description above what you are actually doing. But whatever you are configuring is not what is getting used. 

If you want help with curseforge, you need to ask here: https://support.curseforge.com/en/support/home

Edited by warjort

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.