mojira.dev
MCL-9102

Game doesn't run with more than 4GB ram allocated

When I tried to allocate 6GB of my RAM to minecraft through the JVM argument "-Xmx6G -Xms6G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -client -d64" The game instantly crashes on launch. Game Info window doesn't show anything and I only get the message "Crash: An unexpected issue occurred and the game has crashed. We're sorry for the inconvenience."
Mind you that if I change the JVM to "-Xmx4G -Xms4G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -client -d64" the game runs fine.

Attachments

Comments 11

Thank you for your report!
However, this issue has been closed as Invalid.

Your game, launcher or server is modified.
If you can reproduce the issue in a vanilla environment, please recreate the issue.

  • Any non-standard client/server/launcher build needs to be taken up with the appropriate team, not Mojang.

  • Any plugin issues need to be addressed to the creator of the plugin or resource pack.

  • If you have problems on large servers, such as The Hive and Hypixel, please contact them first as they run modified server software.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki

Tried using the latest release (1.12.1) and the crash persists. Please reopen the issue.

[media]

[media]

We do not have enough information to find the cause of this issue.
Please attach the launcher log (.minecraft/launcher_log.txt) here.

Once attached, the report will be reopened automatically.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki

Launcher_log.txt as requested.

[media]

Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
Picked up _JAVA_OPTIONS: -Xmx4g
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

Do you have any incompatible software installed?

1 more comments

Can you try whether

-Xmx6G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -client -d64

works (removed -Xms6G)?

If it doesn't, you could check if the environment variable _JAVA_OPTIONS is set (tutorial about PATH, we're interested in _JAVA_OPTIONS). If yes, you should be able to delete or edit that variable. It is currently -Xmx4g, preventing Minecraft to use more RAM than 4GB.

After using the JVM argument you've sent me, the game opened normally without the error, however, on the "F3" display, the top-right corner shows the "maximum memory as 4029MB, even tough the JVM is set to 6GB like the screenshot,

[media]

Is that normal?

...no. No, it isn't. Can you try the second part of my comment above?

[Y]ou could check if the environment variable _JAVA_OPTIONS is set (tutorial about PATH, we're interested in _JAVA_OPTIONS). If yes, you should be able to delete or edit that variable. It is currently -Xmx4g, preventing Minecraft to use more RAM than 4GB.

Working perfectly now! Only had to restart the PC for the _JAVA_OPTIONS to be applied. Thanks for the help and dedication!

Great! I've resolved this ticket as invalid because it's technically not an issue with Minecraft itself, but rather with Java.

Alberto Mariano da Silva Bittencourt

(Unassigned)

Unconfirmed

crash

Retrieved