#Memory Issue

1 messages · Page 1 of 1 (latest)

austere stratus
#

Actually your java args seem to be set to use 8, I guess it failed to allocate around 2GB...

tacit mica
#

strangely your jvm is also 64 bit

austere stratus
#

Thats usually the issue, yeah

tacit mica
#

please try downloading a different distribution ,adoptium java instead

austere stratus
#

Not this case

tacit mica
#

ive seen plenty of nonsense from ms openjdk

#

like memory access violations from glfw

obsidian mica
tacit mica
#

are you.. in mc?

obsidian mica
#

it starts

#

but randomly gets that crash

#

midgame

#

like after 10 minutes of playing

tacit mica
#

im even more confused

#

since

#

it says youve allocated 8GB

obsidian mica
#

yeah i read the error log and was confused myself

#

after the first time i thought like ok ill just allocate more

#

but same crash on 10 and 12

austere stratus
#

Sounds like a memory leak which causes an OOM crash, although the threaddump here is unusual for that

#

Allocating more than half your system memory is not really recommended

#

Use too much and your computer suddenly does not have enough memory to function

#

Maybe it is related to the swapfile?

obsidian mica
#

i did put in some arguments

austere stratus
#

Which ones?

obsidian mica
#

just the aikar ones but that was for another modpack

#

i removed them and am playing for like ~8 mins rn

#

wait ill send them here

#

-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true

Aikar's Thoughts

Learn more about my In depth study on tuning the G1GC garbage collector to be optimized for how Minecraft servers run, and keep low pause efficient usage.

#

could this be the cause

#

i don't know what these settings even mean

tacit mica
#

no its not because of that

#

please try removing your java

#

and installing adoptium temurin

obsidian mica
#

okay i think i know why

tacit mica
#

whys that

obsidian mica
#

the moment i activated screen share

#

to discord

#

it instantly crashed

#

i usually stream gameplay to my friends

tacit mica
#

🤨

austere stratus
#

I assume you were streaming the app vs. Your full screen?

obsidian mica
#

i was streaming minecraft specifically

#

in windowed mode

austere stratus
#

Either way, it might actually just be that you flat out run out of memory then

#

Discord screenshare is surprisinly heavy

#

Just have task manager open next time you try

obsidian mica
#

allright

austere stratus
#

The fact is if your memory goes to 100% and your game tries to allocate more memory, it has to rely on swap, or crash

obsidian mica
#

ahh makes sense

#

i think all the times where it happened randomly i started stream in the main menu of the game

#

so after 5 min of playing it died

#

i just now did it while playing in server and it just instantly went poof

austere stratus
#

F

obsidian mica
#

thanks for the help noaaan and frontear

#

most modpack* servers u get ignored

austere stratus
#

No worries 👍

pseudo wharf
#

I fixed this problem cause no one was helping me here on this discord.

#

go ahead like i just did it, learn about all mods in the modpack and check that ones that "help" with the performance in the game.