We have a .net c# service that when tured on is chewing up more and more memory. It has one ‘Service’ derived class that basically creates other objects that encapsulate individual functionality that the service is meant to support. Im thinking that maybe I am creating an object and its not getting garbage collected due to a programming error.
Anyone know the best way to find out what is going on without setting break points?
You can use memory profilers like memprofiler, ants profiler, and this question can also help What Are Some Good .NET Profilers?
They give you a good look at the objects being created, generation they are in, memory they are using etc. You can, most of the times, narrow down the problem using profilers.