In the online docs.
(
http://labs.jboss.com/portal/jbossprofiler/doc/webinterface.html#webinter...)
there is a Figure 4.10 that shows the details of a GC. There are three links on each line
of the table: Leaks, Creations, and Threads. I have a few questions:
1. If I click on Leaks I see a subset of the information presented when I click on
Creations, is that correct? In other words, the Creations display shows the total number
of instances created (by method) and the total number still alive on the heap. The Leaks
display just shows the total number (by method) that are still alive on the heap.
2. The Bytes column just shows the size of the objects, not total retained size, correct?
In other words, if I have 10 instances of class A on the heap and each class A is 100
bytes then the Bytes value would be 1000 even if each instance of class A had a live
reference to a unique class B instance that is 100000 bytes.
3. Assuming the answer to #2 is that the retained size is not shown, then are there plans
to add more display and sort options? I ask because I don't immediately see how to
use this display to track down some types of memory leaks. I can calculate a delta in my
head between Quantity and Release Quantity, but it would be nice if there were an
additional column for it. More importantly, though, the objects on the heap taking up the
most space are not always the real source of a memory leak problem - a slow leak over time
of small objects can cause just as much trouble. But those slow leaks take longer to eat
up enough heap space to cause an OutOfMemoryError, so it would be nice to be able to sort
by the delta between Quantity and Release Quantity (so that I don't have to run the
application until the error occurs). Is there any further documentation that provides a
tutorial showing how best to use this display?
Thanks,
Gregg
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959366#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...