Red Gate forums :: View topic - Live objects doesn't signify memory leak
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Profiler Previous Versions
ANTS Profiler Previous Versions forum

Live objects doesn't signify memory leak

Search in ANTS Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
shannonma



Joined: 07 Jan 2009
Posts: 1

PostPosted: Wed Jan 07, 2009 1:51 pm    Post subject: Live objects doesn't signify memory leak Reply with quote

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?
Back to top
View user's profile Send private message
Bart Read



Joined: 31 Mar 2005
Posts: 978
Location: Cambridge, UK

PostPosted: Wed Jan 07, 2009 2:22 pm    Post subject: Reply with quote

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.


Thanks,


Bart
_________________
Bart Read
Principal Consultant
bartread.com Ltd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group