Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

What does "calculate exact retained sizes" do

Moderators: Vladimir Kondratyev, Anton Katilin

What does "calculate exact retained sizes" do

Postby jfding » Fri Sep 18, 2015 1:14 am

Right after load memory dump hprof file, it shows the "Retained size" is 230M bytes.
After I click "calculate exact retained size", the number drop to 14M bytes.
I wondering why?
and What does "calculate exact retained sizes" do
jfding
 
Posts: 1
Joined: Thu Sep 17, 2015 8:36 am

Re: What does "calculate exact retained sizes" do

Postby Anton Katilin » Mon Sep 21, 2015 7:00 am

Immediately shown retained sizes are quick estimations. They are close to the real value in most cases and thus help to immediately identify problematic classes. Calculation of exact retained size takes time, users should run it explicitly on demand, e.g. if the estimated values do not give a clue.

See also: shallow and retained size explanation:
https://www.yourkit.com/docs/java/help/sizes.jsp
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am

Re: What does "calculate exact retained sizes" do

Postby Anton Katilin » Mon Sep 21, 2015 7:01 am

P.S. See also the explanation here: https://www.yourkit.com/docs/java/help/class_list.jsp
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot] and 7 guests

cron