Closed dktapps closed 8 years ago
Just to make sure that this works, any proof that this fixes the memory leak problem, please? I mean, for example, is this the only source of memory leak?
@SOF3 no. This isn't the only leak. However, it was the main one, at least in Genisys.
PM may not suffer as badly as Genisys did as far as I can tell PM mobs don't drop items or exp. But this did have drastic effects. Most Genisys users enjoyed an increase in server uptime from hours to weeks.
We've only discovered since this was fixed that there are other leaks. It's like peeling an onion.
I've reworded the commit and updated the title since THE leak is not accurate as stated above.
Even a way better explaination than on the forks before, nice!
?
@robske110 I was told I was wasting my time. Check Telegram
This commit, simple though it looks, fixes
thea horrible memory leak that PocketMine and all its forks of have been suffering from since forever.EDIT: Further explanation is probably warranted.
The problem here, as briefly as I can summarize it, is that entities are leaked on chunk unload.
Before patch:
After patch: