Jump to content

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


iiEco-Ryan 3166

Recommended Posts

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

Link to comment
Share on other sites

-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.

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

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