Pregenning a server- TPS is ~2 ticks, and the chunk/entity count is over 20000 so far.
So I'm going to be hosting a modpack of roughly 300 mods (200 mods server side) for some friends of mine, and we wanted to use the larion disk world world generation + nature's spirit + WWOO (modified), and I've been troubleshooting it. The server was stable, no issues or hiccups, no crashing- until I started to pregen chunks. Using spark, I can see that there are thousands of entities loaded on the server while this is happening, which is slowing down the world generation immensely. The only way to clear the entities is to close the server. I made sure to pick and choose mods that shouldn't cause a lot of lag (with better end/nether being an exception), and so I want to make this work. Is there really anything I can do about the thousands of chunks being loaded, or do I just have to sit it out until it's done, then reload the server.
Even after stopping the pre gen, the chunk count and entities still linger, I'm just wondering if there's an issue with minecraft failing to offload the chunks or something.
I suspect that the entities are mostly comprised of falling blocks and sand/gravel from the world generation, so i started looping some kill dropped item commands (targetting kelp, sand, and gravel), as well as a falling block kill script, which has stopped the crashing for now. However, the entity counts are still rising with every minute I leave it on pregenning. I'm currently aiming for a 10k by 10k (5k radius) world, as per my larion settings.
Spark report: https://spark.lucko.me/hwJQ7dA7Dh
Additional Questions:
In the future, would it be better that I pre gen with ONLY mods that affect performance/world generation?
Is it worth changing back to G1GC if ZGC is working fine for now anyway? No memory leaks yet
Can this be a C2ME issue? 🤔
Note:
I am running on a gaming laptop so I expect lower performance than a desktop cpu, I'm investing in a server PC rn, just waiting for prime day sales to finalize the rest of the build.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
4 Replies
broken spark report please resend a new one
the pregen works that way, itll linger until a couple minutes then unloads the chunks
dont play while it pregens, let it do its thing
https://spark.lucko.me/f8DrZLNWnt
100%, I don't touch it or let anyone in.
At this point, it's progressing at like, 0.01% completion every 15 seconds, so if this is all expected, then it's all expected and I'll just need to sit patiently.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
just in case
Just going to mark this as solved- just had to sit through the pregen for roughly 16 hours, but it finished- what caused the server to stabilize through that time, just run kill commands to remove falling blocks and sand/gravel/kelp dropped items to help with the lag. I also set a very long tick time in the properties to prevent it from crashing (which may not be the best fix, but it worked for me).