|
|
|
Re: Memory Profiling : Object exclusive Deep size [message #40769 is a reply to message #40678] |
Wed, 16 November 2005 09:32 |
Nirav Thaker Messages: 4 Registered: July 2009 |
Junior Member |
|
|
Hi Marius & Ali,
Thank you,
I'm profiling an application server with lot of frameworks and libraries
with nearly 12k+ classes loaded
and generated on the fly, the fact that i've to run profiling with no-filter
seems prohibitive, not only
it will generate lot of unnecessary data it will be difficult to extract the
information, is there any programming
solution I can jump in, I'm relatively new to TPTP.
I've opened this feature in bugzilla.
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=116393)
Nirav Thaker
"Marius Slavescu" <slavescu@ca.ibm.com> wrote in message
news:dldc0c$650$1@news.eclipse.org...
> Hi Nirav,
>
> With the information that you can currently get in the TPTP trace model in
> order to get the deep (cumulative) size for an object I see two methods
that
> you could use (currently TPTP doesn't compute/provide the deep size) on
the
> client side (you may also look into the JVMPI agent and do the
computations
> there):
>
> - track all method invocations then look at the call chain to see
which
> constructors where called from all method invocations (defined in a class)
> against a specific object (which is an instance of the previously
mentioned
> class), then you need to cumulate the object's size allocated by those
> constructors.
>
> - collect a heap dump and then try to figure out (avoiding cycles
might
> be tricky) from the resulting object reference graph which are all the
> objects that hangs under a specific object and cumulate their size.
>
> Both methods will required to run with no filters if you want to get
> accurate results, so you should expect a lot of profiling data being
> generated and processed (you should also give a lot of Java heap space to
> TPTP in that case).
>
> As Ali suggested please open a feature in Bugzilla.
>
> Regards,
> Marius
>
> "Nirav Thaker" <nirav.thaker@c-sam.co.in> wrote in message
> news:dl9ftd$9nn$1@news.eclipse.org...
> > Hi,
> > Is there any way i can determine deep size of an object with TPTP, what
> TPTP
> > gives is the size which will be freed upon GC. Is there any easier way
of
> > getting deep size?
> >
> > thanks,
> >
> > Nirav Thaker
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04425 seconds