Multiverse / Multiverse-Adventure

Provides Adventure-Support for Multiverse
18 stars 15 forks source link

Memory Leaks caused by the Bukkit api #8

Open snowleo opened 12 years ago

snowleo commented 12 years ago

Every time you reset the world and any other plugin holds a reference to that world, it is leaked.

I experienced this with dynmap first. I have to disable the adventure maps there.

Then I found another leak in Multiverse-Core, when you have an anchor in that world, the first loaded World is leaked too. Not as bad as the dynmap one, because it only happens on the first reset (or any reset after you create a new anchor).

But this issue is not only about those 2 plugins, every plugin that is storing a Location or World object for the reseted world can lead to a memory leak.

snowleo commented 12 years ago

https://bukkit.atlassian.net/browse/BUKKIT-483

main-- commented 12 years ago

I would suggest closing this issue because there's nothing we can do about it.

snowleo commented 12 years ago

Maybe write somewhere in your documentation, that you are not to blame for memory leaks. :D

The dynmap leak resulted in a memory loss of 25 to 55 MB for each reset.