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
GLG_Cow
GLG_CowOP2mo ago
if you need any additional, like settings, feel free to ask
Skillnoob_
Skillnoob_2mo ago
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
GLG_Cow
GLG_CowOP2mo ago
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
Skillnoob_
Skillnoob_2mo ago
Try allocating less ram to the server
GLG_Cow
GLG_CowOP2mo ago
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%
Skillnoob_
Skillnoob_2mo ago
If you allocate 10 to the server and the container only has 10 there won't be enough left for the jvm
GLG_Cow
GLG_CowOP2mo ago
that makes a lot of sense now that you say it xd
Skillnoob_
Skillnoob_2mo ago
It would be 10gb + whatever the jvm uses
GLG_Cow
GLG_CowOP2mo ago
@Skillnoob_ Are ther any mods i should uninstall, maybe chunky?
Skillnoob_
Skillnoob_2mo ago
Chunky is not needed for dh
GLG_Cow
GLG_CowOP2mo ago
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.
Skillnoob_
Skillnoob_2mo ago
!generators
YAGPDB.xyz
YAGPDB.xyz2mo ago
- 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.
Skillnoob_
Skillnoob_2mo ago
I usually switch to features after I'm done pregenerating
GLG_Cow
GLG_CowOP2mo ago
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?
Skillnoob_
Skillnoob_2mo ago
The server sends the high quality LODs to the client which then downsamples them to whatever quality it needs
GLG_Cow
GLG_CowOP2mo ago
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
Skillnoob_
Skillnoob_2mo ago
Some amount but your database size will more than double
GLG_Cow
GLG_CowOP2mo ago
Okay, thanku for awnsering my questions, hope they weren't too stupid. ill have the server pregen over night.
GLG_Cow
GLG_CowOP2mo ago
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.
No description
No description
GLG_Cow
GLG_CowOP2mo ago
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
GLG_Cow
GLG_CowOP2mo ago
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.
No description
GLG_Cow
GLG_CowOP2mo ago
Im really confused what causes this Any updates yet?

Did you find this page helpful?