Investigation of memory usage - Retained size

Questions about YourKit .NET Profiler
Post Reply
valdis.iljuconoks
Posts: 1
Joined: Wed May 14, 2008 10:12 am

Investigation of memory usage - Retained size

Post by valdis.iljuconoks »

Hi all,

We are currently working on investigation of memory leak and can't really figure out why retained size is calculated like following:

Image

Which is 66%... of which memory?

Image
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

66% of 13950081 (live object size). Please take a look at the top of the view.

Best regards,
Vladimir Kondratyev
YourKit, LLC
http://www.yourkit.com
"Don't get lost in data, get information!"
Tobbe
Posts: 72
Joined: Thu Feb 21, 2008 11:08 am

Post by Tobbe »

I dont understand this either, havent given it much thought before using yourkit. If u sum up the the % or values you will get > 100% and > 13950081.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

If u sum up the the % or values you will get > 100% and > 13950081.
This is OK. Summing retained sizes you can easily get > 100%, because same objects can be retained by instances of different classes.

Please find detailed explanation of sizes here:
http://www.yourkit.com/docs/net30/help/ ... /sizes.jsp
Post Reply