Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Cannot profile application
Cannot profile application [message #128541] Thu, 17 April 2008 10:12 Go to next message
Joerg Bullmann is currently offline Joerg BullmannFriend
Messages: 6
Registered: July 2009
Junior Member
Hi there,

TPTP is letting me down (quite) a bit (or I am not clever enough). I'll
keep it short. I have now spent two days trying to get this to work and am
at the end of my tether.

I want to do memory analysis (and then also CPU profiling) of an
Ecplise-plugin based RCP application.

* Windows XP Pro SP2
* 2GB, 2.4 GHz Core 2 Duo
* Java 1.6.0_05
* Eclipse Europa 3.3.2 with latest TPTP 4.4.1 (updated via Eclipse
built-in updater)
* after a lot of failed attempts, I also installed all optionals mentioned
on the TPTP download page (BIRT, WST, GEF, ...); all of them installed via
Eclipse built-in updater)
* Stand Alone Agent Controller 4.4.1 (started trying this because the IAC
would not respond)

1) Stand alone agent controller
a) Installed agent controller.
b) SetConfig.bat'ed it.
c) Started it: ACServer.exe
d) Tried it out with: SampleClient.exe (no problem)

2) Start Eclipse
a) Disable IAC in the preferences
b) Disable proxy in Eclipse preferences (I need it to access the internet,
but I want to be sure it does not get in the way of TPTP)

3) Create a profiling run configuration (test-config). This run
configuration runs fine if I call it normally or debug it. It is a small
headless eclipse application that tests some of my code.
a) Add memory analysis
b) Save it
c) run the thing (I now see "Launching test-config" in the status line),
then after a while I get a dialog "Agent Controller is unavailable under
port 10006" with an exception:

org.eclipse.tptp.platform.execution.exceptions.NotConnectedE xception
Unable to get a reference to the agent. The Client is not connected to the
Agent Controller.
[.. stack trace ..]

Underneath above dialog, there is another (becomes visible when closing
the other one): "An unexpected error occurred while attempting to
establish a connection with the JVMTI agent.
Shown stack trace:
java.lang.NullPointerException
at
org.eclipse.tptp.platform.execution.client.core.internal.Con nectionImpl.addDataListener(ConnectionImpl.java:435)
at
org.eclipse.tptp.platform.execution.client.core.internal.Age ntController.addDataListener(AgentController.java:1272)
at
org.eclipse.tptp.platform.execution.client.agent.internal.Ag entImpl.addDataListener(AgentImpl.java:425)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.configureDataProcessor(TIDelegateHelper.java:7 60)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.attachToAgent(TIDelegateHelper.java:703)
[.. further stack trace ..]

4) Try out the Agent Controller: SampleClient.exe (no problem, again). Is
TPTP is lying to me?

5) Cry.

Can anyone help?

Please!

Joerg
Re: Cannot profile application [message #128721 is a reply to message #128541] Mon, 21 April 2008 07:54 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
Joerg,

> 3) Create a profiling run configuration (test-config). This run
> configuration runs fine if I call it normally or debug it. It is a small
> headless eclipse application that tests some of my code.
> a) Add memory analysis
> b) Save it
> c) run the thing (I now see "Launching test-config" in the status line),
> then after a while I get a dialog "Agent Controller is unavailable under
> port 10006" with an exception:
>

