Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Memory Profiling : Object exclusive Deep size
Memory Profiling : Object exclusive Deep size [message #40202] Mon, 14 November 2005 07:54 Go to next message
Nirav Thaker is currently offline Nirav ThakerFriend
Messages: 4
Registered: July 2009
Junior Member
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
Re: Memory Profiling : Object exclusive Deep size [message #40495 is a reply to message #40202] Tue, 15 November 2005 02:12 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
We currently don't report the deep size of an object. Feel free to open a
feature about this. I don't know if this is possible with JVMPI but it
should certainly be possible with JVMTI (planned for 4.2).


"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
>
>
Re: Memory Profiling : Object exclusive Deep size [message #40678 is a reply to message #40202] Tue, 15 November 2005 19:13 Go to previous messageGo to next message
Marius Slavescu is currently offline Marius SlavescuFriend
Messages: 67
Registered: July 2009
Member
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
>
>
Re: Memory Profiling : Object exclusive Deep size [message #40769 is a reply to message #40678] Wed, 16 November 2005 09:32 Go to previous message
Nirav Thaker is currently offline Nirav ThakerFriend
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
> >
> >
>
>
Previous Topic:General Questions about AgentController
Next Topic:Hashtable$Entry is referenced by ?
Goto Forum:
  


Current Time: Fri Apr 19 04:46:01 GMT 2024

Powered by FUDForum. Page generated in 0.02613 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top