|
Re: Profiling a web application with wtp [message #127555 is a reply to message #127543] |
Fri, 28 March 2008 22:38 |
Christoph Held 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 |
Christoph Held 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03421 seconds