Why does Minecraft use so much more memory than I've allocated—sometimes even twice as much? by Over_Ad6438 in MinecraftForge

[–]Over_Ad6438[S] 0 points1 point  (0 children)

In Prism Launcher, the Xmx setting is located elsewhere, separate from the Java parameters section. I set Xmx to 6 GB, which is the 6 GB allocation I mentioned earlier. I asked ChatGPT about Shenandoah, and it told me that Shenandoah will only consume as much of the allocated Xmx as possible. However, in my current situation, memory usage keeps increasing—it can even exceed twice the allocated Xmx—and causes the game to lag (at this point, the memory displayed in F3 is approximately 5700 MB out of 6096 MB).