Hi !
Yet another question about something I quite don't understand : in the Generations view, as shown in http://www.yourkit.com/docs/yjp2014/hel ... ations.jsp, why don't the "retained size" values add up so that they match the total retained size ?
Best regards,
Yannis
Why per generation retained size don't add up ?
-
- Posts: 20
- Joined: Wed Oct 02, 2013 10:07 am
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Why per generation retained size don't add up ?
Hi Yannis
Retained sizes do not sum up by their nature:
http://www.yourkit.com/docs/java/help/sizes.jsp
In this particular case, retained sets of different generations can intersect.
For example, assume 3 objects: A from generation 1, B from 2 and C from 3.
Let A retain B, B retain C.
Generation 1 retained set will include A,B,C.
Generation 2 retained set will include B,C.
Generation 3 retained set will include C.
Note that size of B and C is counted in multiple generations.
Best regards,
Anton
Retained sizes do not sum up by their nature:
http://www.yourkit.com/docs/java/help/sizes.jsp
In this particular case, retained sets of different generations can intersect.
For example, assume 3 objects: A from generation 1, B from 2 and C from 3.
Let A retain B, B retain C.
Generation 1 retained set will include A,B,C.
Generation 2 retained set will include B,C.
Generation 3 retained set will include C.
Note that size of B and C is counted in multiple generations.
Best regards,
Anton
-
- Posts: 20
- Joined: Wed Oct 02, 2013 10:07 am
Re: Why per generation retained size don't add up ?
Yeah, I saw the light later on after posting my question, which was obviously stupid...
Sorry for that and thanks for your answer !
Best regards,
Yannis
Sorry for that and thanks for your answer !
Best regards,
Yannis