newbie question: how to obtain total object memory

hi,

i need to watch total memory occupied by objects in my application (all objects of given class, or - it would be great - also all memory occupied by objects of given class and classes inherited from that class), total memory means that it is memory which will be relased by gc on that object (objects). e.g when i have class which contains, let's say, 100 Strings fields, i need sum of size of that class and sizes of that Strings.

is it possible obtain that information using JDB ?

Or, is there an other tool with that feature ?

i've tried JProbe and Borland OptimizeSuite, but i didn't found that funcjonality,

thx for any help,

Piotr Kopyt

[693 byte] By [Piotrunioa] at [2007-9-29 14:20:49]
# 1
Try this link http://java.sun.com/developer/technicalArticles/Programming/perfanal/
killroyboya at 2007-7-15 5:01:32 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 2
Actually Sorry.that doesn't really answer the question does it?Never mind....
killroyboya at 2007-7-15 5:01:32 > top of Java-index,Archived Forums,Debugging Tools and Techniques...