CPU usage stuck at over 100% because of PlotSquared
Server Implementation
Tuinity
Server Version
1.17.1
Describe the bug
After leaving my server online for a couple of hours I noticed that my CPU usage was stuck at over 100% so I used VisualVM to see what was going on and this seems to be the problem:

"Craft Scheduler Thread - 5 - PlotSquared" - Thread t@115
java.lang.Thread.State: RUNNABLE
at app//org.sqlite.core.NativeDB.step(Native Method)
- locked <505b55ae> (a org.sqlite.core.NativeDB)
at app//org.sqlite.core.DB.execute(DB.java:851)
at app//org.sqlite.core.DB.executeUpdate(DB.java:904)
- locked <505b55ae> (a org.sqlite.core.NativeDB)
at app//org.sqlite.jdbc3.JDBC3PreparedStatement.executeUpdate(JDBC3PreparedStatement.java:98)
at PlotSquared-Bukkit-6.0.9-Premium.jar//com.plotsquared.core.database.SQLManager$8.addBatch(SQLManager.java:1082)
at PlotSquared-Bukkit-6.0.9-Premium.jar//com.plotsquared.core.database.SQLManager.sendBatch(SQLManager.java:430)
at PlotSquared-Bukkit-6.0.9-Premium.jar//com.plotsquared.core.database.SQLManager.lambda$new$0(SQLManager.java:210)
at PlotSquared-Bukkit-6.0.9-Premium.jar//com.plotsquared.core.database.SQLManager$$Lambda$5760/0x0000000801d6e380.run(Unknown Source)
at PlotSquared-Bukkit-6.0.9-Premium.jar//com.plotsquared.bukkit.util.task.BukkitPlotSquaredTask.runTask(BukkitPlotSquaredTask.java:46)
at PlotSquared-Bukkit-6.0.9-Premium.jar//com.plotsquared.core.util.task.PlotSquaredTask.run(PlotSquaredTask.java:51)
at app//org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101)
at app//org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
at app//com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
at [email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at [email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at [email protected]/java.lang.Thread.run(Thread.java:831)

Here is the entire thread dump if it helps: https://pastebin.com/DDHetRPT
When shutting down the server I received this error: https://pastebin.com/DJzr7L2z
To Reproduce
I'm not sure how to reproduce this
Expected behaviour
CPU usage should not get stuck at a high percentage
Screenshots / Videos
No response
Error log (if applicable)
No response
Plot Debugpaste
I had to restart my server because of the CPU usage being very high: https://athion.net/ISPaster/paste/view/48550f965c68413a8ff4ee6bed05aa6c
PlotSquared Version
PlotSquared-Bukkit-6.0.9-Premium
Checklist
- [X] I have included a Plot debugpaste.
- [X] I am using the newest build from https://www.spigotmc.org/resources/77506/ and the issue still persists.
Anything else?
No response
Could you share your log from before the restart?
Could you share your log from before the restart?
Sure, here's the log: https://pastebin.com/iLSpyf3y
PastebinPastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If the issue is still present and can be reproduced, please let the team know. Thank you for your contributions.
Can't be replicated and the logs are empty as well