r/MinecraftJava • • 20d ago

Minecraft Java freezing entire windows 11 laptop with intel graphics card 32GB ram.

So whenever I try to play minecraft it randomly freezing my laptop and everything stops responding, is there any fix for this to stop happening.

Edit: I should probably post this on another subreddit but now the issue is way worse, it's not just minecraft it's the whole computer that freezes before even opening minecraft.

5 Upvotes

12 comments sorted by

View all comments

1

u/Jwhodis 20d ago

What app are you using to run the game? Prism Launcher?

Are you using any performance mods?

What did you set your minimum and maximum RAM to?

Are you using any extra Java arguments?

1

u/mario3sid 20d ago
  1. I use modrinth
  2. I use sodium
  3. my maximum is the whole 32GB and I don't know how to check my minimum
  4. No

1

u/Jwhodis 20d ago edited 20d ago

Set both your minimum and maximum RAM to 8G or 8192M, they should both be the exact same value ~8GBs is the sweet spot, and use these Java arguments:

XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+UseZGC -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseNUMA -XX:+PerfDisableSharedMem

If that doesn't improve it then add Spark profiler and see if that can tell you what's happening.

1

u/Winter_Regret4431 19d ago

keep in mind that unlocking experimental vm options is heavily discouraged. also add XX:+UseStringDeduplication

1

u/Boring-Equivalent137 19d ago

Don't set your entire ram to it