Memory Leak #1

Open
opened 2023-03-18 16:25:57 +01:00 by EpicKnarvik97 · 0 comments

A memory leak has been detected related to the storage of signs. For some unknown reason, the ConfigManager used to store sign ends up with a YamlConfiguration which constructs millions of objects. This might be related to the fact that signs are loaded from file once every second.

In addition to fixing the leak if an obvious problematic line is found, changes must be made to only save and load files when necessary to reduce overhead.

While the problem is definitely in fileC's YamlConfiguration's YamlConstructor's constructed objects, I'm not entirely sure why that ends up with over 8000000 objects after 24 hours.

A memory leak has been detected related to the storage of signs. For some unknown reason, the ConfigManager used to store sign ends up with a YamlConfiguration which constructs millions of objects. This might be related to the fact that signs are loaded from file once every second. In addition to fixing the leak if an obvious problematic line is found, changes must be made to only save and load files when necessary to reduce overhead. While the problem is definitely in fileC's YamlConfiguration's YamlConstructor's constructed objects, I'm not entirely sure why that ends up with over 8000000 objects after 24 hours.
EpicKnarvik97 added the
bug
label 2023-03-18 16:25:57 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: EpicKnarvik97/BlockHunt#1
No description provided.