I have a simple C# service in .net 8.0.
It does some data things (e.g. getting data from a rabbit MQ event handler and saving it into a postgresDb).
My memory behaviour is very curios:
In that you can see e.g. 5K events comming in and causing data to be saved.
(See minute 1 to 3, ramping up).
After 3 minutes the service just idle until I hit “GC.Collect()” in code or “force GC” in DotMemory.
Then everything is cleared.
At the moment, if we run this in production, it will crash the service because then at around 2 Gig Memory it will run out of the memory in the run docker container (but it is not only a docker problem, same occures on local env without docker).