Possible memory leak issue + encountered queue issue
Hi MD developers, I have been encountering some possible memory leak issues. I used a test server to test it. When I open and close dungeon over a specific times, the server will crash due to outofmemory error. The only plugins I installed are md and protocollib. I used paper 1.19.2 build 173 and 1.19.3 build 448 and md build 135 for testing. The logs are here: https://pastebin.com/pauDgDjp
For the queue issue, our players reported that sometimes the queue system would stuck, and no one can enter the dungeons or leave the queue. Our server limited 6 instances max. The normal queue situation is: player gets in queue -> player notified that theres a instance limit -> the ready info jumps out(when a instance is freed) -> get in the dungeon normally When a stuck happens: player gets in queue -> player notified that theres a instance limit -> stays in the queue even someone has finished a dungeon.