Serious lagging caused by EssentialsX
Subilan opened this issue ยท 2 comments
Information
Full output of /ess version
:
Server version: 1.15.2-R0.1-SNAPSHOT git-Tuinity-"ab11927" (MC: 1.15.2)
EssentialsX version: 2.17.2.54
PlaceholderAPI version: 2.10.6-DEV-87
Vault version: 1.7.2-b107
Citizens version: 2.0.26-SNAPSHOT (build 1865)
EssentialsXChat version: 2.17.2.54
EssentialsXSpawn version: 2.17.2.54
Server log: https://gist.github.com/Subilan/fe1b45ddf1e57b3d13045d5c26587ea9
EssentialsX config: https://gist.github.com/Subilan/ed135caaf2826256a985743f6e1f5639
Timings: https://timings.aikar.co/?id=37be253a9da94f5aa0e91efa6c68d544
Help request
Problem
The CPU of my server is i9-9900K and has 16GB of memory, but recently the server is stuck in a very serious lagging situation. According to some analysis, it was the problem of the plugins, so I checked them one by one. I removed all the plugins and put some of them back, then I started the server and keep watching on the TPS and other data. Unbelievably, I found that the plugin that caused the server to lag was actually a basic plugin, the EssentialsX.
The current situation is that, with EssentialsX installed, even if there is no player in the server, the TPS still cannot reach 20, which is difficult to understand.
So I want to ask what the problem actually is.
P.S. I have also checked other plugins and found four of them which caused the server to lag, EssentialsX is one of them.
I don't want to remove this at all, because the plugin provided very useful function which is very important to the server.
What I have tried
See above.
Screenshots
The horrible TPS.
The TPS data is from a plugin called NyaaUtils.
I've taken a careful look at your report and determined that there is no sign of any lag being caused by Essentials. Here are some things that I discovered:
- You did not remove all other plugins except for Essentials when testing to see if Essentials causes lag. That already immediately invalidates your findings, because other plugins can run tasks in the background.
- Essentials does not appear to cause lag by any metric (Lag/All/Plugins) in the timings report.
- Your TPS readings do indicate possible lag, but not that it is related to Essentials. Also, you should try using TPS readings from something like spark instead, which are more likely to be reliable. In addition, spark has a sampler command which lets you profile short intervals. Sampling would be a much better way to determine what is causing lag.
- You aren't using Aikar's flags, which can make the server run more efficiently.
- Similarly, you're running Windows server and you have a high timings cost. Why not Linux, which is free?
- Truinity isn't officially supported by Essentials, nor is it a magical solution that will entirely eliminate lag issues on your server.
Closing this issue now. If you still believe there is significant lag caused by Essentials, please feel free to open another issue with better evidence.