PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
9.39k stars 2.2k forks source link

Memory Leaks paper1.20.4 #10820

Closed 1470429149 closed 1 month ago

1470429149 commented 1 month ago

Expected behavior

When I use the dungeon plugin to repeatedly unload and add worlds, the memory just always grows, which is very strange, when I use java heap dump I found that the unloaded worlds have loaded chunks image image image image image

image

Observed/Actual behavior

The world should not remain in memory after unloading

Steps/models to reproduce

repeatedly unload and add worlds

Plugin and Datapack List

image

Paper version

image

Other

No response

lynxplay commented 1 month ago

Presumably a duplicate of https://github.com/PaperMC/Paper/issues/9199? (followed up in https://github.com/IntellectualSites/FastAsyncWorldEdit/issues/2278#issuecomment-1583679524)

Can you attempt this without mythic mobs?

1470429149 commented 1 month ago

Thanks a lot, I will retest as you suggested and if it persists I will open the issue again

lynxplay commented 1 month ago

After a bit more investigation, there is something on our end that might be causing this 👍

electronicboy commented 1 month ago

Okay, I brain farted, further looking this doesn't seem to be us, as the map storing that is actually a weak map. if this reoccurs, we'd need a minimal reproduction, otherwise you'd need to look into what the retainers are