5 Replies
I have "tree-like" dictionary. The problem is following: the memory is quickly consumed and not cleared (from 100mb at start to 3gb) And the main problem in this tree is history of each node.
If I remove all code inside this block: if(level >= topic.Length) (before return false;) everything will be okey and memory will clear
How can I store history of each node in memory without any leaks?
this in TreeNode
Are you sure the issue isn't with
ToJsonString
?hm, no
I can remove UiFormattedMessage and memory will leak anyway
i meant these
Header = delivery.Header?.ToJsonString(true);
, Payload = delivery.Payload?.ToJsonString(true);
you'll have to narrow it down even more
literally remove everything until the issue goes away
then you have the minimum required to reproduce the problemLooks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.