Red Gate forums :: View topic - System.Object[] holding on to Custom Lists?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler 7
ANTS Memory Profiler 7 forum

System.Object[] holding on to Custom Lists?

Search in ANTS Memory Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
ngodugu



Joined: 31 Jan 2011
Posts: 6

PostPosted: Tue May 24, 2011 8:11 pm    Post subject: System.Object[] holding on to Custom Lists? Reply with quote

Hi All,

I have multiple Custom Collection objects that inherit from CollectionBase.

When I profile the app using memory leak profiler, it shows that arrays of these objects are still in memory. The retention graph for all these objects is the same.



It shows that a System.Object[] is holding on to CustomCollection

My custom collection object is called OrderBuyerSellerList.
Any ideas?

Thanks in advance.
Neelima
Back to top
View user's profile Send private message AIM Address
Brian Donahue



Joined: 23 Aug 2004
Posts: 6643

PostPosted: Thu May 26, 2011 3:43 pm    Post subject: Reply with quote

Hello,

From this part of the picture, you wouldn't be able to work out why some objects are still on the managed heap. You can use some of the filters to try to work out the reason, for instance if the object needs to be disposed or has a finalizer pending. I'd have a look at the filters and see if they point you in the right direction.
Back to top
View user's profile Send private message
ngodugu



Joined: 31 Jan 2011
Posts: 6

PostPosted: Thu May 26, 2011 3:46 pm    Post subject: System.Object[] Reply with quote

Brian,

Thanks for responding. Would it help if I send the profiler results?

Thanks
Neelima
Back to top
View user's profile Send private message AIM Address
ngodugu



Joined: 31 Jan 2011
Posts: 6

PostPosted: Thu May 26, 2011 3:58 pm    Post subject: Reply with quote

Is there a way to send you an attachment? Please let me know.
Back to top
View user's profile Send private message AIM Address
Brian Donahue



Joined: 23 Aug 2004
Posts: 6643

PostPosted: Thu May 26, 2011 4:33 pm    Post subject: Reply with quote

You can just send it to support@red-gate.com. We don't make any guarantees because we do not provide consultancy services, but it wouldn't hurt to have a 5-10 minute look at it.
Back to top
View user's profile Send private message
ngodugu



Joined: 31 Jan 2011
Posts: 6

PostPosted: Thu May 26, 2011 4:52 pm    Post subject: Reply with quote

The compressed version is about 63MB and it does not allow me to send the attachment that size. Not sure if there is another way to send the document.
Question
when I checked "object that are not disposed" filter.. the class list became empty. Does that mean that these lists are not potential memory leaks?

Thanks
Neelima
Back to top
View user's profile Send private message AIM Address
Brian Donahue



Joined: 23 Aug 2004
Posts: 6643

PostPosted: Fri May 27, 2011 1:03 pm    Post subject: Reply with quote

When I look at the resullts you sent I do see System.Object[645] attached to the GC Root in the Instance Retention Graph, but the live count of OrderBuyerSeller is only 1, using 32 bytes, so even if this is leaking it's not a very big one. I think the array size shown in the retention graph is the allocation size. The docs are not clear about where this information comes from though.

"Objects that are not disposed" is listing objects that implement IDisposable and haven't had their Dispose() method called as far as I can tell.

I don't see much of an indication of a memory leak at all as the performance counters between snapshot 2 and 3 hold pretty steady at 256MB.
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