Live objects doesn't signify memory leak

Code and memory profiling for .NET developers.

Live objects doesn't signify memory leak

Postby shannonma » Wed Jan 07, 2009 12:51 pm

My Windows service is leaking memory. It runs for 30 minutes and grows to ~800 MB of memory. A snapshot is taken, however the snapshot only shows 17 MB worth of live objects. After the snapshot is taken, the service goes down to 288 MB, however the VM size of the process appears to be at 1.4 GB.

I'm having problems debugging this issue, as it looks fine in ANTS. Has anyone experienced this before?
Posts: 1
Joined: Wed Jan 07, 2009 12:31 pm

Postby Bart Read » Wed Jan 07, 2009 1:22 pm

Hi there,

Are you using COM interop at all? Note that ANTS Profiler can only tell you about managed memory usage, and not unmanaged, so if you are using interop, even if indirectly, and resources aren't being freed properly (e.g. by calling Dispose()). At the moment this is quite tricky to do, however our new version of the memory profiler will support tracking of objects that implement IDisposable.

Sorry I can't be more help at the moment.


Bart Read
Principal Consultant Ltd
Bart Read
Posts: 996
Joined: Thu Mar 31, 2005 10:17 am
Location: Cambridge, UK

Return to ANTS Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests