Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Memory Leak #15

Open
goweiwen opened this issue May 24, 2020 · 0 comments
Open

Memory Leak #15

goweiwen opened this issue May 24, 2020 · 0 comments

Comments

@goweiwen
Copy link

There seems to be a memory leak in a hashmap in ProfilerStatsMonitor. After an uptime of ~12 hours and ~10 active players, a hashmap in the class takes up a whooping 500MB of memory.

Skimming the code, it looks like we're populating a hashmap inside the stats attribute for each loaded chunk without clearing the hashmap. One way to fix this would be to listen on ChunkUnloadEvent and remove stale entries.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant