Actions to significantly reduce heap usage #774
Labels
Help wanted
ideas, code or feeedback is requested from other contributors
Improvement
Presumably positive changes to existing functionality
General Problem
High heap usage seems to have a huge adverse effect on our CPU usage.
Solutions
Suspected heap leakage
data, such as cost matrixes and other properties of RoomManager and CommuneManager are likely being assigned when there is vision and then not deleted as intended next tick or some ticks thereafter. Therefore, data likely sits in those managers until the room is seen again and some of it is cleaned up (and more added, perhaps) or alternatively, heap resets.
This probably does an effective job of explaining the incremental increase in heap over an extended period until it is maxed out
The text was updated successfully, but these errors were encountered: