Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » SUSE/SLES libpiAgent.so
SUSE/SLES libpiAgent.so [message #141254] Mon, 16 March 2009 12:47 Go to next message
Rob Davies is currently offline Rob DaviesFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,

I'm trying to get Eclipse TPTP to profile an application running on
Weblogic 9.2. Here is the history of what I've done so far:

1> Installed and configured Agent Controller
2> Created test app called "test.jar" and ran it as follows:
java '-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf' -jar
/home/support/test.jar
Which works and I'm able to see it in Eclipse to profile.
3> Tried to add the -agentlib switch to Weblogic startup and it fails. Noticed
on newsgroups that I should use -XrunpiAgent. That didn't work either.
4> Tested test.jar the switch -XrunpiAgent and it failed "could not find the
agent library"
5> Ran strace "strace java -XrunpiAgent -jar /home/support/test.jar" which
revealed that the file libpiAgent.so couldn't be found. I've looked in
/usr/lib which from what I gather is it's normal home and it's not there.

My questions are:

Q1 >Does -XrunpiAgent replace -agentlib? if so what are the differences
and what does each do?
Q2> Where can I get libpiAgent.so for SUSE from?
Q3> Given a correctly configured environment should step 4 (above) work?
Q4> Whats the difference between RAServer and ACServer? I'm currently using AC.

Thanks in advance,

Rob

Server OS: SLES 10.1
JRE : 1.5.0_14
TPTP : 4.5.2
Weblogic : 9.2
Re: SUSE/SLES libpiAgent.so [message #141532 is a reply to message #141254] Mon, 30 March 2009 17:02 Go to previous message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Hi Rob,

You do not have the profiling agent libraries in your system environment
varialble setup for the profiler to be loaded.

Please refer to the following documentation no how and what variables to
setup:
http://www.eclipse.org/tptp/home/downloads/4.5.0/documents/i nstallguide/AgentController45.html

To answer you questions:
1. -XrunpiAgent does not replace -agentlib, they are used for different
JVM. -XrunpiAgent is for JVM 1.4.2 and below while -agentlib is targeted for
JVM 1.5+.
2. The libpiAgent.so should be packaged under the Agent Controller install,
under the plugins folder.
3. you have to make sure the server process picks up the enviornment
varilable setup for the libraries to be loaded successfully.
4. They are actually the same.

Eugene


"Rob Davies" <rob.davies@softwareconsult.co.uk> wrote in message
news:d101c0f9382632620bfa4d6aa0f84ecf$1@www.eclipse.org...
> Hi,
>
> I'm trying to get Eclipse TPTP to profile an application running on
> Weblogic 9.2. Here is the history of what I've done so far:
>
> 1> Installed and configured Agent Controller
> 2> Created test app called "test.jar" and ran it as follows:
> java '-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf' -jar
> /home/support/test.jar
> Which works and I'm able to see it in Eclipse to profile.
> 3> Tried to add the -agentlib switch to Weblogic startup and it fails.
> Noticed on newsgroups that I should use -XrunpiAgent. That didn't work
> either.
> 4> Tested test.jar the switch -XrunpiAgent and it failed "could not find
> the agent library"
> 5> Ran strace "strace java -XrunpiAgent -jar /home/support/test.jar" which
> revealed that the file libpiAgent.so couldn't be found. I've looked in
> /usr/lib which from what I gather is it's normal home and it's not there.
>
> My questions are:
>
> Q1 >Does -XrunpiAgent replace -agentlib? if so what are the differences
> and what does each do?
> Q2> Where can I get libpiAgent.so for SUSE from?
> Q3> Given a correctly configured environment should step 4 (above) work?
> Q4> Whats the difference between RAServer and ACServer? I'm currently
> using AC.
>
> Thanks in advance,
>
> Rob
>
> Server OS: SLES 10.1
> JRE : 1.5.0_14
> TPTP : 4.5.2
> Weblogic : 9.2
>
>
Previous Topic:Directory Monitor using TPTP
Next Topic:tptp multiple client connect
Goto Forum:
  


Current Time: Thu Apr 18 20:38:14 GMT 2024

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

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

Back to the top