Open novak-dev opened 1 year ago
Hi just a quick update - I don't believe it is actually a leak anymore since I logged the number of subscribes in the list and it was not going up.
It must be some kind of quirk with the GC since immutable list is used and its constantly copying the entire list every time a new entry is added. This is probably creating a lot of garbage. So I would suggest to use a regular list instead to avoid it.
To Reproduce
Expected behavior When clients disconnect the memory used by the ImmutableList mSubscribers should drop
.NET platform variant
Additional context See the attached file for info. The count only goes up in ImmutableList> and that memory never gets released, even when I force GC multiple times. Issue goes away when I disable meta api service or I do not perform any subscriptions.