Re: Memory Profiler for Heap Analysis
On 13.06.2007 11:51, Moritz Wissenbach wrote:
I have an application (xml-editor) that uses up an unreasonable amount
of java heap space.
I have tried profiling with tptp (eclipse) and jmap/jhat, and they do
give me memory histograms and instance counts, but what I REALLY want is
to see the total size of a classes instances INCLUDING the referenced
objects.
Is there a profiler that will traverse the heap and find the "recursive"
size of objects?
Because knowing that char-Arrays use up most memory is not exactly helpful.
Plese help, I've searched the web and found nothing; but have been
assured that something like this exists.
I don't think something like that exists. Assuming something like this
exists, how does it properly calculate sizes? How many levels does it
follow when counting? How do you count objects that are referenced by
multiple other instances etc.
Having said that I was pretty satisfied with OptimizeIT which also does
not do recursive analysis but lets you easily find places in code where
all those objects were allocated and you could walk the object graph. I
haven't used it in a while so maybe today there are other (free?) tools
around that server similar purposes.
Kind regards
robert