3 ms·
It seems highly unlikely you have a memory leak as it doesn’t sound like you are observing continually increasing memory usage. I’ve worked a lot in C# and Jav
by jonathanlydall 6y ago
It seems highly unlikely you have a memory leak as it doesn’t sound like you are observing continually increasing memory usage.
I’ve worked a lot in C# and JavaScript and I’ve only had to watch out for memory leaks with event aggregators for messaging between UI components.
So the UI has a button to start a use case. Each time the user goes into the use case a new object is created which on construction registers a callback against an event type with the event aggregator.
The memory leak occurs if this callback is never de-registered on completion of the use case, since the callback is holding onto a reference to the new object created at initiation of the use case.
If the use case is called repeatedly (think something like a check-in terminal), eventually the memory is exhausted.
On backends I’ve only ever worried about potential memory exhaustion from things like unbounded caches.