Server-side fork cause lags and crashes

Hey, I used Chunky and DH server-side fork to pregen my world (for 10k blocks radius) and when I enable the DistantGeneration, my local server just lags and rollback until it crashes. (crashes are caused by too much latency) My CPU is a i7-13700KF (24 threads) and here's my dhconfig :
enableDistantGeneration = true
distantGeneratorMode = "PRE_EXISTING_ONLY"
worldGenerationTimeoutLengthInSeconds = 180
lodChunkRenderDistanceRadius = 64
numberOfWorldGenerationThreads = 16
numberOfFileHandlerThreads = 6
numberOfLodBuilderThreads = 16
runTimeRatioForFileHandlerThreads = "1.0"
runTimeRatioForLodBuilderThreads = "0.25"
runTimeRatioForWorldGenerationThreads = "1.0"
enableLodBuilderThreadLimiting = true
minTimeBetweenChunkUpdatesInSeconds = 1
loginDataSyncRCLimit = 50
genTaskPriorityRequestRateLimit = 50
rateLimitHitTolerance = 10
enableServerNetworking = true
enableRealTimeUpdates = true
enableLoginDataSync = true
sendLevelKeys = true
generationRequestRCLimit = 100
genTaskPriorityDistanceRatio = "3.0"
enableDistantGeneration = true
distantGeneratorMode = "PRE_EXISTING_ONLY"
worldGenerationTimeoutLengthInSeconds = 180
lodChunkRenderDistanceRadius = 64
numberOfWorldGenerationThreads = 16
numberOfFileHandlerThreads = 6
numberOfLodBuilderThreads = 16
runTimeRatioForFileHandlerThreads = "1.0"
runTimeRatioForLodBuilderThreads = "0.25"
runTimeRatioForWorldGenerationThreads = "1.0"
enableLodBuilderThreadLimiting = true
minTimeBetweenChunkUpdatesInSeconds = 1
loginDataSyncRCLimit = 50
genTaskPriorityRequestRateLimit = 50
rateLimitHitTolerance = 10
enableServerNetworking = true
enableRealTimeUpdates = true
enableLoginDataSync = true
sendLevelKeys = true
generationRequestRCLimit = 100
genTaskPriorityDistanceRatio = "3.0"
I'm also using it with plenty other mods but i don't think the lags come from here because it don't lags anymore when i turn off the DistantGeneration on the server side.
7 Replies
Puhpine
Puhpine5mo ago
what cpu does the server have?
Popi
PopiOP5mo ago
the same as mine because it's local for test purpose, then it'll be on a pretty decent server
Puhpine
Puhpine5mo ago
Can you send logs of the server?
Popi
PopiOP5mo ago
When the server transfers the LoD information to the player the server overloads while continuing the transfer, once the chunks that the player can display in his perimeter are downloaded for the client then the server doesn't bug anymore, if I move a little, it overloads even more and it crashes. here's a message i got in chat while trying to fly few blocks around the spawn area and here's the logs, i looked at it and it looks fine : https://mclo.gs/UmgwNqb
mclo.gs
Forge 1.20.1 Server Log [#UmgwNqb]
9585 lines | 385 errors
No description
Popi
PopiOP5mo ago
i think the process just take a lot of CPU for some reason that there's not enough for the rest
Puhpine
Puhpine5mo ago
yep, dont see anything wrong either
Popi
PopiOP5mo ago
It might just be CPU overload when transfering files but i don't understand why it uses so much Update : it still don't work on a decent hosted server
Want results from more Discord servers?
Add your server