EverNifeCore icon indicating copy to clipboard operation
EverNifeCore copied to clipboard

Hello i think im having some issues with this plugin

Open Paradis4432 opened this issue 3 years ago • 4 comments

i have been noticing some memory leaks, after making some tests and heap summary i found this Screenshot_98 image

running arclight 1.16.5 forge pixelmon with 90 players online

Paradis4432 avatar Jul 11 '23 15:07 Paradis4432

if you want to talk privately you can contact me directly to my discord. Paradis#4432

Paradis4432 avatar Jul 11 '23 15:07 Paradis4432

Sure, i will talk with you on discord!

I will update this issue with our conclusions later.

EverNife avatar Jul 11 '23 16:07 EverNife

Sumarry for now:

The "memory leak" is created "by design". This plugin prioritizes CPU over MEMORY.

The current server has 17.000 Unique Players. That is lot. With all those 17k Unique players my plugin is using +- 500mb of memory.

I will try to create some possible solutions for servers like this.

[1] Forget about CPU over Memory, and remove the CACHE of config files completly.

[2] Finish the DormantSystem, where only PlayerData that joined in the last X days will be loaded on memory.

[3] A third option is to cache the config file only after it was used, so, rather than cache it on server load, it will cache by demand of usage.

I will probably make a mix of 2 and 3.

EverNife avatar Jul 11 '23 17:07 EverNife

After some talk with the SimpleYaml's dev here https://github.com/Carleslc/Simple-YAML/issues/80, the problem was not on Simple-YAML but it was a natural overhead of snakeyaml itself.

So, there was no way to keep things on the same way without this overhead.

With that in mind i opted for a InMemory String cache after some time of no use. The result was the bellow.

image

This update will be present on the next release soon.

EverNife avatar Jul 15 '24 21:07 EverNife