I have a service application that is continuously running as a sync service between our Atlas instance and our data center. It is a .NET Core app using the Realm.NET library.
It starts out with fairly low memory usage and then climbs up until it hits a steady-state of around 25GB of RAM on a machine w/ 32GB of RAM.
I’m about to start diving in to see if I can reduce the memory footprint. As part of my prep work for that I’m researching what my expectations should be. To that end…
Q - Is there anything that is intentionally kept in memory by the .NET library? If so, what is it? Can I safely dispose of it in some way?
Q - Do I need to wrap my realm instance retrieval in a using statement to insure proper disposal?
Q - Are there any best practice documents for managing memory in Realm.Net apps someone can point me to?
Many thanks!