In the Monitor tab of the Launch Configuration dialog, did you try
clicking the "Test Connection" button? Anything happens?

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Re: Cannot profile application [message #129054 is a reply to message #128541] Thu, 24 April 2008 21:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mike.bleazard.org

Joerg,

I've been battling with TPTP for a couple of days now as well. It hasn't
been a particularly pleasant experience.

I've also been unable to get Eclipse talking to the ACServer.exe. I did
find some information saying you need to switch the default port from
10002 to 10006. But this didn't work for me.

However, in desperation I tried running the ACWinServer.exe that's in
the same <install-directory>/bin as ACServer.exe. In a brief sweep of
the web I couldn't find any information at all on it - but when I did
run it, I found I was able to profile our RCP application.

The next thing to trip me up was that I didn't think I was getting any
data because nothing was appearing in my 'Object Allocations' view (the
view associated with Memory Analysis). I eventually discovered that it
was but there seems to be a bug with the default filter that just
filters out *all* the data. Grrrr. When I switched to 'No filter' all my
object allocation data appeared.

However, I'm not yet convinced that the results I'm seeing justify the
effort going in. Can anyone out there give me some encouragement that
it's worthwhile persisting?

Cheers,

Mike

Joerg Bullmann wrote:
> Hi there,
>
> TPTP is letting me down (quite) a bit (or I am not clever enough). I'll
> keep it short. I have now spent two days trying to get this to work and
> am at the end of my tether.
>
> I want to do memory analysis (and then also CPU profiling) of an
> Ecplise-plugin based RCP application.
>
> * Windows XP Pro SP2
> * 2GB, 2.4 GHz Core 2 Duo
> * Java 1.6.0_05
> * Eclipse Europa 3.3.2 with latest TPTP 4.4.1 (updated via Eclipse
> built-in updater)
> * after a lot of failed attempts, I also installed all optionals
> mentioned on the TPTP download page (BIRT, WST, GEF, ...); all of them
> installed via Eclipse built-in updater)
> * Stand Alone Agent Controller 4.4.1 (started trying this because the
> IAC would not respond)
>
> 1) Stand alone agent controller
> a) Installed agent controller.
> b) SetConfig.bat'ed it.
> c) Started it: ACServer.exe
> d) Tried it out with: SampleClient.exe (no problem)
>
> 2) Start Eclipse
> a) Disable IAC in the preferences
> b) Disable proxy in Eclipse preferences (I need it to access the
> internet, but I want to be sure it does not get in the way of TPTP)
>
> 3) Create a profiling run configuration (test-config). This run
> configuration runs fine if I call it normally or debug it. It is a small
> headless eclipse application that tests some of my code.
> a) Add memory analysis
> b) Save it
> c) run the thing (I now see "Launching test-config" in the status line),
> then after a while I get a dialog "Agent Controller is unavailable under
> port 10006" with an exception:
>
> org.eclipse.tptp.platform.execution.exceptions.NotConnectedE xception
> Unable to get a reference to the agent. The Client is not connected to
> the Agent Controller.
> [.. stack trace ..]
>
> Underneath above dialog, there is another (becomes visible when closing
> the other one): "An unexpected error occurred while attempting to
> establish a connection with the JVMTI agent.
> Shown stack trace:
> java.lang.NullPointerException
> at
> org.eclipse.tptp.platform.execution.client.core.internal.Con nectionImpl.addDataListener(ConnectionImpl.java:435)
>
> at
> org.eclipse.tptp.platform.execution.client.core.internal.Age ntController.addDataListener(AgentController.java:1272)
>
> at
> org.eclipse.tptp.platform.execution.client.agent.internal.Ag entImpl.addDataListener(AgentImpl.java:425)
>
> at
> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.configureDataProcessor(TIDelegateHelper.java:7 60)
>
> at
> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.attachToAgent(TIDelegateHelper.java:703)
>
> [.. further stack trace ..]
>
> 4) Try out the Agent Controller: SampleClient.exe (no problem, again).
> Is TPTP is lying to me?
>
> 5) Cry.
>
> Can anyone help?
>
> Please!
>
> Joerg
>
Re: Cannot profile application [message #129114 is a reply to message #129054] Fri, 25 April 2008 09:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mike.bleazard.org

A couple of corrections:

The exe is not called ACWinServer - but ACWInService.

And - it wasn't doing anything anyway. I've tried profiling my RCP app
again without ACWinService running - and the profiling is still working.
It must be using the IAC.

Mike Bleazard wrote:
> Joerg,
>
> I've been battling with TPTP for a couple of days now as well. It hasn't
> been a particularly pleasant experience.
>
> I've also been unable to get Eclipse talking to the ACServer.exe. I did
> find some information saying you need to switch the default port from
> 10002 to 10006. But this didn't work for me.
>
> However, in desperation I tried running the ACWinServer.exe that's in
> the same <install-directory>/bin as ACServer.exe. In a brief sweep of
> the web I couldn't find any information at all on it - but when I did
> run it, I found I was able to profile our RCP application.
>
> The next thing to trip me up was that I didn't think I was getting any
> data because nothing was appearing in my 'Object Allocations' view (the
> view associated with Memory Analysis). I eventually discovered that it
> was but there seems to be a bug with the default filter that just
> filters out *all* the data. Grrrr. When I switched to 'No filter' all my
> object allocation data appeared.
>
> However, I'm not yet convinced that the results I'm seeing justify the
> effort going in. Can anyone out there give me some encouragement that
> it's worthwhile persisting?
>
> Cheers,
>
> Mike
>
> Joerg Bullmann wrote:
>> Hi there,
>>
>> TPTP is letting me down (quite) a bit (or I am not clever enough).
>> I'll keep it short. I have now spent two days trying to get this to
>> work and am at the end of my tether.
>>
>> I want to do memory analysis (and then also CPU profiling) of an
>> Ecplise-plugin based RCP application.
>>
>> * Windows XP Pro SP2
>> * 2GB, 2.4 GHz Core 2 Duo
>> * Java 1.6.0_05
>> * Eclipse Europa 3.3.2 with latest TPTP 4.4.1 (updated via Eclipse
>> built-in updater)
>> * after a lot of failed attempts, I also installed all optionals
>> mentioned on the TPTP download page (BIRT, WST, GEF, ...); all of them
>> installed via Eclipse built-in updater)
>> * Stand Alone Agent Controller 4.4.1 (started trying this because the
>> IAC would not respond)
>>
>> 1) Stand alone agent controller
>> a) Installed agent controller.
>> b) SetConfig.bat'ed it.
>> c) Started it: ACServer.exe
>> d) Tried it out with: SampleClient.exe (no problem)
>>
>> 2) Start Eclipse
>> a) Disable IAC in the preferences
>> b) Disable proxy in Eclipse preferences (I need it to access the
>> internet, but I want to be sure it does not get in the way of TPTP)
>>
>> 3) Create a profiling run configuration (test-config). This run
>> configuration runs fine if I call it normally or debug it. It is a
>> small headless eclipse application that tests some of my code.
>> a) Add memory analysis
>> b) Save it
>> c) run the thing (I now see "Launching test-config" in the status
>> line), then after a while I get a dialog "Agent Controller is
>> unavailable under port 10006" with an exception:
>>
>> org.eclipse.tptp.platform.execution.exceptions.NotConnectedE xception
>> Unable to get a reference to the agent. The Client is not connected to
>> the Agent Controller.
>> [.. stack trace ..]
>>
>> Underneath above dialog, there is another (becomes visible when
>> closing the other one): "An unexpected error occurred while attempting
>> to establish a connection with the JVMTI agent.
>> Shown stack trace:
>> java.lang.NullPointerException
>> at
>> org.eclipse.tptp.platform.execution.client.core.internal.Con nectionImpl.addDataListener(ConnectionImpl.java:435)
>>
>> at
>> org.eclipse.tptp.platform.execution.client.core.internal.Age ntController.addDataListener(AgentController.java:1272)
>>
>> at
>> org.eclipse.tptp.platform.execution.client.agent.internal.Ag entImpl.addDataListener(AgentImpl.java:425)
>>
>> at
>> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.configureDataProcessor(TIDelegateHelper.java:7 60)
>>
>> at
>> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.attachToAgent(TIDelegateHelper.java:703)
>>
>> [.. further stack trace ..]
>>
>> 4) Try out the Agent Controller: SampleClient.exe (no problem, again).
>> Is TPTP is lying to me?
>>
>> 5) Cry.
>>
>> Can anyone help?
>>
>> Please!
>>
>> Joerg
>>
Re: Cannot profile application [message #129266 is a reply to message #128721] Mon, 28 April 2008 11:19 Go to previous messageGo to next message
Joerg Bullmann is currently offline Joerg BullmannFriend
Messages: 6
Registered: July 2009
Junior Member
Asaf Yaffe wrote:

> In the Monitor tab of the Launch Configuration dialog, did you try
> clicking the "Test Connection" button? Anything happens?

Yes, I remember the connection test was successful. Sorry, I had forgotten
to mention that.

Cheers,
Joerg
Re: Cannot profile application [message #129277 is a reply to message #129114] Mon, 28 April 2008 11:35 Go to previous messageGo to next message
Joerg Bullmann is currently offline Joerg BullmannFriend
Messages: 6
Registered: July 2009
Junior Member
Hi Mike, Asaf,

What I have done is this: downloaded and installed NetBeans. Started my
application. Pointed the NetBeans profiler to the process ID of my Eclipse
based application and profiled it. It does show how the memory goes and
you see classe names etc., but you -- obviously -- cannot click on the
class names and go to the code quickly. I honestly don't know what else is
missing, but it definitely is start.

If you have no time to fiddle with and urgently need some life profiling,
this is a way to go.

I consider this a workaround and would like to point out that I do very
much appreciate the effort the contributors are putting into TPTP. It is
just that at this moment in time TPTP doesn't seem to help me. Some things
take time. I have not given up on it. ;-)

Cheers,
Joerg
Re: Cannot profile application [message #129608 is a reply to message #129277] Tue, 29 April 2008 08:12 Go to previous message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
Joerg,

Thanks for the update.

We are aware of the usability problems we have in TPTP. It will take
some time for it to mature.

Your feedback is very much appreciated.

Thanks for not giving up :)

Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Previous Topic:JVM Error while profiling using TPTP 4.4.1
Next Topic:Starting TPTP Profiler by API (through code)
Goto Forum:
  


Current Time: Fri Apr 19 18:18:31 GMT 2024

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

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

Back to the top