RonanPlugins / BetterRTP

Official wiki of the BetterRTP plugin!
https://www.spigotmc.org/resources/36081/
MIT License
111 stars 86 forks source link

Lag Spikes on v3.4.4 #109

Closed TKwSni closed 1 year ago

TKwSni commented 2 years ago

Plugin Version: 3.4.4

Describe The Bug: Lots of Lag Spikers with nobody on the server and more noticeable ingame

How To Reproduce:

Install v3.4.4 on 1.18.2

Expected Behavior: No lag lol

Screenshots/Error Log:

Spark profiler: https://spark.lucko.me/LcH3tvnjMv I think you can see betterrtp making the spikes here

Additional Context:

I was suffering for sudden lag spikes after I upgraded some plugins in my 1.18.2 server, cpu usage went from 15-20% to 50-250% or more very unstable and watched my ram monitor go crazy, tested every plugin and wasnt until I removed BetterRTP v3.4.4 that the problem was gone, went back to v 3.3.0 and problem solved.

SuperRonanCraft commented 1 year ago

If the Queue system is enabled there is expected lag for the first few minutes of a servers starting sequence. After maybe 5 minutes things should settle down

SuperRonanCraft commented 1 year ago

If ya still experience this on the latest 3.6.0 patch, please let me know, else this ticket will be closed soon :)

TKwSni commented 1 year ago

Sorry, I tested this recently using version 3.6.1 and it happened, I left the server running nobody logged and after a while it started lagging, and not just for the first minutes, it lagged for hours until I removed the plugin and the problem didnt show up again.

[08:17:57] [Watchdog Thread/ERROR]: --- DO NOT REPORT THIS TO PURPUR - THIS IS NOT A BUG OR A CRASH  - git-Purpur-1907 (MC: 1.19.3) ---
[08:17:57] [Watchdog Thread/ERROR]: The server has not responded for 10 seconds! Creating thread dump
[08:17:57] [Watchdog Thread/ERROR]: ------------------------------
[08:17:57] [Watchdog Thread/ERROR]: Server thread dump (Look for plugins here before reporting to Purpur!):
[08:17:57] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 8502ms or 170 ticks behind
[08:17:58] [Watchdog Thread/ERROR]: ------------------------------
[08:17:58] [Watchdog Thread/ERROR]: Current Thread: Server thread
[08:17:58] [Watchdog Thread/ERROR]:     PID: 24 | Suspended: false | Native: false | State: TIMED_WAITING
[08:17:58] [Watchdog Thread/ERROR]:     Stack:
[08:17:58] [Watchdog Thread/ERROR]:         java.base@17.0.6/jdk.internal.misc.Unsafe.park(Native Method)
[08:17:58] [Watchdog Thread/ERROR]:         java.base@17.0.6/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:252)
[08:17:58] [Watchdog Thread/ERROR]:         net.minecraft.util.thread.BlockableEventLoop.waitForTasks(BlockableEventLoop.java:148)
[08:17:58] [Watchdog Thread/ERROR]:         net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:137)
[08:17:58] [Watchdog Thread/ERROR]:         net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1316)
[08:17:58] [Watchdog Thread/ERROR]:         net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1204)
[08:17:58] [Watchdog Thread/ERROR]:         net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321)
[08:17:58] [Watchdog Thread/ERROR]:         net.minecraft.server.MinecraftServer$$Lambda$4416/0x0000000801543078.run(Unknown Source)
[08:17:58] [Watchdog Thread/ERROR]:         java.base@17.0.6/java.lang.Thread.run(Thread.java:833)
[08:17:58] [Watchdog Thread/ERROR]: ------------------------------
[08:17:58] [Watchdog Thread/ERROR]: --- DO NOT REPORT THIS TO PURPUR - THIS IS NOT A BUG OR A CRASH ---
[08:17:58] [Watchdog Thread/ERROR]: ------------------------------
[08:27:52] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 5482ms or 109 ticks behind
[08:29:55] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 6383ms or 127 ticks behind
[08:33:44] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 5414ms or 108 ticks behind
[08:35:20] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 6571ms or 131 ticks behind
[08:39:34] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 5570ms or 111 ticks behind
[08:41:27] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 35811ms or 716 ticks behind