The amount of allocated ram that I set never seems to be the real ammount that the server is using. Its only using arround 3-4 gb of ram even when i set it in the 8-14 range where I had set it and want it. I know this because on the status page it never goes past that, and using an external mod that lets me check the ammount of ram its currently using in a command, it reads xMB / 3104MB.
Reproduction Steps
Set the allocated ram in configurations → Minecraft
Start up server
Server Claims to have that amount set, but it doesn’t go anywhere past 3-4 gb
As long as the readout in AMP says it’s using xMB/{Limit}MB it’s fine.
That command is reading the currently allocated memory (as in what the JVM has given the process) and not what’s actually available to the JVM
How would I increase that then if its possible, because when the server needs more ram in entity heavy situations it still caps out up there no matter what, and the server can never use the memory. It was working like that before where it was actually using all the ram, but a few restarts ago it stopped. The server is even going down to 15tps with only one person in a village and I’m planning on opening the server to a large group of friends
You don’t need to increase that, the JVM will do it automatically as long as you have the limit configured under Java and Memory.
MC is mostly singlethreaded, so throwing more ram at it isn’t going to solve your issues.
First sanity check would be to see if the server-side render distance is reasonable (the default is 10).
You can then use the Spark plugin/mod to see exactly what’s causing the issue, commonly it’s due to chunkgen/loading or there being too many entities loaded.
If it is a chunkgen issue, you can use a plugin/mod like Chunky to pre-generate terrain, which saves the CPU from needing to do the “gen” part of things while players are exploring, at the cost of the world’s file size being much larger.
I am just concerned because before it was able to use all the ram allocated and now it’s using barley what it was, and I’m ok with the tps since its obvious with all the entities I’m loading as a test.
Chunks are set to 6 chunks with sim distance set to 4, and using server core the mobcap is at 60%
I did actually have spark but I haven’t checked the profile in a while and forgot about that so I’ll do that in a bit
And yes I did use chunky alr so I do know it isn’t newly loading chunks since Ive don’t the first 3000 out from 0 0
Just did a few tests and the more I was able to stress it it FINALLY broke the cap that it was at.
Also checked spark but it only showed a few mods that were either supposed to be helping like modern fix or lithium or something i needed like neruina
Thank you!
didnt mean to bold at all oops
OK im re editing this because i cant reply if someone hasnt responed
Ok so nevermind nothing is fixed, memory is constantly being over loaded and i have no idea what is caping it still. And Ik I’m not crazy because it was working 2 days ago perfectly fine where it used the right amount of memory and the tps wasn’t 15 with only 1 person and now its 7 with 3 T_T
Ima need some help if someone has experienced maybe any mods I’ve missed by accident that others know could be the cause