whats the recommended ammount of threads/cores and memory for DH itself?

i host a server that has 5-10 people on (around 5 every day) and i saw that DH supports being ran on a server now, and I decided to install it on my server since basically everyone who plays uses distant horizons, and we all share the same issue of not having the world filled out however when i installed it today, 6 hours later when activity started to build up near 4 pm, someone complained that the tps was getting worse than normal, and my pterodactyl panel showed the server maxxing out all of the ram and threads/cores, which I only asusme was DH i checked the config file, but found the default threads ammount to be 10, and im not sure if this is the reccomended ammount of threads/cores or not, and im not sure what the memory should be i have plenty of RAM and CPU's on my hypervisor (2x 2669v4's with 88 cores and 512 gb of ram) for me to allocate to the VM, but what would generally be a good ammount to give DH? i need to leave some room for the actual server itself
10 Replies
Puhpine
Puhpine2mo ago
12-16 should probably be fine
kade
kadeOP2mo ago
cores or gb of ram?
Puhpine
Puhpine2mo ago
gb ram
kade
kadeOP2mo ago
kk oh yeah i forgot to mention is there a way to limit the memory usage to what you reccomended i couldnt find anything in the config
Miki_P98
Miki_P982mo ago
you mean despite the allocation being 12 GB MC is using more then that? Try reducing CPU load
kade
kadeOP2mo ago
i have my memory allocation stupidly high because i keep hitting out of memory due to distant using all the memory i dont see a way to limit it but i could try reducing the threads i think im going to turn off distant for now until theres a way to limit how much memory it can use in the config because theres not really a way to do so right now i cant have dh use all of the memory on the server without leaving some for minecraft itself if there isnt a way to limit t
Miki_P98
Miki_P982mo ago
I doubt such a feature would ever be added. It is the JAVA allocation that controls the RAM usage.
kade
kadeOP2mo ago
do you mean the flags? i just need some sort of way to prevent dh from hogging all the ram on the entire mc server instance
Miki_P98
Miki_P982mo ago
yes, reduce CPU load, each thread requires X amount of RAM to work
kade
kadeOP2mo ago
so for a mc server with 40 gb of ram (i plan to lower the ram later if i need to) and 30 cores what would you reccomend setting dh to use i have it on the default 10 right now

Did you find this page helpful?