1

I want to use an AFK profile in Minecraft, but I can't seem to limit its ram usage. i tried using these JVM arguments: -Xmx512M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M, but it gives an error saying it 'couldn't create a java virtual machine' (1)

I tried 'process lasso' from this thread, but just like the other software, I couldn't find how to limit ram for only one app, and not all apps

ps: I don't use the actual launcher, I use this because I used to use it before getting Minecraft and got used to it. and for multiple instances, I use multi-mc loader

1

1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Dec 16, 2021 at 19:14

1 Answer 1

1

Minecraft requires 2GB of memory to function. You probably are limiting it so much that when you try to launch it, Minecraft tries to allocate the minimum amount of memory but you have only set aside 512MB, so it throws an error and doesn't launch.

Try changing -Xmx512M to -XmX2Gand it should work.

3
  • Source: help.minecraft.net/hc/en-us/articles/…
    – nAZklX
    Dec 16, 2021 at 20:47
  • i get the same error with -XmX2G
    – zen
    Dec 17, 2021 at 2:44
  • Have you tried using the standard Minecraft launcher? Could be something about the third-party launcher.
    – nAZklX
    Dec 17, 2021 at 6:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .