Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » please help me make TPTP run
please help me make TPTP run [message #88730] Mon, 27 November 2006 03:59 Go to next message
Eclipse User
Originally posted by: OEUSSKKJPSPJ.spammotel.com

Hi there,

I want to use TPTP with JDK 6 to find out why my Eclipse Application needs so much CPU time.
I followed all the steps described at http://www.eclipse.org/tptp/home/downloads/installguide/Inst allGuide42.html
and
http://www.eclipse.org/tptp/platform/documents/tutorials/jvm ti/Java_Application_Profiling_using_TPTP-v2.0.html
I installed and configured the AC and run it as a Windows Service.
I installed TPTP.
I installed the JVMTI client and the New Java Profiler.
I can make a successfull "Test Connection" with localhost:10006 in my Eclipse Environment (Window->Preferences->Profiling->Hosts). I can also make a successfull "Test Availability" at Run->Profile->Eclipse Application->Monitor->Java Profiling with Instrumentation.
But when I want to profile my Eclipse Application i get the Error Message:
"The JMVTI agent org.eclipse.tptp.jvmti is not available. Make sure that the agent's libraries are available and that it is configured properly."
I don't know what am I doing wrong.

I would appreciate if anybody could help me
Gabor
Re: please help me make TPTP run [message #88909 is a reply to message #88730] Wed, 29 November 2006 02:45 Go to previous messageGo to next message
Eclipse User
Originally posted by: OEUSSKKJPSPJ.spammotel.com

(i posted this email already yesterday once to the newsgroup, but I think it did not reach its destination)

Hi all,

I still could not solve the problem, I just wanted to add some things:

Profiling a Java Test Application (Profile as "Java Application") works very fine on my machine. Profiling as "Eclipse Application" does still not work. The Launching Process hangs at 78% with following status message:
"NLS missing message: TASK_CONNECTING_TO_AGENT in: org.eclipse.tpotp.platform.jvmti.client.internal.messages"
and then after a while the error message appears as described below.

Could it be that something with my JVMTI is wrong? - I can't imagine that, because I tried profiling as Java Application with jdk 5 and 6 and both worked.

Or does TPTP maybe even not yet support the profiling of an "Eclipse Application" (with plugins etc.)?

And then I found another thing: on this page
http://www.eclipse.org/tptp/home/downloads/installguide/agen tcontroller_42/win_ia32/getting_started.html
at the "Prerequisites" the third point is something that i don't understand. "Ensure that this shared library exists under the <install-dir>\usr\lib directory." ... but there is no \usr\lib directory at all in the install dir of the AC.

greetz,
Gabor


> Hi there,
>
> I want to use TPTP with JDK 6 to find out why my Eclipse Application needs
> so much CPU time.
> I followed all the steps described at http://www.eclipse.org/tptp/home/
> downloads/installguide/InstallGuide42.html
> and
> http://www.eclipse.org/tptp/platform/documents/tutorials/jvm ti/Java_
> Application_Profiling_using_TPTP-v2.0.html
> I installed and configured the AC and run it as a Windows Service.
> I installed TPTP.
> I installed the JVMTI client and the New Java Profiler.
> I can make a successfull "Test Connection" with localhost:10006 in my
> Eclipse Environment (Window->Preferences->Profiling->Hosts). I can also
> make a successfull "Test Availability" at Run->Profile->Eclipse Application-
> >Monitor->Java Profiling with Instrumentation.
> But when I want to profile my Eclipse Application i get the Error Message:
> "The JMVTI agent org.eclipse.tptp.jvmti is not available. Make sure that
> the agent's libraries are available and that it is configured properly."
> I don't know what am I doing wrong.
>
> I would appreciate if anybody could help me
> Gabor
>
>
Re: please help me make TPTP run [message #88924 is a reply to message #88730] Wed, 29 November 2006 02:56 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf Yaffe
Messages: 333
Registered: July 2009
Senior Member
Gabor Molnar wrote:
> I want to use TPTP with JDK 6 to find out why my Eclipse Application needs so much CPU time.
> I followed all the steps described at http://www.eclipse.org/tptp/home/downloads/installguide/Inst allGuide42.html
> and
> http://www.eclipse.org/tptp/platform/documents/tutorials/jvm ti/Java_Application_Profiling_using_TPTP-v2.0.html
> I installed and configured the AC and run it as a Windows Service.
> I installed TPTP.
> I installed the JVMTI client and the New Java Profiler.
> I can make a successfull "Test Connection" with localhost:10006 in my Eclipse Environment (Window->Preferences->Profiling->Hosts). I can also make a successfull "Test Availability" at Run->Profile->Eclipse Application->Monitor->Java Profiling with Instrumentation.
> But when I want to profile my Eclipse Application i get the Error Message:
> "The JMVTI agent org.eclipse.tptp.jvmti is not available. Make sure that the agent's libraries are available and that it is configured properly."
> I don't know what am I doing wrong.
>
> I would appreciate if anybody could help me
> Gabor

Gabor,

Generally speaking, the JVMTI Profiler does not officially support Java
6. This enhancement is tracked under Bugzilla
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=148936), feel free to add
yourself to the CC list to track our progress.

Now, let's try to understand what's really going on:
1. Edit the pluginconfig.xml file in <AC Install
Dir>\plugins\org.eclipse.tptp.javaprofiler\config directory, and add the
following XML elements directly below the
<Variable name="CLASSPATH".../> element:

<Variable name="MARTINI_LOGGER_DIRECTORY" position="replace"
value="%JAVA_PROFILER_HOME%\log" />
<Variable name="MARTINI_LOGGER_LOG_LEVEL" position="replace" value="5" />

2. Create a directory named 'log' under
<AC Install Dir>\plugins\org.eclipse.tptp.javaprofiler

3. Restart the Agent Controller, and try to launch the profiler again
from the Eclipse workbench. Then, check the new 'log' directory. It
should contain a log file. Please post the log file here.

4. Optionally, try using different JVMTI collectors (Memory Analysis or
Thread Analysis) and check if they also fail.

Waiting for your response,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, Platform Project (JVMTI Profiler)
Re-2: please help me make TPTP run [message #89072 is a reply to message #88924] Wed, 29 November 2006 10:13 Go to previous messageGo to next message
Eclipse User
Originally posted by: OEUSSKKJPSPJ.spammotel.com

> Gabor Molnar wrote:
> > I want to use TPTP with JDK 6 to find out why my Eclipse Application needs
> > so much CPU time.
> > I followed all the steps described at http://www.eclipse.org/tptp/home/
> > downloads/installguide/InstallGuide42.html
> > and
> > http://www.eclipse.org/tptp/platform/documents/tutorials/jvm ti/Java_
> > Application_Profiling_using_TPTP-v2.0.html
> > I installed and configured the AC and run it as a Windows Service.
> > I installed TPTP.
> > I installed the JVMTI client and the New Java Profiler.
> > I can make a successfull "Test Connection" with localhost:10006 in my
> > Eclipse Environment (Window->Preferences->Profiling->Hosts). I can also
> > make a successfull "Test Availability" at Run->Profile->Eclipse Application-
> > >Monitor->Java Profiling with Instrumentation.
> > But when I want to profile my Eclipse Application i get the Error Message:
> > "The JMVTI agent org.eclipse.tptp.jvmti is not available. Make sure that
> > the agent's libraries are available and that it is configured properly."
> > I don't know what am I doing wrong.
> >
> > I would appreciate if anybody could help me
> > Gabor
>
> Gabor,
>
> Generally speaking, the JVMTI Profiler does not officially support Java
> 6. This enhancement is tracked under Bugzilla
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=148936), feel free to add
> yourself to the CC list to track our progress.
>
> Now, let's try to understand what's really going on:
> 1. Edit the pluginconfig.xml file in <AC Install
> Dir>\plugins\org.eclipse.tptp.javaprofiler\config directory, and add the
> following XML elements directly below the
> <Variable name="CLASSPATH".../> element:
>
> <Variable name="MARTINI_LOGGER_DIRECTORY" position="replace"
> value="%JAVA_PROFILER_HOME%\log" />
> <Variable name="MARTINI_LOGGER_LOG_LEVEL" position="replace" value="5" />
>
> 2. Create a directory named 'log' under
> <AC Install Dir>\plugins\org.eclipse.tptp.javaprofiler
>
> 3. Restart the Agent Controller, and try to launch the profiler again
> from the Eclipse workbench. Then, check the new 'log' directory. It
> should contain a log file. Please post the log file here.
>
> 4. Optionally, try using different JVMTI collectors (Memory Analysis or
> Thread Analysis) and check if they also fail.
>
> Waiting for your response,
> Asaf
>
> --
> Asaf Yaffe
> Eclipse TPTP Committer, Platform Project (JVMTI Profiler)

Hi Asaf,

First of all, thanks alot for your answer.

I have set now the "Compiler compliance level" to 5.0

1. In my pluginconfig.xml there is no entry "<Variable name="CLASSPATH".../>"
anyway, I inserted the lines you wrote at another point and it looks now something like this:
....
<PluginConfiguration>
<AgentControllerEnvironment configuration="default">
<Variable name="JAVA_PROFILER_HOME" position="replace" value="%PLUGINS_HOME%\org.eclipse.tptp.javaprofiler" />
<Variable name="PATH" position="prepend" value="%RASERVER_HOME%\bin" />
<Variable name="PATH" position="prepend" value="%JAVA_PROFILER_HOME%" />
<Variable name="PATH" position="prepend" value="%JAVA_PATH%" />
<Variable name="MARTINI_LOGGER_DIRECTORY" position="replace" value="%JAVA_PROFILER_HOME%\log" />
<Variable name="MARTINI_LOGGER_LOG_LEVEL" position="replace" value="5" />
</AgentControllerEnvironment>
<Option name="org.eclipse.tptp.javaprofiler" type="version" value="4.2.0" />
</PluginConfiguration>
....

(btw i read somewhere that the Javaprofiler home directory must be also set in the Windows PATH environment variable and also a new environment variable JAVA_PROFILER_HOME must be set there - and so I did).

2. done

3+4. I restarted the AC and tried to profile again my RCP (Profile as "Eclipse Application"). Still the same error occurs and additionally no log can be found in that log-directory.
Then I tried to profile my little test "Hello World" Java Application (Profile as "Java Application"). I tested different data collectors (Java Profiling with Instrumentation and also the Memory Analysis) and it works. Here are the first lines of the log stored in that directory:
=============================================
Process ID: 2980
Process command line: "D:\Programme\jre\bin\java.exe" -agentlib:JPIBootLoader=JPIAgent:server=controlled;CGProf Test
Machine name: AMUN
=============================================
Type Date Time TID Level Client Message
Informative 11/29/06 13:38:45 2404 0 CJVMTIInterface Using JVMTI
Informative 11/29/06 13:38:48 2404 5 CCGAdaptor Class 'java/lang/Object' will not be instrumented
Informative 11/29/06 13:38:48 2404 5 CDataManager new class def for 'java.lang.Object' : id = 1

Thanks,
Gabor
Re: Re-2: please help me make TPTP run [message #89106 is a reply to message #89072] Thu, 30 November 2006 05:01 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf Yaffe
Messages: 333
Registered: July 2009
Senior Member
Gabor,

It seems that there are some problems related to the communication
between the Eclipse Workbench and the Agent Controller. I am also
experiencing these problems on my machine, but not in a consistent way
(meaning that sometime everything is working fine).

A possible workaround to your problem:
Shutdown the Agent Controller, launch Eclipse with a Java 5 VM, and use
the built-in Java profiler (the one labeled "Java Profiling (double
click to modify filter)"). This will launch the JVMPI profiler through
the Integrated Agent Controller, and it should work fine with RCP
applications.

HTH,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, Platform Project (JVMTI Profiler)
Re-4: please help me make TPTP run [message #89135 is a reply to message #89106] Thu, 30 November 2006 06:36 Go to previous message
Eclipse User
Originally posted by: OEUSSKKJPSPJ.spammotel.com

Hi Asaf,

Thanks alot for your help.
I set the Java->Installed JREs to the JVM 5, set the compiler compliance level to 5.0, activated the IAC and set its JAVA_PATH to the JRE 1.5.
And now ... everything works perfect. Thanks alot

Gabor



> Gabor,
>
> It seems that there are some problems related to the communication
> between the Eclipse Workbench and the Agent Controller. I am also
> experiencing these problems on my machine, but not in a consistent way
> (meaning that sometime everything is working fine).
>
> A possible workaround to your problem:
> Shutdown the Agent Controller, launch Eclipse with a Java 5 VM, and use
> the built-in Java profiler (the one labeled "Java Profiling (double
> click to modify filter)"). This will launch the JVMPI profiler through
> the Integrated Agent Controller, and it should work fine with RCP
> applications.
>
> HTH,
> Asaf
>
> --
> Asaf Yaffe
> Eclipse TPTP Committer, Platform Project (JVMTI Profiler)
Previous Topic:Profiler - Launching stops at 78%
Next Topic:Java Memory Profiling
Goto Forum:
  


Current Time: Fri Aug 22 10:01:42 EDT 2014

Powered by FUDForum. Page generated in 0.13700 seconds