`OnChunkLoad` memory leak or performance issue
TheTallestOfMidgets opened this issue ยท 12 comments
Hello to whoever,
So after installing the latest release (at the time 4.2.1) the tps of the server began to slowly decline.
The server is running on a linux mint 20.2 vm with 8gb of ram and all the cpu usage it could use.
The other installed plugins are bettersleeping 4.0.0 and ebackup 1.3.0, both of which (with my understanding) should not interfere with any game mechanics that ImageOnMap does.
But I digress the plugin only seems to lower tps after a map has been created and then loaded in,
I would imagine this to be a memory leak due to the slow decline in tps and "/reload" temporarily fixing the problem.
The console only output's "moved too quickly" warnings due to the low tps.
I could attach I video demonstrating the issue if requested, although I believe it wont show more than what is described here
I'm having the same issue with my server. I'm using the same about of ram and the problem only started once I installed the latest version.
I'm experiencing the same issue with ImageOnMap 4.2.1 on a CentOS machine using 12GB of RAM for the minecraft process.
Other plugins I used were WorldBorder and Dynmap.
restarting the server remedied the issue for a little bit. yet after a while the server kicks everyone off with a timeout.
I uninstalled all plugins one by one and the issue was fixed after uninstalling ImageOnMap.
I'd gladly be of service by posting logfiles if need be
@Vlammar I'm running spigot on Minecraft 1.18.1,
and in reference to spark: which what data are you looking for? (eg. Garbage collection, heap dump, memory usage, ect)
Hello,
are you using paper or spigot?
What is your actual minecraft version?
Can you provide me a log using spark ? https://www.spigotmc.org/resources/spark.57242/ (It will help in investigating the source of your lag)
@TheTallestOfMidgets memory usage and CPU usafe of each threads is a good indicator for us to find what is causing lag :)
I have several ideas of what can be caussing your issue but no way to investigate nor test it.
@Vlammar I have done what I believe are the proper tests:
profiler (Default): https://spark.lucko.me/4WXCV7gJx1
profiler (all threads): https://spark.lucko.me/5wVBfN3wKF
heap Summary: https://spark.lucko.me/rb9y9nxASo
latest.log
(my bad if any of this was done incorrectly, I'm not familiar with spark)
The map would not initially cause lag if it was loaded at server start up, after unloading however (by entering the nether) the server would consistently experience lag in both the overworld and nether. If need be I can upload the server files as well.
The culprite seems to be the event OnChunkLoad. They may have changed things, I will remove it if the player is in a version that is recent enough and see if that solve the issue (I won't be able to do it until the beginning of 2022).
Thanks for the help with the profiler+log :)
Hello @DeJayDev
My server is currently running the latest spigot build rather than paper
Hello!
May I please ask you to verify your servers are running a Paper version higher than version 239?
After some testing on the version 136 of paper I have no lag issue, I will try with the latest spigot version but the issue look to be caused by spigot/paper
Hiya, just to let you know:
I've seen you guys write in the reviews and forums that an update from spigot fixed the issue in question.
I have updated to the latest stable spigot release yesterday and gave this addon another spin.
Sadly, the issue still persists.
When I create a map, everything is fine and dandy. Stable TPS at 20.
As soon as I place the map and put some strain on the server (I leave spawn and have chunks load in) it's lagging like crazy again. Deleting the addon fixes that.
If I can assist in any way, just let me know!
Thanks for maintaining this awesome addon!