Skip to content

OnChunkLoad memory leak or performance issue #237

Open

Description

@BlakeBenfield

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

Activity

  1. FunOnABun72 commented on Dec 21, 2021

    @FunOnABun72

    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.

  2. Kyrillian commented on Dec 24, 2021

    @Kyrillian

    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

  3. Vlammar commented on Dec 25, 2021

    @Vlammar
    Member

    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)

  4. BlakeBenfield commented on Dec 26, 2021

    @BlakeBenfield
    Author

    @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)

  5. Vlammar commented on Dec 26, 2021

    @Vlammar
    Member

    @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.

  6. BlakeBenfield commented on Dec 27, 2021

    @BlakeBenfield
    Author

    @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.

  7. added
    BugOno, a bug!
    and removed
    Need infoMore info are needed
    on Dec 27, 2021
  8. Vlammar commented on Dec 27, 2021

    @Vlammar
    Member

    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 :)

  9. BlakeBenfield commented on Dec 27, 2021

    @BlakeBenfield
    Author

    Of course, thanks for being decently responsive

  10. changed the title [-]Major TPS Issue[/-] [+]`OnChunkLoad` memory leak or performance issue[/+] on Jan 6, 2022
  11. DeJayDev commented on Jan 7, 2022

    @DeJayDev

    Hello!

    May I please ask you to verify your servers are running a Paper version higher than version 239?

  12. BlakeBenfield commented on Jan 7, 2022

    @BlakeBenfield
    Author

    Hello @DeJayDev
    My server is currently running the latest spigot build rather than paper

  13. Vlammar commented on Jan 7, 2022

    @Vlammar
    Member

    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

  14. Kyrillian commented on Jan 17, 2022

    @Kyrillian

    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!

  15. pinned this issue on Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugOno, a bug!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions