Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Profiling RCP applications - Heap Analysis
Profiling RCP applications - Heap Analysis [message #95105] Mon, 09 April 2007 08:17 Go to next message
Eclipse UserFriend
Originally posted by: james.ja.mweb.co.za

Hi All,
I would like to use TPTP to do heap analysis on an RCP application. I am
quite confident that my installation is according to instructions, because
there are a lot of good posts that have dealt with some of the pitfalls (if
I do "Test Availability" from the monitor tab, I get success).

I am using release versions of Eclipse 3.2, TPTP 4.3.1, JDK 1.5.0_11

What I observe:
1. Normal (non-RCP) Java apps run fine in the old and new technology
profilers.
2. When I try to launch a JVMTI profile of an RCP, the launch waits a long
time at "Launching (78%)" and then ends with no error (turning on logging in
the AC Java Profiling plugin, generates no log entries, so it doesn't even
seem to get this far). Is this the "known timeout issue" I have seen
reference to? This result occurs consistently and I reproduce it using the
HelloWorld sample RCP app. An error that I get intermittently during this
process is "NLS unused message: ERROR_TI_MODEL_CREATION in:
org.eclipse.tptp.platform.jvmti.client.internal.messages".
3. If I create an RCP "product" from my app, then I can profile it
successfully using JVMTI from standalone (HeapProf) and from the workbench
(by referencing the launcher for the product and not the launcher for the
project).
4. When I use JVMTI, though, there is no menu that I can see to to do a
"Collect Object References" (my real objective). An alternative would be to
get a way to run "Collect Object References" while running in standalone
mode.
5. If I use IAC, and do a "Collect Object References", I get only entries
for some of the classes in my main application plugin (my business logic is
in separate plugins, and no classes from these are included - my filtering
is on the default and my classes are in packages com.domain.* ).

I have searched for any references to this, and was not successful, but I am
hoping that someone has got this to work. I am happy to get any Object
Reference analysis, whether it is using the IAC or JVMTI based profilers.

Many thanks for any help.

James
Re: Profiling RCP applications - Heap Analysis [message #95168 is a reply to message #95105] Tue, 10 April 2007 06:02 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
James,

> Hi All,
> I would like to use TPTP to do heap analysis on an RCP application. I am
> quite confident that my installation is according to instructions, because
> there are a lot of good posts that have dealt with some of the pitfalls (if
> I do "Test Availability" from the monitor tab, I get success).
>
> I am using release versions of Eclipse 3.2, TPTP 4.3.1, JDK 1.5.0_11

With the version you're using, I recommend using the "old" (JVMPI) Heap
Profiler and not the new one. In TPTP 4.3.x, the JVMTI Heap Analysis
feature does not provide any additional benefits. If you want to use the
new profiler, please switch to Eclipse 3.3 and TPTP 4.4 (latest stable
or dev build).

>
> What I observe:
> 1. Normal (non-RCP) Java apps run fine in the old and new technology
> profilers.
> 2. When I try to launch a JVMTI profile of an RCP, the launch waits a long
> time at "Launching (78%)" and then ends with no error (turning on logging in
> the AC Java Profiling plugin, generates no log entries, so it doesn't even
> seem to get this far). Is this the "known timeout issue" I have seen
> reference to? This result occurs consistently and I reproduce it using the
> HelloWorld sample RCP app. An error that I get intermittently during this
> process is "NLS unused message: ERROR_TI_MODEL_CREATION in:
> org.eclipse.tptp.platform.jvmti.client.internal.messages".

This is a known problem. Things are much better in 4.4.

> 3. If I create an RCP "product" from my app, then I can profile it
> successfully using JVMTI from standalone (HeapProf) and from the workbench
> (by referencing the launcher for the product and not the launcher for the
> project).
> 4. When I use JVMTI, though, there is no menu that I can see to to do a
> "Collect Object References" (my real objective). An alternative would be to
> get a way to run "Collect Object References" while running in standalone
> mode.

The "Collect Object Reference" feature was canceled with the release of
the (new) JVMTI profiler (but is still supported in the JVMPI profiler).
We felt that it is not very usable and are currently seeking better ways
(and resources) for implementing this in a more usable manner. See
Bugzilla 93704 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=93704) for
some related discussions.

HTH,
Asaf


--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Re: Profiling RCP applications - Heap Analysis [message #95244 is a reply to message #95168] Tue, 10 April 2007 20:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: james.ja.mweb.co.za

Hi Asaf,
Thanks that is a big help. If I use JVMPI, though, I get this issue:

5. If I use IAC, and do a "Collect Object References", I get only entries
for the classes in my main application plugin (my business logic is
in separate plugins, and no classes from these are included - my filtering
is on the default and my classes are in packages com.domain.*, which the
filter should not exclude ).

Not sure if this description is too vague to make sense of, but have you
come across anything like that?

Best regards

James

"Asaf Yaffe" <asaf.yaffe@intel.com> wrote in message
news:evf996$4e6$1@build.eclipse.org...
> James,
>
>> Hi All,
>> I would like to use TPTP to do heap analysis on an RCP application. I am
>> quite confident that my installation is according to instructions,
>> because there are a lot of good posts that have dealt with some of the
>> pitfalls (if I do "Test Availability" from the monitor tab, I get
>> success).
>>
>> I am using release versions of Eclipse 3.2, TPTP 4.3.1, JDK 1.5.0_11
>
> With the version you're using, I recommend using the "old" (JVMPI) Heap
> Profiler and not the new one. In TPTP 4.3.x, the JVMTI Heap Analysis
> feature does not provide any additional benefits. If you want to use the
> new profiler, please switch to Eclipse 3.3 and TPTP 4.4 (latest stable or
> dev build).
>
>>
>> What I observe:
>> 1. Normal (non-RCP) Java apps run fine in the old and new technology
>> profilers.
>> 2. When I try to launch a JVMTI profile of an RCP, the launch waits a
>> long time at "Launching (78%)" and then ends with no error (turning on
>> logging in the AC Java Profiling plugin, generates no log entries, so it
>> doesn't even seem to get this far). Is this the "known timeout issue" I
>> have seen reference to? This result occurs consistently and I reproduce
>> it using the HelloWorld sample RCP app. An error that I get
>> intermittently during this process is "NLS unused message:
>> ERROR_TI_MODEL_CREATION in:
>> org.eclipse.tptp.platform.jvmti.client.internal.messages".
>
> This is a known problem. Things are much better in 4.4.
>
>> 3. If I create an RCP "product" from my app, then I can profile it
>> successfully using JVMTI from standalone (HeapProf) and from the
>> workbench (by referencing the launcher for the product and not the
>> launcher for the project).
>> 4. When I use JVMTI, though, there is no menu that I can see to to do a
>> "Collect Object References" (my real objective). An alternative would be
>> to get a way to run "Collect Object References" while running in
>> standalone mode.
>
> The "Collect Object Reference" feature was canceled with the release of
> the (new) JVMTI profiler (but is still supported in the JVMPI profiler).
> We felt that it is not very usable and are currently seeking better ways
> (and resources) for implementing this in a more usable manner. See
> Bugzilla 93704 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=93704) for
> some related discussions.
>
> HTH,
> Asaf
>
>
> --
> Asaf Yaffe
> Eclipse TPTP Committer, JVMTI Profiler
Re: Profiling RCP applications - Heap Analysis [message #95259 is a reply to message #95244] Wed, 11 April 2007 06:55 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
James,

> 5. If I use IAC, and do a "Collect Object References", I get only entries
> for the classes in my main application plugin (my business logic is
> in separate plugins, and no classes from these are included - my filtering
> is on the default and my classes are in packages com.domain.*, which the
> filter should not exclude ).
>

There are some known "filtering" issues with the JVMPI agent (see here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=170963). I am not sure
whether they also affect the Heap Dump functionality, and I am not
familiar with the code that generates Heap Dumps in the JVMPI agent. Try
to fiddle with the filter definitions (have you tried including ALL
classes?) and see if it helps.

Maybe someone else with more JVMPI Agent experience can help here... ?

Thanks,
Asaf


--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Re: Profiling RCP applications - Heap Analysis [message #95686 is a reply to message #95259] Fri, 13 April 2007 06:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: james.ja.mweb.co.za

Thanks Asaf,
That is a great help.
Which build version of the Eclipse 3.3 should I use (I see that M6 has some
plugins - like org.eclipse.core.runtime - which conflict with the older
versions in the latest TPTP 4.4 build)?
Many thanks
James


"Asaf Yaffe" <asaf.yaffe@intel.com> wrote in message
news:evi0pg$rii$1@build.eclipse.org...
> James,
>
>> 5. If I use IAC, and do a "Collect Object References", I get only entries
>> for the classes in my main application plugin (my business logic is
>> in separate plugins, and no classes from these are included - my
>> filtering
>> is on the default and my classes are in packages com.domain.*, which the
>> filter should not exclude ).
>>
>
> There are some known "filtering" issues with the JVMPI agent (see here:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=170963). I am not sure
> whether they also affect the Heap Dump functionality, and I am not
> familiar with the code that generates Heap Dumps in the JVMPI agent. Try
> to fiddle with the filter definitions (have you tried including ALL
> classes?) and see if it helps.
>
> Maybe someone else with more JVMPI Agent experience can help here... ?
>
> Thanks,
> Asaf
>
>
> --
> Asaf Yaffe
> Eclipse TPTP Committer, JVMTI Profiler
Re: Profiling RCP applications - Heap Analysis [message #95889 is a reply to message #95686] Sun, 15 April 2007 06:31 Go to previous message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
James,

The latest TPTP 4.4 "stable" version should be used with Eclipse 3.3 M6.

Thanks,
Asaf


James Nicolson wrote:
> Thanks Asaf,
> That is a great help.
> Which build version of the Eclipse 3.3 should I use (I see that M6 has some
> plugins - like org.eclipse.core.runtime - which conflict with the older
> versions in the latest TPTP 4.4 build)?
> Many thanks
> James
>
>
> "Asaf Yaffe" <asaf.yaffe@intel.com> wrote in message
> news:evi0pg$rii$1@build.eclipse.org...
>> James,
>>
>>> 5. If I use IAC, and do a "Collect Object References", I get only entries
>>> for the classes in my main application plugin (my business logic is
>>> in separate plugins, and no classes from these are included - my
>>> filtering
>>> is on the default and my classes are in packages com.domain.*, which the
>>> filter should not exclude ).
>>>
>> There are some known "filtering" issues with the JVMPI agent (see here:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=170963). I am not sure
>> whether they also affect the Heap Dump functionality, and I am not
>> familiar with the code that generates Heap Dumps in the JVMPI agent. Try
>> to fiddle with the filter definitions (have you tried including ALL
>> classes?) and see if it helps.
>>
>> Maybe someone else with more JVMPI Agent experience can help here... ?
>>
>> Thanks,
>> Asaf
>>
>>
>> --
>> Asaf Yaffe
>> Eclipse TPTP Committer, JVMTI Profiler
>
>
Previous Topic:No results displayed for eclipse application
Next Topic:How can I test a web-app with TPTP?
Goto Forum:
  


Current Time: Sun Aug 09 06:28:42 GMT 2020

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

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

Back to the top