Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » 4.5.1 IAC profiling failure: org.eclipse.tptp.jvmti unavailable: JPIBootLoader
4.5.1 IAC profiling failure: org.eclipse.tptp.jvmti unavailable: JPIBootLoader [message #136693] Thu, 02 October 2008 20:38 Go to next message
Steven Emmerson is currently offline Steven EmmersonFriend
Messages: 9
Registered: July 2009
Junior Member
I can't profile a JUnit test-class using the Integrated Agent Controller
from within the Eclipse IDE. When I try, the following output appears in
the Eclipse Console:

Error occurred during initialization of VM
Could not find agent library on the library path or in the local
directory: JPIBootLoader

and a widget eventually pops-up with the following message:

The JVMTI agent org.eclipse.tptp.jvmti is not available. Make sure that
the libraries for the agent are available and that it is configured
properly.

Please help.

Here's my environment:

$ uname -a
Linux gilda.unidata.ucar.edu 2.6.26.3-14.fc8 #1 SMP Wed Sep 3 03:17:52 EDT
2008 x86_64 x86_64 x86_64 GNU/Linux
$ The following environment variables are not set: LD_LIBRARY_PATH,
JAVA_PROFILER_HOME, TPCP_AC_HOME
$ Within Eclipse, selecting "Help -> About Eclipse SDK" shows
Eclipse SDK
Version: 3.4.0
Build id: I20080617-2000
$ I used "Help -> Software Updates" to install TPTP 4.5.1v200807310709-...
$ Within Eclipse, selecting "Help -> About Eclipse SDK -> Plug-in Details"
shows that "TPTP Linux_em64t IAC Plug-in v4.4.1v200808290100" is installed
$ The "Monitor" tab under "Profile Configurations" has only "Execution
Time Analysis" selected; its "Edit Options" shows only "Show Execution
Flow Graphical Details" selected.
Re: 4.5.1 IAC profiling failure: org.eclipse.tptp.jvmti unavailable: JPIBootLoader [message #136765 is a reply to message #136693] Fri, 03 October 2008 16:00 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Hi Steven,

How did you start the JUnit test class profile?
It sounds like the system variable cannot be located by the IAC, which is
tested and worked.
If you manually add the system variable and restart Eclipse, does it work
for you?

Eugene


"Steven Emmerson" <emmerson@ucar.edu> wrote in message
news:8ee595e380a1cd01dd91a1dd38ffade5$1@www.eclipse.org...
>I can't profile a JUnit test-class using the Integrated Agent Controller
>from within the Eclipse IDE. When I try, the following output appears in
>the Eclipse Console:
>
> Error occurred during initialization of VM
> Could not find agent library on the library path or in the local
> directory: JPIBootLoader
>
> and a widget eventually pops-up with the following message:
>
> The JVMTI agent org.eclipse.tptp.jvmti is not available. Make sure that
> the libraries for the agent are available and that it is configured
> properly.
>
> Please help.
>
> Here's my environment:
>
> $ uname -a
> Linux gilda.unidata.ucar.edu 2.6.26.3-14.fc8 #1 SMP Wed Sep 3 03:17:52 EDT
> 2008 x86_64 x86_64 x86_64 GNU/Linux
> $ The following environment variables are not set: LD_LIBRARY_PATH,
> JAVA_PROFILER_HOME, TPCP_AC_HOME
> $ Within Eclipse, selecting "Help -> About Eclipse SDK" shows
> Eclipse SDK
> Version: 3.4.0
> Build id: I20080617-2000
> $ I used "Help -> Software Updates" to install TPTP 4.5.1v200807310709-...
> $ Within Eclipse, selecting "Help -> About Eclipse SDK -> Plug-in Details"
> shows that "TPTP Linux_em64t IAC Plug-in v4.4.1v200808290100" is installed
> $ The "Monitor" tab under "Profile Configurations" has only "Execution
> Time Analysis" selected; its "Edit Options" shows only "Show Execution
> Flow Graphical Details" selected.
>
Re: 4.5.1 IAC profiling failure: org.eclipse.tptp.jvmti unavailable: JPIBootLoader [message #136777 is a reply to message #136765] Fri, 03 October 2008 16:48 Go to previous messageGo to next message
Steven Emmerson is currently offline Steven EmmersonFriend
Messages: 9
Registered: July 2009
Junior Member
Hi Eugene,

Something very strange has happened. The same Eclipse process that
wouldn't profile at the end-of-work yesterday is profiling today at the
beginning-of-work. I didn't do anything in the interim, so I'm at a loss
to explain this. I do have my Eclipse set-up for automatic download of
updates. I wonder if that's the cause. We also have nightly automatic
updates pushed to our workstations for system software (e.g., libraries,
utilities).

I did execute the script
" plugins/org.eclipse.tptp.platform.ac.linux_em64t_4.4.1.v2008 08290100/agent_controller/bin/SetConfig.sh "
while that Eclipse process was running, but I believe I tried profiling
after that and it still didn't work.

Very odd.

I'll answer your questions for the record (and I have a question).

> How did you start the JUnit test class profile?

I clicked on the profiling icon in the toolbar. TPTP knows that the
application is a JUnit class.

> It sounds like the system variable cannot be located by the IAC, which is
> tested and worked.
> If you manually add the system variable and restart Eclipse, does it work
> for you?

Please forgive my ignorance, but what is the "system variable"?

I forgot to mention in my original post that my Java environment is 64-bit
jdk1.6.0_04.

Regards,
Steve Emmerson
Re: 4.5.1 IAC profiling failure: org.eclipse.tptp.jvmti unavailable: JPIBootLoader [message #136822 is a reply to message #136777] Mon, 06 October 2008 14:30 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Hi Steven,

Could you try the following:
1. shutdown Eclipse workbench.
2. run
plugins/org.eclipse.tptp.platform.ac.linux_em64t_4.4.1.v2008 08290100/agent_controller/bin/SetConfig.sh
to setup Agent Controller
3. run
plugins/org.eclipse.tptp.platform.ac.linux_em64t_4.4.1.v2008 08290100/agent_controller/bin/ACServer
to start an standalone Agent Controller.
4. if step 2 and 3 run without error, restart Eclipse workbench and run your
profile.

The system variable I was referring are those varilables configure in the
Agent Controller config file.

Eugene


"Steven Emmerson" <emmerson@ucar.edu> wrote in message
news:32a9fd6c46608e087932bcc2f7dea4f7$1@www.eclipse.org...
> Hi Eugene,
>
> Something very strange has happened. The same Eclipse process that
> wouldn't profile at the end-of-work yesterday is profiling today at the
> beginning-of-work. I didn't do anything in the interim, so I'm at a loss
> to explain this. I do have my Eclipse set-up for automatic download of
> updates. I wonder if that's the cause. We also have nightly automatic
> updates pushed to our workstations for system software (e.g., libraries,
> utilities).
>
> I did execute the script
> " plugins/org.eclipse.tptp.platform.ac.linux_em64t_4.4.1.v2008 08290100/agent_controller/bin/SetConfig.sh "
> while that Eclipse process was running, but I believe I tried profiling
> after that and it still didn't work.
>
> Very odd.
>
> I'll answer your questions for the record (and I have a question).
>
>> How did you start the JUnit test class profile?
>
> I clicked on the profiling icon in the toolbar. TPTP knows that the
> application is a JUnit class.
>
>> It sounds like the system variable cannot be located by the IAC, which is
>> tested and worked.
>> If you manually add the system variable and restart Eclipse, does it work
>> for you?
>
> Please forgive my ignorance, but what is the "system variable"?
>
> I forgot to mention in my original post that my Java environment is 64-bit
> jdk1.6.0_04.
>
> Regards,
> Steve Emmerson
>
Re: 4.5.1 IAC profiling failure: org.eclipse.tptp.jvmti unavailable: JPIBootLoader [message #136928 is a reply to message #136822] Mon, 13 October 2008 22:29 Go to previous messageGo to next message
Steven Emmerson is currently offline Steven EmmersonFriend
Messages: 9
Registered: July 2009
Junior Member
Eugene,

Sorry for not responding sooner. I thought this forum would email me.

> Could you try the following:
> 1. shutdown Eclipse workbench.
> 2. run
>
plugins/org.eclipse.tptp.platform.ac.linux_em64t_4.4.1.v2008 08290100/agent_controller/bin/SetConfig.sh
> to setup Agent Controller

The above appears sufficient to get profiling working.

Perhaps I didn't correctly test for profiling when I ran the script before.

Thanks for your help.

Regards,
Steve Emmerson
Re: 4.5.1 IAC profiling failure: org.eclipse.tptp.jvmti unavailable: JPIBootLoader [message #136938 is a reply to message #136822] Mon, 13 October 2008 22:43 Go to previous messageGo to next message
Steven Emmerson is currently offline Steven EmmersonFriend
Messages: 9
Registered: July 2009
Junior Member
Eugene,

I spoke too soon in my previous reply. Profiling is no longer working
even though it was working. Attempting to obtain "Execution Time
Analysis" on a JUnit unit-test results in the following error message:

No execution statistics is available for display.
Either you have no trace selected in the Profiling Monitor view or the
current selection does not contain execution statistic information.

Note:
This view is available only if the trace contains execution statistics. To
collect this type of information, on the Profile tab in the Launch
configuration, choose the Execution Time Analysis option.

I successfully executed SetConfig.sh.

Executing ACServer in its bin/ directory resulted in the following error
message:

/ACServer: error while loading shared libraries: libtptpUtils.so.4:
cannot open shared object file: No such file or directory

Help?

--Steve
Re: 4.5.1 IAC profiling failure: org.eclipse.tptp.jvmti unavailable: JPIBootLoader [message #136974 is a reply to message #136938] Tue, 14 October 2008 13:49 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Hi Steven,

Could you check to see if you have the file libtptpUtils.so under the bin
folder?
Also do you have permission for files in the IAC or AC folders?

Eugene

"Steven Emmerson" <emmerson@ucar.edu> wrote in message
news:5449ebd7e28b6dcd2961511e382d8ce2$1@www.eclipse.org...
> Eugene,
>
> I spoke too soon in my previous reply. Profiling is no longer working
> even though it was working. Attempting to obtain "Execution Time
> Analysis" on a JUnit unit-test results in the following error message:
>
> No execution statistics is available for display.
> Either you have no trace selected in the Profiling Monitor view or the
> current selection does not contain execution statistic information.
>
> Note:
> This view is available only if the trace contains execution statistics. To
> collect this type of information, on the Profile tab in the Launch
> configuration, choose the Execution Time Analysis option.
>
> I successfully executed SetConfig.sh.
>
> Executing ACServer in its bin/ directory resulted in the following error
> message:
>
> /ACServer: error while loading shared libraries: libtptpUtils.so.4: cannot
> open shared object file: No such file or directory
>
> Help?
>
> --Steve
>
Re: 4.5.1 IAC profiling failure: org.eclipse.tptp.jvmti unavailable: JPIBootLoader [message #136986 is a reply to message #136974] Tue, 14 October 2008 13:50 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
I missed one folder in my last posting. Please also check the lib folder for
libtptpUtils.so file.

"Eugene Chan" <ewchan@ca.ibm.com> wrote in message
news:gd288q$ikr$1@build.eclipse.org...
> Hi Steven,
>
> Could you check to see if you have the file libtptpUtils.so under the bin
> folder?
> Also do you have permission for files in the IAC or AC folders?
>
> Eugene
>
> "Steven Emmerson" <emmerson@ucar.edu> wrote in message
> news:5449ebd7e28b6dcd2961511e382d8ce2$1@www.eclipse.org...
>> Eugene,
>>
>> I spoke too soon in my previous reply. Profiling is no longer working
>> even though it was working. Attempting to obtain "Execution Time
>> Analysis" on a JUnit unit-test results in the following error message:
>>
>> No execution statistics is available for display.
>> Either you have no trace selected in the Profiling Monitor view or the
>> current selection does not contain execution statistic information.
>>
>> Note:
>> This view is available only if the trace contains execution statistics.
>> To collect this type of information, on the Profile tab in the Launch
>> configuration, choose the Execution Time Analysis option.
>>
>> I successfully executed SetConfig.sh.
>>
>> Executing ACServer in its bin/ directory resulted in the following error
>> message:
>>
>> /ACServer: error while loading shared libraries: libtptpUtils.so.4:
>> cannot open shared object file: No such file or directory
>>
>> Help?
>>
>> --Steve
>>
>
>
Re: 4.5.1 IAC profiling failure: org.eclipse.tptp.jvmti unavailable: JPIBootLoader [message #137008 is a reply to message #136986] Tue, 14 October 2008 15:47 Go to previous messageGo to next message
Steven Emmerson is currently offline Steven EmmersonFriend
Messages: 9
Registered: July 2009
Junior Member
Eugene,

Here's the information. Some of the lines are wrapped. The shared
library is in the "lib" subdirectory but not the "bin".

$ pwd
/home/steve/.eclipse/org.eclipse.platform_3.4.0_185596441/pl ugins/org.eclipse.tptp.platform.ac.linux_em64t_4.4.1.v200808 290100/agent_controller/lib
$ ls -lL libtptpUtils.so*
-rwxr-xr-x 1 steve ustaff 106523 2008-09-23 12:42 libtptpUtils.so
-rwxr-xr-x 1 steve ustaff 106523 2008-09-23 12:42 libtptpUtils.so.4
-rwxr-xr-x 1 steve ustaff 106523 2008-09-23 12:42 libtptpUtils.so.4.5.0
$ ls -l libtptpUtils.so*
lrwxrwxrwx 1 steve ustaff 17 2008-09-26 13:31 libtptpUtils.so ->
libtptpUtils.so.4
lrwxrwxrwx 1 steve ustaff 21 2008-09-26 13:31 libtptpUtils.so.4 ->
libtptpUtils.so.4.5.0
-rwxr-xr-x 1 steve ustaff 106523 2008-09-23 12:42 libtptpUtils.so.4.5.0
$ cd ../bin
$ pwd
/home/steve/.eclipse/org.eclipse.platform_3.4.0_185596441/pl ugins/org.eclipse.tptp.platform.ac.linux_em64t_4.4.1.v200808 290100/agent_controller/bin
$ ls -lL libtptpUtils.so*
ls: cannot access libtptpUtils.so*: No such file or directory

Executing the "bin/ACStart.sh" script appears to start the Agent
Controller (verified with ps(1)). Attempting to obtain an "Execution Time
Analysis" in a subsequently started Eclipse session fails, however, with
the same error message in the "Execution Statistics" tab: "No execution
statistics is available for display.".

Regards,
Steve
Re: 4.5.1 IAC profiling failure: org.eclipse.tptp.jvmti unavailable: JPIBootLoader [message #137020 is a reply to message #137008] Tue, 14 October 2008 20:51 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Hi Steven,

Does the session failed with no data displayed only? or any error in console
view?
If the problem is about data not displayed in view, make sure the profiling
filter configuration is correctly set to include your target package.
Also try close the view and double click on the profiling analysis type in
the profiling monitor view to reopen the view for data refresh.

Eugene


"Steven Emmerson" <emmerson@ucar.edu> wrote in message
news:78e66e0de0408db106ee8fc74925448f$1@www.eclipse.org...
> Eugene,
>
> Here's the information. Some of the lines are wrapped. The shared
> library is in the "lib" subdirectory but not the "bin".
>
> $ pwd
> /home/steve/.eclipse/org.eclipse.platform_3.4.0_185596441/pl ugins/org.eclipse.tptp.platform.ac.linux_em64t_4.4.1.v200808 290100/agent_controller/lib
> $ ls -lL libtptpUtils.so*
> -rwxr-xr-x 1 steve ustaff 106523 2008-09-23 12:42 libtptpUtils.so
> -rwxr-xr-x 1 steve ustaff 106523 2008-09-23 12:42 libtptpUtils.so.4
> -rwxr-xr-x 1 steve ustaff 106523 2008-09-23 12:42 libtptpUtils.so.4.5.0
> $ ls -l libtptpUtils.so*
> lrwxrwxrwx 1 steve ustaff 17 2008-09-26 13:31 libtptpUtils.so ->
> libtptpUtils.so.4
> lrwxrwxrwx 1 steve ustaff 21 2008-09-26 13:31 libtptpUtils.so.4 ->
> libtptpUtils.so.4.5.0
> -rwxr-xr-x 1 steve ustaff 106523 2008-09-23 12:42 libtptpUtils.so.4.5.0
> $ cd ../bin
> $ pwd
> /home/steve/.eclipse/org.eclipse.platform_3.4.0_185596441/pl ugins/org.eclipse.tptp.platform.ac.linux_em64t_4.4.1.v200808 290100/agent_controller/bin
> $ ls -lL libtptpUtils.so*
> ls: cannot access libtptpUtils.so*: No such file or directory
>
> Executing the "bin/ACStart.sh" script appears to start the Agent
> Controller (verified with ps(1)). Attempting to obtain an "Execution Time
> Analysis" in a subsequently started Eclipse session fails, however, with
> the same error message in the "Execution Statistics" tab: "No execution
> statistics is available for display.".
>
> Regards,
> Steve
>
Re: 4.5.1 IAC profiling failure: org.eclipse.tptp.jvmti unavailable: JPIBootLoader [message #137077 is a reply to message #137020] Wed, 15 October 2008 16:10 Go to previous messageGo to next message
Steven Emmerson is currently offline Steven EmmersonFriend
Messages: 9
Registered: July 2009
Junior Member
Eugene Chan wrote:

> Does the session failed with no data displayed only? or any error in console
> view?

There are no error messages in the "Console" view.

The "Execution Statistics" tab in the profiling perspective has the error
message "No execution statistics is available for display. ...".

> If the problem is about data not displayed in view, make sure the profiling
> filter configuration is correctly set to include your target package.

I'm using the default filter set for "Java Profiling", which doesn't
appear to exclude my classes.

The "Test Availability" button returns true for "Java Profiling".

> Also try close the view and double click on the profiling analysis type in
> the profiling monitor view to reopen the view for data refresh.

That did it. Apparently, the profiling view doesn't automatically change
to the results of a successful profiling session. I did not know that.

Thanks for your help.

Regards,
Steve Emmerson
Re: 4.5.1 IAC profiling failure: org.eclipse.tptp.jvmti unavailable: JPIBootLoader [message #137148 is a reply to message #137077] Thu, 16 October 2008 13:12 Go to previous message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Yes. the view stays linked with the last opened resource. Unless you enabled
the 'Link with Viewer' button in the Profiling Monitor view that will auto
refresh the view with your selection in the Profiling Monitor view.

"Steven Emmerson" <emmerson@ucar.edu> wrote in message
news:80747352ed13dd3c818ab75ab304a658$1@www.eclipse.org...
> Eugene Chan wrote:
>
>> Does the session failed with no data displayed only? or any error in
>> console view?
>
> There are no error messages in the "Console" view.
>
> The "Execution Statistics" tab in the profiling perspective has the error
> message "No execution statistics is available for display. ...".
>
>> If the problem is about data not displayed in view, make sure the
>> profiling filter configuration is correctly set to include your target
>> package.
>
> I'm using the default filter set for "Java Profiling", which doesn't
> appear to exclude my classes.
>
> The "Test Availability" button returns true for "Java Profiling".
>
>> Also try close the view and double click on the profiling analysis type
>> in the profiling monitor view to reopen the view for data refresh.
>
> That did it. Apparently, the profiling view doesn't automatically change
> to the results of a successful profiling session. I did not know that.
>
> Thanks for your help.
>
> Regards,
> Steve Emmerson
>
Previous Topic:Empty Execution Flow, Call Tree
Next Topic:Trying to profile tomcat
Goto Forum:
  


Current Time: Mon Dec 22 17:19:53 GMT 2014

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

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