Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Profiling a web application with wtp
Profiling a web application with wtp [message #127543] Fri, 28 March 2008 22:16 Go to next message
Christoph Held is currently offline Christoph HeldFriend
Messages: 20
Registered: July 2009
Junior Member
Hello,

i have installed Eclipse3.3, TPTP, WTP from the europa update site on a
Linux pc. I also installed the agent controller (because the IAC did not
work). I verified the setup with a profiling session of a local plugin,
which worked fine.

When i start the tomcat from the WTP server view in profiling mode, I get
the following error in the console view:

/bin/bash: mc: line 1: syntax error: unexpected end of file
/bin/bash: error importing function definition for `mc'
Error occurred during initialization of VM
Could not find agent library on the library path or in the local directory:
JPIBootLoader

Thanks for any suggestion,

Best regards

Christoph
Re: Profiling a web application with wtp [message #127555 is a reply to message #127543] Fri, 28 March 2008 22:38 Go to previous messageGo to next message
Christoph Held is currently offline Christoph HeldFriend
Messages: 20
Registered: July 2009
Junior Member
Hello,

I guess it is the same problem as asked before: 'Profiling Tomcat and WTP
project'

The suggested Link:

http://www.eclipse.org/tptp/platform/documents/tutorials/jvm ti/Java_Application_Profiling_using_TPTP-v2.0.html#3.3

did not help me so much, because I am launching tomcat with the 'profile'
button and not from the command line.

Best regards,

Christoph

Christoph Held wrote:

> Hello,
>
> i have installed Eclipse3.3, TPTP, WTP from the europa update site on a
> Linux pc. I also installed the agent controller (because the IAC did not
> work). I verified the setup with a profiling session of a local plugin,
> which worked fine.
>
> When i start the tomcat from the WTP server view in profiling mode, I get
> the following error in the console view:
>
> /bin/bash: mc: line 1: syntax error: unexpected end of file
> /bin/bash: error importing function definition for `mc'
> Error occurred during initialization of VM
> Could not find agent library on the library path or in the local
> directory: JPIBootLoader
>
> Thanks for any suggestion,
>
> Best regards
>
> Christoph
Re: Profiling a web application with wtp [message #127581 is a reply to message #127555] Sun, 30 March 2008 13:35 Go to previous messageGo to next message
Christoph Held is currently offline Christoph HeldFriend
Messages: 20
Registered: July 2009
Junior Member
Christoph Held wrote:

I set all the environment variables in .bashrc

export TPTP_AC_HOME=/home/held/bin/agent
export
JAVA_PROFILER_HOME=${TPTP_AC_HOME}/plugins/org.eclipse.tptp. javaprofiler
export LD_LIBRARY_PATH=${JAVA_PROFILER_HOME}:${TPTP_AC_HOME}/lib
export PATH=$JAVA_PROFILER_HOME:$TPTP_AC_HOME/bin:$PATH

It worked a bit, because now I get a different error message:

Error occurred during initialization of VM
agent library failed to init: JPIBootLoader

********************************************************

Below is some diagnostic code I found on another thread:
> - output of "uname -a"

Linux dellnotebook 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC i686
i686 i386 GNU/Linux (OpenSuse 10.3)

> - output of "file $JAVA_PROFILER_HOME/libJPIBootLoader.so"

/home/held/bin/agent/plugins/org.eclipse.tptp.javaprofiler/l ibJPIBootLoader.so:
ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped

> - output of "file $JAVA_HOME/bin/java"

/usr/lib/jvm/jre/bin/java: Bourne-Again shell script text

> - output of "ldd -d -r $JAVA_PROFILER_HOME/libJPI.so"

linux-gate.so.1 => (0xffffe000)
libMartiniOSA.so
=> /home/held/bin/agent/plugins/org.eclipse.tptp.javaprofiler/l ibMartiniOSA.so
(0xb7eca000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7e9d000)
libdl.so.2 => /lib/libdl.so.2 (0xb7e99000)
libc.so.6 => /lib/libc.so.6 (0xb7d66000)
/lib/ld-linux.so.2 (0x80000000)
******************************************************

One last remark: The IAC never worked on any Suse Linux (10.1-10.3). I
allways get this error in the error log:

!ENTRY org.eclipse.tptp.platform.iac.administrator 4 0 2008-03-28
21:59:28.126
!MESSAGE Integrated Agent Controller(IAC) was not found. Make sure you have
IAC installed.

Best regards,

Christoph

> Hello,
>
> I guess it is the same problem as asked before: 'Profiling Tomcat and WTP
> project'
>
> The suggested Link:
>
>
http://www.eclipse.org/tptp/platform/documents/tutorials/jvm ti/Java_Application_Profiling_using_TPTP-v2.0.html#3.3
>
> did not help me so much, because I am launching tomcat with the 'profile'
> button and not from the command line.
>
> Best regards,
>
> Christoph
>
> Christoph Held wrote:
>
>> Hello,
>>
>> i have installed Eclipse3.3, TPTP, WTP from the europa update site on a
>> Linux pc. I also installed the agent controller (because the IAC did not
>> work). I verified the setup with a profiling session of a local plugin,
>> which worked fine.
>>
>> When i start the tomcat from the WTP server view in profiling mode, I get
>> the following error in the console view:
>>
>> /bin/bash: mc: line 1: syntax error: unexpected end of file
>> /bin/bash: error importing function definition for `mc'
>> Error occurred during initialization of VM
>> Could not find agent library on the library path or in the local
>> directory: JPIBootLoader
>>
>> Thanks for any suggestion,
>>
>> Best regards
>>
>> Christoph
Re: Profiling a web application with wtp [message #127631 is a reply to message #127581] Mon, 31 March 2008 08:00 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
Christoph Held wrote:
> Christoph Held wrote:
>
> I set all the environment variables in .bashrc
>
> export TPTP_AC_HOME=/home/held/bin/agent
> export
> JAVA_PROFILER_HOME=${TPTP_AC_HOME}/plugins/org.eclipse.tptp. javaprofiler
> export LD_LIBRARY_PATH=${JAVA_PROFILER_HOME}:${TPTP_AC_HOME}/lib
> export PATH=$JAVA_PROFILER_HOME:$TPTP_AC_HOME/bin:$PATH
>
> It worked a bit, because now I get a different error message:
>
> Error occurred during initialization of VM
> agent library failed to init: JPIBootLoader
>

Please specify the Java version you are using (use java -version)

Also, please enable logging by defining the following environment variables:
export MARTINI_LOGGER_DIRECTORY=<path to an existing directory>
export MARTINI_LOGGER_LOG_LEVEL=5
Then, reproduce the failure and post the created log file (named
MLog*.log) here.

Thanks,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Re: Profiling a web application with wtp [message #127757 is a reply to message #127631] Tue, 01 April 2008 19:58 Go to previous message
Christoph Held is currently offline Christoph HeldFriend
Messages: 20
Registered: July 2009
Junior Member
Hello,

thanks for the answer. Somehow my last response got lost.

Asaf Yaffe wrote:

> Please specify the Java version you are using (use java -version)

java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode)


> Also, please enable logging by defining the following environment
> variables: export MARTINI_LOGGER_DIRECTORY=<path to an existing directory>
> export MARTINI_LOGGER_LOG_LEVEL=5
> Then, reproduce the failure and post the created log file (named
> MLog*.log) here.

Sorry, no log file was created.

Best regards,

Christoph
Previous Topic:Agent Controller is unavailable . . .
Next Topic:Running AGR tests in standard mode results in permgen error
Goto Forum:
  


Current Time: Fri Apr 19 21:24:07 GMT 2024

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

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

Back to the top