Sever High RAM Usage
Im running a Server with DH alongside a few other mods on crafty-controller.
The server gets 10gbs of ram and 8 cpus.
It runs NeoForge 1.21.8
So for some reason the server eats up all the ram when only 2 players are on. The RAM Usage rises from time to time until the server crashes.
I red through some of the other post, but am unsure what the solution could be.
Installed Performance mods:
Chunky
Entity culling
Lithium
Sodium
23 Replies
if you need any additional, like settings, feel free to ask
I would recommend installing ferrite core and modernfix for ram usage reductions
Does the server itself crash or does it eventually get killed by the OS/hosting solution
is there a 1.21.8 version of modernfix or should i just install the 1.21.8?
the container that the server runs on freezes so yeah i would say it crashes
Try allocating less ram to the server
yeah trying that atm the container still has 10gbs but i allocated 8 to the server, i also lowered some settings and now its running at around 80%
If you allocate 10 to the server and the container only has 10 there won't be enough left for the jvm
that makes a lot of sense now that you say it xd
It would be 10gb + whatever the jvm uses
@Skillnoob_ Are ther any mods i should uninstall, maybe chunky?
Chunky is not needed for dh
Also another question, what is the best way to prerender chunks, so that when a other clients join the server they dont have to generate everything.
Is the "Internal_Server" Setting best use here, so i can pregen chunks? And if i pregen chunks this way, do i have to do a file transfer or can i just log onto the server and the loaded chunks get transmitted?
Also should i just always have the setting on "Internal Server" or is it worth to swap to sth else at some point?
I'm just trying to let the server do the work in advance so that when clients join, the server doesn't have to work too hard.
!generators
- FEATURES: Complete generation of all LODs with mostly correct structures and trees. Does not save vanilla chunks, and is much faster than FULL unless C2ME is installed.
- FULL: Generates and saves both DH LODs and vanilla chunks, has 100% correct LODs, because it also saves vanilla chunks it takes the most amount of drive space. Generation speed will suck unless C2ME is installed.
- PRE-EXISTING: Generates LODs for all existing vanilla chunks.
I usually switch to features after I'm done pregenerating
So im trying to understand how exactly the client and server communicate here.
When i pregenerate idk 1000 chunks... what happens here. The server loads the chunks and safes it in a file and what happens now when i join with a fresh client?
The server sends the high quality LODs to the client which then downsamples them to whatever quality it needs
Ahh okay
So is it also worth to select the LZ4 Setting for Data compression? Could that make a differenc in server performance?
Same for "Loss World Compression --> 1. Merge Same Blocks" Setting
Some amount but your database size will more than double
Okay, thanku for awnsering my questions, hope they weren't too stupid. ill have the server pregen over night.
I let the pregen run a bit, it is mostly fine with the occasional hicup where its a few ticks behind, put for some reason the RAM usage suddenly jumped 50% and the server stop itself cause its to many ticks behind.

in this run i did a pregen for 500 chunks (dh pregen start overworld 0 0 500)
also after i stopped the pregen the ram usage stayed at about 82%, im not sure if this is normal or sth is very wrong
So i pregened around 500 chunks now. What i find interesting is that when there are no or only one clients on the server, its totaly stable, as soon as the 2nd joins the server goes ham.

Im really confused what causes this
Any updates yet?