DHS causes huge lags and eventually stops my server

When my friend (who also uses DH installed on their client) joins my server it keeps generating LODs and server lags a lot. If I try manually running dhs pregen start world 0 0 110 it lags a lot, in the console I can see shortly before it stops:
[03:16:37] [Spigot Watchdog Thread/ERROR]: The server has stopped responding! This is (probably) not a Spigot bug.
[03:16:37] [Spigot Watchdog Thread/ERROR]: If you see a plugin in the Server thread dump below, then please report it to that author
[03:16:37] [Spigot Watchdog Thread/ERROR]:       *Especially* if it looks like HTTP or MySQL operations are occurring
[03:16:37] [Spigot Watchdog Thread/ERROR]: If you see a world save or edit, then it means you did far more than your server can handle at once
[03:16:37] [Spigot Watchdog Thread/ERROR]:       If this is the case, consider increasing timeout-time in spigot.yml but note that this will replace the crash with LARGE lag spikes
[03:16:37] [Spigot Watchdog Thread/ERROR]: If you are unsure or still think this is a Spigot bug, please report to https://www.spigotmc.org/
[03:16:37] [Spigot Watchdog Thread/ERROR]: Be sure to include ALL relevant console errors and Minecraft crash reports
[03:16:37] [Spigot Watchdog Thread/ERROR]: Spigot version: 4533-Spigot-7c52c66-e703c03 (MC: 1.21.8)
and then additionally:
[03:16:41] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 71429ms or 1428 ticks behind
I've already tried changing settings in the config file:
render_distance: 128
scheduler_threads: 8
generate_new_chunks: true


I've already tried following https://discord.com/channels/881614130614767666/1035937626944962641/1350101909683572736 and https://gitlab.com/distant-horizons-team/distant-horizons-server-plugin/-/wikis/home and currently all I can do to play with friends is /dhs pause as lags are unbearable
Solution
Use a server software that has asynchronous world generation, like Paper
Was this page helpful?