Open Terrain Generator (OTG)

Open Terrain Generator (OTG)

10M Downloads

OTG causes significant lag in forge server

Dong-Tu opened this issue · 4 comments

commented

OTG Plugin or Mod

[Please specify if it's about Forge Mod or Spigot server Plugin placing "x" into []]

  • OTG Mod for Forge
  • OTG Plugin for Spigot

OTG Version

[Please specify the full OTG version that you are running by placing "x" into []]

  • 1.12.2_v8_r1
  • 1.12.2_v7_DEV_r26
  • 1.12.2-v6
  • 1.12.2-v5
  • 1.11.2-v8
  • 1.11.2-v9
  • 1.10.2-v21
  • Other - specify here

Forge or Spigot Versions

[The full Spigot Server or Forge versions that you are running]
forge14.23.5.2838

What other plugins are you running?

[List of your Mods or Plugins installed, ideally with versions]
spongeforge-1.12.2-7.1.10

Description

[What is happening? - Explain what happens and what steps should be done to reproduce the issue. Ideally with pictures;)]
Sadly I am not able to explain this issue clearly because English is not my native language. But I will try my best.
I installed newest OTG on my spongeforge server by follwing wiki, and everything seems to be right. But lags occur when '[OTG]: Compressing structure-cache and pre-generator data' appears in console. This only happens when the server is making backup after chunks are being loaded and unloaded, and causes lag continued for few seconds. And it seems that the larger the region folder, the longer the lag.
I noticed this issue because my server is VERY powerful and I optimized my server so there is no other things could cause such a significant lag. I wish I could know what happens then and how to fix this issue.
By the way, OTG is a excellent plugin and thank you for your work.

[What did you expect to happen? - Explain what you expected to happen after performing the previously described steps]
Stop the lag

[Can you provide a Minimal, Reproducible Example? See here for details: https://stackoverflow.com/help/minimal-reproducible-example]

[And Delete the lines in square brackets!]

commented

Hey @Dong-Tu , please try the latest v9 OTG dev builds from the OTG Discord at https://discord.gg/UXzdVTH, we've done a lot for performance improvements. For pregenerated areas, there is still a bug where lighting is not calculated during pregeneration but only when the player first explores the area, we're still looking at a solution for that.

commented

[18:13:10] [Server thread/INFO] [OTG]: Compressing structure-cache and pre-generator data
[18:13:10] [Server thread/INFO] [OTG]: Removed 0 cached chunks
[18:13:10] [File IO Thread/INFO] [minecraft/AnvilChunkLoader]: ThreadedAnvilChunkStorage (FarFromHome): All chunks are saved
[18:13:10] [Server thread/INFO] [minecraft/AnvilChunkLoader]: ThreadedAnvilChunkStorage (FarFromHome): All chunks are saved
[18:13:10] [Server thread/INFO] [minecraft/AnvilChunkLoader]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[18:13:10] [Server thread/INFO] [minecraft/AnvilChunkLoader]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[18:13:10] [Server thread/INFO] [minecraft/AnvilChunkLoader]: ThreadedAnvilChunkStorage (DIM-31): All chunks are saved
[18:13:10] [Server thread/INFO] [minecraft/AnvilChunkLoader]: ThreadedAnvilChunkStorage (DIM-30): All chunks are saved
[18:13:10] [Server thread/INFO] [minecraft/AnvilChunkLoader]: ThreadedAnvilChunkStorage (DIM-29): All chunks are saved
[18:13:10] [Server thread/INFO] [minecraft/AnvilChunkLoader]: ThreadedAnvilChunkStorage (DIM-28): All chunks are saved
[18:13:10] [Server thread/INFO] [minecraft/AnvilChunkLoader]: ThreadedAnvilChunkStorage (DIM-6): All chunks are saved
[18:13:10] [Server thread/INFO] [minecraft/AnvilChunkLoader]: ThreadedAnvilChunkStorage (DIM2): All chunks are saved
[18:13:10] [Server thread/INFO] [minecraft/AnvilChunkLoader]: ThreadedAnvilChunkStorage (DIM7): All chunks are saved
[18:13:10] [File IO Thread/INFO] [minecraft/AnvilChunkLoader]: ThreadedAnvilChunkStorage (LOST): All chunks are saved
[18:13:10] [Server thread/INFO] [minecraft/AnvilChunkLoader]: ThreadedAnvilChunkStorage (LOST): All chunks are saved
[18:13:11] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 6476ms behind, skipping 129 tick(s)
[18:13:11] [pool-3-thread-430/INFO] [CONSOLE]: [⚡] Tick #13446 lasted 6476.78 ms. (12855.56% increase from avg)

commented

I've also performed some tests with OTG and Biome Bundle preset. It lags quite a bit when exploring the area. here is the .log file
2020-05-23-4.log.gz
And here is the debug profiler files(and clean forge installation one for comparison) 11 vs 20 tps
forge.txt
only_otg.txt

commented

I've also performed some tests with OTG and Biome Bundle preset. It lags quite a bit when exploring the area. here is the .log file
2020-05-23-4.log.gz
And here is the debug profiler files(and clean forge installation one for comparison) 11 vs 20 tps
forge.txt
only_otg.txt

I believe that your situation was different from what I am taking about. Your log file appears to be generated by a client. No doubt that the lag in my server was generated by 'world saving' rather than 'world generating'. It happens intermittently at few minutes interval, yet the TPS is still 20. When it happens, a single tick lasts more than 5 seconds, as if time stopped. Besides there is no ticks last more than 500 milliseconds. Unfortunately I still don't know what happens then.
As for your trouble, I'd recommend using world pre-generation which was integrated in 'O' menu.