Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leaking in unload world #193

Open
fixca opened this issue Feb 27, 2022 · 2 comments
Open

Memory leaking in unload world #193

fixca opened this issue Feb 27, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@fixca
Copy link

fixca commented Feb 27, 2022

Describe the issue
I copied my world with clone() method.
And I did

Bukkit.unloadWorld(world, false);
Bukkit.getWorlds().remove(world);

But seems world isnt unload correctly...
This is my heap dump. Hope It will be helpful.

https://drive.google.com/file/d/1PPdzB6yGmW3pZ1ra-pGYx8ly0YvzMKtG/view?usp=sharing

Spigot version
1.8.8

Plugin version
latest

@fixca fixca added the bug Something isn't working label Feb 27, 2022
@t3rry327
Copy link

t3rry327 commented Apr 6, 2022

world = null after that 2 lines should free the memory. (gc will handle it auto, but if u want to do it manually, just call System.gc() from the main thread)

@felipepasc
Copy link

I'm having the same problem, and I detected that worldedit was keeping the maps in RAM, preventing Java's gc from cleaning it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants