ArVdC / TimeManager

Bukkit plugin for time management and display
https://dev.bukkit.org/projects/mc-timemanager/files
Eclipse Public License 1.0
7 stars 3 forks source link

Reccuring Server-Lags of about 10 seconds #10

Closed Vadrome closed 3 years ago

Vadrome commented 3 years ago

While the latest change fixed issue #9, it introduced something new:

[00:08:27 WARN]: Can't keep up! Is the server overloaded? Running 9925ms or 198 ticks behind
[00:08:28 INFO]: UUID of player PLAYERNAME is UUID
[00:08:30 INFO]: PLAYERNAME joined the game
[00:08:30 INFO]: PLAYER logged in with entity id 3623 at ([mc16paper]-1105.699999988079, 70.0, 6.063443533981866)
[00:18:54 ERROR]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH  - git-Paper-457 (MC: 1.16.5) ---
[00:18:54 ERROR]: The server has not responded for 10 seconds! Creating thread dump
[00:18:54 ERROR]: ------------------------------
[00:18:54 ERROR]: Server thread dump (Look for plugins here before reporting to Paper!):
[00:18:54 WARN]: Can't keep up! Is the server overloaded? Running 11260ms or 225 ticks behind
[00:18:54 WARN]: KakiboonExtra moved too quickly! 11.423821080426933,0.0,2.4985915496490128
[00:18:56 ERROR]: ------------------------------
[00:18:56 ERROR]: Current Thread: Server thread
[00:18:56 ERROR]:       PID: 26 | Suspended: false | Native: false | State: TIMED_WAITING
[00:18:56 ERROR]:       Stack:
[00:18:56 ERROR]:               java.base@11.0.9/jdk.internal.misc.Unsafe.park(Native Method)
[00:18:56 ERROR]:               java.base@11.0.9/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:234)
[00:18:56 ERROR]:               app//net.minecraft.server.v1_16_R3.IAsyncTaskHandler.bm(IAsyncTaskHandler.java:131)
[00:18:56 ERROR]:               app//net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:120)
[00:18:56 ERROR]:               app//net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1087)
[00:18:56 ERROR]:               app//net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1001)
[00:18:56 ERROR]:               app//net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:174)
[00:18:56 ERROR]:               app//net.minecraft.server.v1_16_R3.MinecraftServer$$Lambda$3152/0x000000080090ec40.run(Unknown Source)
[00:18:56 ERROR]:               java.base@11.0.9/java.lang.Thread.run(Thread.java:834)
[00:18:56 ERROR]: ------------------------------
[00:18:56 ERROR]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH ---

Happens every 30-45 Minutes: Settings on default except speed, which is at 0.266666666

ArVdC commented 3 years ago

Thanks for the feedback, maybe I can make some timers even lighter. I believe this error message can appear when the server computer is overloaded for some other reason, even though Paper is running without any plugins. Does the lag come only after trying to sleep ? I will do some tests later, I will keep you informed.

ArVdC commented 3 years ago

I made some changes to slow down the sleepForTIck request and few other timers. https://github.com/ArVdC/TimeManager/releases/download/v1.4.2/TimeManager-1.4.2.jar

Vadrome commented 3 years ago

I'll check it out on Sunday as we'll be playing then.

Vadrome commented 3 years ago

Looks good so far. I'll let you know if the lag occured again until sunday.

ArVdC commented 3 years ago

Can I close this, then ?

Vadrome commented 3 years ago

I haven't noticed any more lag. Feel free to close this.

Don't forget to change the version ;)

ArVdC commented 3 years ago

Ok, thank you.