When starting the application, the application consumes slowly more and more memory. I am trying to figure out why this is happening and haven't been very successful yet.
Our WPF client gets the data pushed in from the server. The backend is in C++ and the data gets pushed into our C# model and wired down through the ViewModels up to the DataGrid.
After a while of inactivity though, I can see that the heap memory and the Large Heap Size keep increasing for no reason. Well the data is pushed in, so maybe this is the reason but after 2 hours and 15 min the unnecessarily increased memory is freed up again, just to go slowly up again.
On the right side of the graph (after over 24 hours), I have loaded even more tabs and more data, hence the massive increase but from then on there is no freeing up of memory anymore.
The Graph is showing that System.Windows.EffectiveValueEntry[]
is taking the most memory. From my understanding this class is related to the WPF dependency objects. But I have no idea what could be causing this. I am not expecting the memory to go down, as I am not closing anything. But why is it going up like this?
What could be the cause?
Many Thanks,