Hello, So I am running a 64 bit system and I downloaded the java Windows 10 offline 64 bit. However whenever I go to configure Java, it states its a 84_64 bit. Which is weird. Now why I bring this up is I would like to have Minecraft eat up more Ram. As I did put -Xmx7G into the JVM arguments for 1.7.10 Forge 10.13.4.1614. When I load up my modpack which is roughly 100 mods. It says I have the 7 Gigs of memory. However underneath it's only Allocating 2.5 Gigs, and im getting a good 10 FPS. What's the issue and I can provide screenshots.
The game only uses as much memory as it needs, and more memory actually worsens performance since the JVM needs to spend more time managing it:
2. Why not give it more memory? Let's give Minecraft 4 GB of RAM to play with. This would need a PC with at least 8 GB RAM (as the real memory usage is almost double the memory visible in Java). If the VM decides to use all the memory, then it will increase the time between the garbage collections (20 sec instead of 4), but it will also increase the garbage collection time by 4, so every 20 seconds there will be one massive lag spike.
This is partly why I only allocate 512 MB myself, which is more than enough for 1.6.4, even modded and on higher settings (with my own highly optimized non-Forge mods; Forge and most mods are coded extremely badly, even worse than vanilla since 1.8, which is why they need such insane amounts of memory - there is simply no sane explanation for needing even 1 GB for any sort of modpack). The game is otherwise not written to make use of any additional memory; it doesn't keep more chunks or other data loaded or anything and any apparent increase in memory usage is due to the JVM being lazy about cleaning up unused objects. if anything, you want to make sure you have enough free system memory so the OS itself can cache frequently accessed files, greatly speeding up disk access.
Thanks man. I managed to fix it. Just by changing the Ram to 3GB. Which bumped me to 55fps. Do you know of any mods that allow one and only one structure(schematic) to spawn near the world spawnpoint upon creating a new world. I'm working on this modpack and would like a NPC to spawn being a guide or intro to the pack.