Server dying with out of memory problem, Data usage scaling with no of scheduler threads added,

Ryzen 7 5800X 4.5 gigs of ram crashed with 2 threads in config
18 Replies
Puhpine
Puhpineā€¢4w ago
you put nightly build in the tags, but youre using the plugin
shaurya
shauryaOPā€¢4w ago
Hmm i just selected randomly sorry James told me to ping jckf So here i go @Jckf , Help sir ! here is the message link https://discord.com/channels/881614130614767666/1333989035257102426/1334526451545804820 Soory for ping :-:
Jckf
Jckfā€¢4w ago
4.5 gigs for the entire machine, or 4.5 allocated to the Minecraft server? Spigot, Paper, Folia, or what?
shaurya
shauryaOPā€¢4w ago
its a vps host idk how much fo rmachine for 4 gigs allocated 4.5 actually @Jckf ok ? Paper
Jckf
Jckfā€¢4w ago
And 0.8.0 nightly build of plugin I guess?
shaurya
shauryaOPā€¢4w ago
Yup/
Jckf
Jckfā€¢4w ago
I'd say 4.5 gigs to do a bunch of world generation might just be too little. You can try with a single builder thread, and/or reducing the concurrency limit If that doesn't help you can also try pregenerating your world with Chunky before generating LODs with DHS
shaurya
shauryaOPā€¢4w ago
uhh Like i have got total 16 threads but i can only use one of em "-" thats kinda sad Yeh, one is working though
Jckf
Jckfā€¢4w ago
16 thread and 4 gigs is kinda wonky. Each worker thread will load 16 chunks in order to generate a single LOD. More threads equals more chunks loaded equals more memory needed
shaurya
shauryaOPā€¢4w ago
Yeh, but at least 2 of those should be able to work in 4 gigs šŸ˜¦ How ram hungey is this thing so i need like 32 gigs to run all 16 threads effectively ?
Jckf
Jckfā€¢4w ago
I typically give my servers between 8 and 16 gigs, and have never had an issue with the default 4 threads
shaurya
shauryaOPā€¢4w ago
4*2 = 8 so yeh that seems to be good so we need double ram per worker K Lets see The client side is much less ram hungey isen't it ?
Jckf
Jckfā€¢4w ago
Possibly. The mod is written entirely differently, and does a lot of things "manually" instead of relying on Mincraft itself. For instance; the mod directly interacts with the world files while the plugin goes through the server and asks for data. The mod also does world generation internally while the plugin again simply asks the Minecraft server to generate the world. Completely different environments and sets of constraints
shaurya
shauryaOPā€¢4w ago
hmm thank you anyway, i will test the nightly with fabric on server? do you want any comparision i can report that if you like ?
Jckf
Jckfā€¢4w ago
Sure, it might be interesting. But I don't intend to fundamental change how the plugin works
shaurya
shauryaOPā€¢4w ago
Well, i understand, but just a quick comparision Isne't the Minecraft logic bit too uhh you know
Jckf
Jckfā€¢4w ago
Not necessarily the most efficient in terms of resource usage or speed, no. But absolutely the most efficient way to implement a working plugin without reinventing the wheel
shaurya
shauryaOPā€¢4w ago
Understood šŸ‘ THe fabric one is going grazy crazy* i did not change any default settings but its generating super fast withoutout crashin ofc

Did you find this page helpful?