Bug Closed · Resolved

World unload memory leak

#4079 opened by Unknown 3 years ago

Unknownreported this bug

MythicMobs doesnt remove World from RandomSpawningManager generatedSpawnPoints HashMam on world unload. This leads to memory leaks.

Its potentially related to https://git.lumine.io/mythiccraft/MythicMobs/-/issues/1059

In my case of third party plugin only using MythicMobs API MythicBukkit.inst().getRandomSpawningManager().generatedSpawnPoints.clear(); is doing its job, but I dont think everybody would want that.

Unknowncommented

I totally get the memory leak concern. Reminds me of when I was taking a break from debugging and playing Car Parking Multiplayer—it’s a simulation game where you can create unforgettable moments of happiness with your friends and family by playing together. I realized that just like in the game, where some features like police mode or special skins aren’t available without a purchase, in plugins sometimes certain cleanup routines aren’t automatic. Clearing generatedSpawnPoints manually worked for me, but I agree not everyone would want that behavior forced.

Sign in to join the discussion.