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 145
    • Issues 145
    • 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
  • #1583

Closed
Open
Created May 08, 2024 by Blu@einfachBlu

Memory Leak when using MythicMobs and ModelEngine with multiple worlds

Summary

I am creating multiple worlds, spawning mythic mobs there and unloading the world there. After around 2h, my 8gb server is running out of memory. I am creating around 1 map every 5-10 seconds.

Steps to reproduce

Create new empty world, paste schematic there, spawn mobs (around 100-200), delete all entities there with entity.remove() and then unload the world. Some mobs keep getting in the memory as in the screenshot and keep the world in the memory causing the memory leak

Current behavior

thats what i wrote in reproduce steps

Intended correct behavior

mobs should be removed from the list when the world is unloaded or perform a check every minute or so to remove them if the world was deleted

Server log file

nothing interesting there, just a normal out of memory exception but I appended heap dump screenshots here

Debug log snippet

same as server log file

Proposed fixes

either they are sometimes not removed when the world is unloaded/deleted -> fix there or perform a check every 10-20 seconds to remove activemobs that are in a deleted or unloaded world. the entity of the activemob is probably already removed so that might also work to check

image image image image

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking