Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » newbie question: getting started, problems with piAgent
newbie question: getting started, problems with piAgent [message #75044] Sat, 24 June 2006 15:46 Go to next message
Eclipse UserFriend
Originally posted by: mijason.umich.edu

I have Eclipse 3.2RC7 and the latest version of tptp installed via
the find/install tool in Eclipse. When I try to profile an
application, I get the error:

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

I've searched on the web and have not found a solution to this problem.

Can someone point me in the right direction?
Re: newbie question: getting started, problems with piAgent [message #75068 is a reply to message #75044] Sat, 24 June 2006 20:59 Go to previous messageGo to next message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
Jason Miller wrote:
> I have Eclipse 3.2RC7 and the latest version of tptp installed via
> the find/install tool in Eclipse. When I try to profile an
> application, I get the error:
>
> Error occurred during initialization of VM
> Could not find agent library on the library path or in the local
> directory: piAgent
>
> I've searched on the web and have not found a solution to this problem.
>
> Can someone point me in the right direction?
>
>

"on the library path" ... are you using Linux? If so, do you have your
LD_LIBRARY_PATH set to the <RAC_installation_directory>/lib?? For
Windows it would look for piAgent.dll, and that would be in the
<RAC_installation_directory>/bin with the other executables; in Linux
the libs go in the ../lib area, and LD_LIBRARY_PATH is required to find
libpiAgent.so.

If this doesn't help, tell me Platform/OS, and which of the two sites
you got the find/install tool to update from (one is the "standard
Eclipse site" under some name... the one you *want* is the Callisto
Discovery site, as 3.2RC7 is a Callisto development release).


--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: newbie question: getting started, problems with piAgent [message #75081 is a reply to message #75068] Sat, 24 June 2006 22:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mijason.umich.edu

On Sat, 24 Jun 2006 13:59:57 -0700, Randy D. Smith wrote:

>
> "on the library path" ... are you using Linux? If so, do you have your
> LD_LIBRARY_PATH set to the <RAC_installation_directory>/lib?? For
> Windows it would look for piAgent.dll, and that would be in the
> <RAC_installation_directory>/bin with the other executables; in Linux
> the libs go in the ../lib area, and LD_LIBRARY_PATH is required to find
> libpiAgent.so.
>
> If this doesn't help, tell me Platform/OS, and which of the two sites
> you got the find/install tool to update from (one is the "standard
> Eclipse site" under some name... the one you *want* is the Callisto
> Discovery site, as 3.2RC7 is a Callisto development release).

I'm using Sun's JDK 1.6 beta on Linux and I grabbed TDTD from the Callisto
Discovery site. The libpiAgent.so file is in:

eclipse/plugins/org.eclipse.hyades.execution.linux.x86_4.2.0 .v200606131519

I've added this to the LD_LIBRARY_PATH and am still getting the same
results.

Thanks for your help!
Re: newbie question: getting started, problems with piAgent [message #75098 is a reply to message #75081] Sun, 25 June 2006 15:54 Go to previous messageGo to next message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
Jason Miller wrote:
> On Sat, 24 Jun 2006 13:59:57 -0700, Randy D. Smith wrote:
>
>
>>"on the library path" ... are you using Linux? If so, do you have your
>>LD_LIBRARY_PATH set to the <RAC_installation_directory>/lib?? For
>>Windows it would look for piAgent.dll, and that would be in the
>><RAC_installation_directory>/bin with the other executables; in Linux
>>the libs go in the ../lib area, and LD_LIBRARY_PATH is required to find
>>libpiAgent.so.
>>
>>If this doesn't help, tell me Platform/OS, and which of the two sites
>>you got the find/install tool to update from (one is the "standard
>>Eclipse site" under some name... the one you *want* is the Callisto
>>Discovery site, as 3.2RC7 is a Callisto development release).
>
>
> I'm using Sun's JDK 1.6 beta on Linux and I grabbed TDTD from the Callisto
> Discovery site. The libpiAgent.so file is in:
>
> eclipse/plugins/org.eclipse.hyades.execution.linux.x86_4.2.0 .v200606131519
>
> I've added this to the LD_LIBRARY_PATH and am still getting the same
> results.
>
> Thanks for your help!

Sorry, I'm used to using the agent controller via the separate package
(connecting to the "RAC" via localhost:10002), not as used to the IAC
(integrated agent controller... going through "local direct
connection"). Hmmm, the IAC shouldn't require the LD_LIBRARY_PATH I
didn't think. It "knows" where its agents are!

That makes me think it's the Java 1.6... I think 1.6 is JVMTI-only, and
piAgent is a JVMPI agent. If you're bound to Java 1.6, you'll probably
want to get the JVMTI tech preview (< http://www.eclipse.org/tptp >) =>
Downloads => 4.2.0 => scroll down and find the JVMTI tech preview. If
you can go to Java 1.5 instead, what you have should work.

--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: newbie question: getting started, problems with piAgent [message #75115 is a reply to message #75098] Sun, 25 June 2006 17:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mijason.umich.edu

On Sun, 25 Jun 2006 08:54:26 -0700, Randy D. Smith
wrote:

> Sorry, I'm used to using the agent controller via the separate package
> (connecting to the "RAC" via localhost:10002), not as used to the IAC
> (integrated agent controller... going through "local direct
> connection"). Hmmm, the IAC shouldn't require the LD_LIBRARY_PATH I
> didn't think. It "knows" where its agents are!
>
> That makes me think it's the Java 1.6... I think 1.6 is JVMTI-only, and
> piAgent is a JVMPI agent. If you're bound to Java 1.6, you'll probably
> want to get the JVMTI tech preview (< http://www.eclipse.org/tptp >) =>
> Downloads => 4.2.0 => scroll down and find the JVMTI tech preview. If
> you can go to Java 1.5 instead, what you have should work.

Well, I reverted to Java 1.5 and freshly installed Eclipse 3.2RC7 with
tptp via the install/update tool. It seems like Eclipse is still giving
me the error:

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

Is there anything else that I should try?

Thanks again.
Re: newbie question: getting started, problems with piAgent [message #75132 is a reply to message #75115] Sun, 25 June 2006 20:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mijason.umich.edu

On Sun, 25 Jun 2006 13:47:18 -0400, Jason Miller wrote:

> Error occurred during initialization of VM
> Could not find agent library on the library path or in the local
> directory: piAgent
>
> Is there anything else that I should try?
>
> Thanks again.

Here's another update. I downloaded the RAC to try starting the agent
directly. When I tried to do this, it gave me an error indicating that
libstdc++-6.2 was missing. I corrected this and have been able to run the
agent and the profiler under Java 1.5. With Java 1.6, I am getting the
following error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )

This is with the "New Java Profiler" installed (with JVMTI).

While it is encouraging that the profiler is now working with 1.5, I would
be really happy if I could get it to work with 1.6.
Re: newbie question: getting started, problems with piAgent [message #75148 is a reply to message #75115] Sun, 25 June 2006 23:57 Go to previous messageGo to next message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
Jason Miller wrote:
> On Sun, 25 Jun 2006 08:54:26 -0700, Randy D. Smith
> wrote:
>
>
>>Sorry, I'm used to using the agent controller via the separate package
>>(connecting to the "RAC" via localhost:10002), not as used to the IAC
>>(integrated agent controller... going through "local direct
>>connection"). Hmmm, the IAC shouldn't require the LD_LIBRARY_PATH I
>>didn't think. It "knows" where its agents are!
>>
>>That makes me think it's the Java 1.6... I think 1.6 is JVMTI-only, and
>>piAgent is a JVMPI agent. If you're bound to Java 1.6, you'll probably
>>want to get the JVMTI tech preview (< http://www.eclipse.org/tptp >) =>
>>Downloads => 4.2.0 => scroll down and find the JVMTI tech preview. If
>>you can go to Java 1.5 instead, what you have should work.
>
>
> Well, I reverted to Java 1.5 and freshly installed Eclipse 3.2RC7 with
> tptp via the install/update tool. It seems like Eclipse is still giving
> me the error:
>
> Error occurred during initialization of VM
> Could not find agent library on the library path or in the local
> directory: piAgent
>
> Is there anything else that I should try?
>
> Thanks again.
>

You're sure the Eclipse is "seeing" the 1.5 JVM, right?

You're on Linux, but what platform? If we're dealing with Intel IA32,
I'm terribly confused as to what is wrong. If you're on a 64-bit
platform, then we're seeing a mismatch in libraries due to support not
being there!

--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: newbie question: getting started, problems with piAgent [message #75165 is a reply to message #75132] Mon, 26 June 2006 00:02 Go to previous messageGo to next message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
Jason Miller wrote:
> On Sun, 25 Jun 2006 13:47:18 -0400, Jason Miller wrote:
>
>
>>Error occurred during initialization of VM
>>Could not find agent library on the library path or in the local
>>directory: piAgent
>>
>>Is there anything else that I should try?
>>
>>Thanks again.
>
>
> Here's another update. I downloaded the RAC to try starting the agent
> directly. When I tried to do this, it gave me an error indicating that
> libstdc++-6.2 was missing. I corrected this and have been able to run the
> agent and the profiler under Java 1.5. With Java 1.6, I am getting the
> following error:
>
> Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268 )
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
>
> This is with the "New Java Profiler" installed (with JVMTI).
>
> While it is encouraging that the profiler is now working with 1.5, I would
> be really happy if I could get it to work with 1.6.

Glad you were able to get it working!

That's a real bummer that something working with Java 1.5 would die such
a horrible death with Java 1.6... I would have thought they'd have a
better backward compatibility story! I assume all it will take is
rebuilding JVMTI with Java 1.6 ... but then JVMTI is *already* an
anomaly in it's being built with Java 1.5... the rest of TPTP is
intentionally built with Java 1.4.2 to maintain compatibility for all
our consuming products.


--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: newbie question: getting started, problems with piAgent [message #75183 is a reply to message #75081] Mon, 26 June 2006 16:16 Go to previous messageGo to next message
Guru Nagarajan is currently offline Guru NagarajanFriend
Messages: 45
Registered: July 2009
Member
Jason,
The current TPTP Profiler supports what is the JVMPI interface.
This JVMPI interface is not supported in Java 1.6, it is supported for
compatibility in Java 1.5.
Java 1.5 and 1.6 have a new interface for profiling and is called JVMTI.
The "New Java Profiler" offered as a technology preview supports the
JVMTI interface and has been validated against Java 1.5 based VM's. The
new java profiler has not been validated against Java 1.6 - we plan on
validating the New Java profiler in the upcoming releases.

-Guru


Jason Miller wrote:
> On Sat, 24 Jun 2006 13:59:57 -0700, Randy D. Smith wrote:
>
>> "on the library path" ... are you using Linux? If so, do you have your
>> LD_LIBRARY_PATH set to the <RAC_installation_directory>/lib?? For
>> Windows it would look for piAgent.dll, and that would be in the
>> <RAC_installation_directory>/bin with the other executables; in Linux
>> the libs go in the ../lib area, and LD_LIBRARY_PATH is required to find
>> libpiAgent.so.
>>
>> If this doesn't help, tell me Platform/OS, and which of the two sites
>> you got the find/install tool to update from (one is the "standard
>> Eclipse site" under some name... the one you *want* is the Callisto
>> Discovery site, as 3.2RC7 is a Callisto development release).
>
> I'm using Sun's JDK 1.6 beta on Linux and I grabbed TDTD from the Callisto
> Discovery site. The libpiAgent.so file is in:
>
> eclipse/plugins/org.eclipse.hyades.execution.linux.x86_4.2.0 .v200606131519
>
> I've added this to the LD_LIBRARY_PATH and am still getting the same
> results.
>
> Thanks for your help!
Re: newbie question: getting started, problems with piAgent [message #75233 is a reply to message #75183] Tue, 27 June 2006 06:17 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
Jason,

Here's the link to the New Java Profiler User's Guide:
http://www.eclipse.org/tptp/platform/documents/tutorials/jvm ti/Java_Application_Profiling_using_TPTP-v2.0.html

The profiler is included in the TPTP 4.2 rc5 release:
http://www.eclipse.org/tptp/home/downloads/drops/TPTP-4.2.0- 200606190100.html

Best regards,
Asaf
Re: newbie question: getting started, problems with piAgent [message #75250 is a reply to message #75165] Tue, 27 June 2006 06:32 Go to previous message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
Jason,

Early tests we have performed with the JVMTI Profiler on Sun JRE 1.6.0
Beta 2 have shown that there are some issues. Note, however, that Java 6
is currently is a "beta" phase and therefore may have other issues which
are not related to the JVMTI profiler itself.

I will open an Enhancement Request for adding Java 6 support to TPTP.
In the meantime, use Java 5 to work with the TPTP profilers (both JVMPI
and the JVMTI profilers).

Best regards,
Asaf
Previous Topic:Profiling WTP Generic Servers
Next Topic:AGR: Specifying workspace location when executing test
Goto Forum:
  


Current Time: Thu Apr 25 00:08:15 GMT 2024

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

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

Back to the top