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 |
Eclipse User |
|
|
|
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 |
Randy D. Smith 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 |
Eclipse User |
|
|
|
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 |
Randy D. Smith 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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Randy D. Smith 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 #75183 is a reply to message #75081] |
Mon, 26 June 2006 16:16 |
Guru Nagarajan 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!
|
|
| | |
Goto Forum:
Current Time: Sat Oct 19 19:46:04 GMT 2024
Powered by FUDForum. Page generated in 0.05263 seconds
|