Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 136
    • Issues 136
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1059

Closed
Open
Created Mar 11, 2023 by jahua50@jahua50

Memory leak when used with Mythicdungeons

Summary

Our server is a rpg server that uses the mm + md. We found that the server crashes more often when there are more dungeons are opened. We performed a small experiment (on a test server) that shows that mm potentially has some memory leak issue when new worlds are loaded.

Steps to reproduce

We are using paper 1.19.2 build 173 + mm 5.2.3 dev build + md 1.1.1 Our experiment process is as follows:

  1. Open md worlds and leave the md world, repeat the process until the server crashes due to outofmemory
  2. Remove our plugins one by one until finding the plugin that is causing the crash

Using the method above, we find that when mm is installed, we can only open around 5 md dungeons before crash. But when mm is not installed, the server wont crash and the memory is freed when the md worlds are unloaded.

Current behavior

MM seems to hold the memory even after the md world is unloaded.

Intended correct behavior

MM will free the memory when md worlds are closed or unloaded.

Server log file

https://pastebin.com/wVt2fLcJ

Debug log snippet

https://pastebin.com/0rjL5CXV

Proposed fixes

Describe what you think the issue or any potential fixes may be.

Edited Mar 11, 2023 by jahua50
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking