Error profiling Tomcat: JPIAgent can't load ACCollector [message #115504] |
Mon, 15 October 2007 13:07 |
Eclipse User |
|
|
|
Originally posted by: dittrich.alternate.de
Hi there,
when I try to profile a tomcat application with TPTP I get
the folliwing error message:
[Error: FATAL ERROR: JPIAgent can't load ACCollector]
and tomcat doesn't start.
I searched this list and found another posting about this by
Jim O'Neill - but his solution is not working for me.
I have installed and configured absolutely fresh copies of:
jdk-6u3-linux-i586.bin
apache-tomcat-6.0.14.tar.gz
eclipse-SDK-3.3.1-linux-gtk.tar.gz
wtp-R-2.0.1-20070926042742.zip
birt-report-framework-2_2_1.zip
dtp-sdk_1.5.1.zip
emf-sdo-xsd-SDK-2.3.1.zip
GEF-SDK-3.3.1.zip
tptp.runtime-TPTP-4.4.0.3.zip
Also I started with an empty workspace to make sure no
outdated versions of whatever hang around. I never had any
other TPTP version or so installed.
I configured the tomcat in
Window-Preferences-Server-Runtimes and created a web app to
launch with it. The server starts in normal and debugging
mode without problems.
But when I try to start the server in profiling mode, I get
to choose the profiling options (Execution time analysis
etc.) and after that tomcat fails to start with the error
message above.
Can anyone please help me with this problem?
Many thanks in advance
TD
|
|
|
|
Re: Error profiling Tomcat: JPIAgent can't load ACCollector [message #117099 is a reply to message #116829] |
Mon, 05 November 2007 08:22 |
Eclipse User |
|
|
|
Originally posted by: dittrich.alternate.de
Thanks for the hint, it actually did something - now I get a
different error message :)
Error occurred during initialization of VM
agent library failed to init: JPIBootLoader
I found an email from you about this problem and following
your instructions I have set up the following environment
before starting eclipse:
JAVA_PROFILER_HOME=/usr/local/eclipse/plugins/org.eclipse.tp tp.platform.jvmti.runtime_4.4.1.v200709261752/agent_files/li nux_ia32
LD_LIBRARY_PATH=/usr/local/eclipse/plugins/org.eclipse.tptp. platform.ac.linux_ia32_4.4.1.v200709261752/agent_controller/ lib:/usr/local/eclipse/plugins/org.eclipse.tptp.platform.jvm ti.runtime_4.4.1.v200709261752/agent_files/linux_ia32
TPTP_AC_HOME=/usr/local/eclipse/plugins/org.eclipse.tptp.pla tform.ac.linux_ia32_4.4.1.v200709261752/agent_controller
libJPIBootLoader.so is both in LD_LIBRARY_PATH and
JAVA_PROFILER_HOME...
I'm still very clueless :(
TD
Asaf Yaffe schrieb:
> Tobias Dittrich wrote:
>> Hi there,
>>
>> when I try to profile a tomcat application with TPTP I get the
>> folliwing error message:
>>
>> [Error: FATAL ERROR: JPIAgent can't load ACCollector]
>>
>> and tomcat doesn't start.
>>
>
> The error message suggest that the libACCollector.so library is not
> specified in the LD_LIBRARY_PATH environment variable. I am quite sure
> that this should be configured automatically by the IAC, but you may
> want to try to configure this yourself. This file should be located in
>
> eclipse/plugins/org.eclipse.tptp.platform.jvmti.runtime_<version >/agent_files/linux_<architecture>
>
>
> HTH,
> Asaf
>
|
|
|
|
Re: Error profiling Tomcat: JPIAgent can't load ACCollector [message #117176 is a reply to message #117125] |
Tue, 06 November 2007 10:02 |
Eclipse User |
|
|
|
Originally posted by: dittrich.alternate.de
Asaf Yaffe schrieb:
> Tobias Dittrich wrote:
>> Thanks for the hint, it actually did something - now I get a different
>> error message :)
>>
>> Error occurred during initialization of VM
>> agent library failed to init: JPIBootLoader
>>
>> I found an email from you about this problem and following your
>> instructions I have set up the following environment before starting
>> eclipse:
>>
>> JAVA_PROFILER_HOME=/usr/local/eclipse/plugins/org.eclipse.tp tp.platform.jvmti.runtime_4.4.1.v200709261752/agent_files/li nux_ia32
>>
>> LD_LIBRARY_PATH=/usr/local/eclipse/plugins/org.eclipse.tptp. platform.ac.linux_ia32_4.4.1.v200709261752/agent_controller/ lib:/usr/local/eclipse/plugins/org.eclipse.tptp.platform.jvm ti.runtime_4.4.1.v200709261752/agent_files/linux_ia32
>>
>> TPTP_AC_HOME=/usr/local/eclipse/plugins/org.eclipse.tptp.pla tform.ac.linux_ia32_4.4.1.v200709261752/agent_controller
>>
>>
>> libJPIBootLoader.so is both in LD_LIBRARY_PATH and JAVA_PROFILER_HOME...
>>
>> I'm still very clueless :(
>> TD
>>
>
> Please check that libJPIBootLoader (et al) are also in the system path
> (PATH).
>
> Also, can you please post the Java version you're using (use java
> -version)?
>
> Thanks,
> Asaf
I made my PATH look like this:
PATH=$JAVA_PROFILER_HOME:$TPTP_AC_HOME/bin:$PATH
Still the same error message :(
My Java version:
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode,
sharing)
This is the one and only jdk installed on my system, I
removed all other java versions to make sure no old version
gets in the way.
Thanks for your patience, Asaf.
TD
|
|
|
|
Re: Error profiling Tomcat: JPIAgent can't load ACCollector [message #117466 is a reply to message #117453] |
Wed, 07 November 2007 10:50 |
Eclipse User |
|
|
|
Originally posted by: dittrich.alternate.de
Asaf Yaffe schrieb:
> Tobias,
>
>> Thanks for your patience, Asaf.
>
> I should thank you. Don't give up on us :)
No way :) This is a really cool piece of software, I'm
longing to see it in action and use all the promising
features :)
>
> Can you please enable logging by doing the following and post the
> resulting log file to the newsgroup?
>
> To enable logging, define the following environment variables before
> starting Tomcat:
>
> export MARTINI_LOGGER_DIRECTORY=<path to an existing directory, e.g.,
> /tmp/log))
> export MARTINI_LOGGER_LOG_LEVEL=5
>
> Thanks,
> Asaf
>
Actually this was one of the first things I've tried to find
out what is going wrong. Unfortunately without any result -
no log file is created at all.
I thought this was due to the fact that the error says:
"Error occurred during initialization of VM". The VM is not
started at all, so the logger has no chance to do anything.
But I might be wrong.
Anyway I retried with the same result: no log file created :(
|
|
|
|
Re: Error profiling Tomcat: JPIAgent can't load ACCollector [message #117572 is a reply to message #117527] |
Thu, 08 November 2007 12:59 |
Eclipse User |
|
|
|
Originally posted by: dittrich.alternate.de
Asaf,
> Tobias,
>
>> No way :) This is a really cool piece of software, I'm longing to see
>> it in action and use all the promising features :)
>
> Always nice to get some positive feedback :)
>
>
>>
>> I thought this was due to the fact that the error says: "Error
>> occurred during initialization of VM". The VM is not started at all,
>> so the logger has no chance to do anything. But I might be wrong.
>>
>> Anyway I retried with the same result: no log file created :(
>
> The "error occurred..." error message is quite generic. It indicates
> that the JVM has failed to successfully load and initialize the specific
> JVMTI agent (the JVMTI Profiler runtime in our case). The fact that no
> log file is created suggests that the JVM was simply not able to load
> libJPIBootLoader.so.
>
> This failure can be caused by any of the following reasons:
> 1. libJPIBootLoader.so does not appear in LD_LIBRARY_PATH and PATH. We
> know this is not the case with your environment.
>
> 2. libJPIBootLoader.so is incompatible with your Linux environment/JVM
> and therefore cannot be loaded by the JVM (or maybe the file is corrupted?)
>
> To check the latter, please provide the following information (make sure
> to execute the commands after setting the correct environment for
> running Tomcat):
>
> - output of "uname -a"
>
> - output of "file $JAVA_PROFILER_HOME/libJPIBootLoader.so"
>
> - output of "file $JAVA_HOME/bin/java"
>
> - output of "ld -d -r $JAVA_PROFILER_HOME/libJPI.so"
>
>
> Thanks,
> Asaf
>
here you are:
dittrich@lxdittrich:~> uname -a
Linux lxdittrich 2.6.18.8-0.7-default #1 SMP Tue Oct 2 17:21:08 UTC 2007 i686 athlon i386 GNU/Linux
(Note: This is an OpenSuSe 10.2 with latest updates)
dittrich@lxdittrich:~> file $JAVA_PROFILER_HOME/libJPIBootLoader.so
/usr/local/eclipse/plugins/org.eclipse.tptp.platform.jvmti.r untime_4.4.1.v200709261752/agent_files/linux_ia32/libJPIBoot Loader.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
dittrich@lxdittrich:~> file $JAVA_HOME/bin/java
/usr/lib/java/bin/java: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped
dittrich@lxdittrich:~> ld -d -r $JAVA_PROFILER_HOME/libJPI.so
ld: attempted static link of dynamic object `/usr/local/eclipse/plugins/org.eclipse.tptp.platform.jvmti. runtime_4.4.1.v200709261752/agent_files/linux_ia32/libJPI.so '
|
|
|
|
Re: Error profiling Tomcat: JPIAgent can't load ACCollector [message #117942 is a reply to message #117880] |
Mon, 12 November 2007 08:37 |
Eclipse User |
|
|
|
Originally posted by: dittrich.alternate.de
Asaf Yaffe schrieb:
> Tobias,
>
>>> - output of "ld -d -r $JAVA_PROFILER_HOME/libJPI.so"
>>>
>
> Ooops. I meant: "ldd -d -r $JAVA_PROFILER_HOME/libJPI.so"
>
> Thanks,
> Asaf
>
dittrich@lxdittrich:~> ldd -d -r $JAVA_PROFILER_HOME/libJPI.so
linux-gate.so.1 => (0xffffe000)
libMartiniOSA.so =>
/usr/local/eclipse/plugins/org.eclipse.tptp.platform.jvmti.r untime_4.4.1.v200709261752/agent_files/linux_ia32/libMartini OSA.so
(0xb7edf000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7e99000)
libdl.so.2 => /lib/libdl.so.2 (0xb7e95000)
libc.so.6 => /lib/libc.so.6 (0xb7d67000)
/lib/ld-linux.so.2 (0x80000000)
|
|
|
|
Re: Error profiling Tomcat: JPIAgent can't load ACCollector [message #118643 is a reply to message #118517] |
Tue, 27 November 2007 07:36 |
Eclipse User |
|
|
|
Originally posted by: dittrich.alternate.de
Looks like this is a tough one... No more ideas anyone? :(
David Bosschaert schrieb:
> Tobias Dittrich wrote:
>> Asaf Yaffe schrieb:
>>> Tobias,
>>>
>>>>> - output of "ld -d -r $JAVA_PROFILER_HOME/libJPI.so"
>>>>>
>>>
>>> Ooops. I meant: "ldd -d -r $JAVA_PROFILER_HOME/libJPI.so"
>>>
>>> Thanks,
>>> Asaf
>>>
>> dittrich@lxdittrich:~> ldd -d -r $JAVA_PROFILER_HOME/libJPI.so
>> linux-gate.so.1 => (0xffffe000)
>> libMartiniOSA.so =>
>> /usr/local/eclipse/plugins/org.eclipse.tptp.platform.jvmti.r untime_4.4.1.v200709261752/agent_files/linux_ia32/libMartini OSA.so
>> (0xb7edf000)
>> libpthread.so.0 => /lib/libpthread.so.0 (0xb7e99000)
>> libdl.so.2 => /lib/libdl.so.2 (0xb7e95000)
>> libc.so.6 => /lib/libc.so.6 (0xb7d67000)
>> /lib/ld-linux.so.2 (0x80000000)
>
> Just to let you know that I'm experiencing exactly the same problem as
> Tobias describes. I'm using the
> tptp.runtime.allInOne.linux.gtk.x86-TPTP-4.4.0.3.zip TPTP distribution on
>
> $ uname -a
> Linux 2.6.15-23-386 #1 PREEMPT Tue May 23 13:49:40 UTC 2006 i686
> GNU/Linux (ubuntu)
>
> Best regards,
>
> David Bosschaert
|
|
|
|
|
Re: Error profiling Tomcat: JPIAgent can't load ACCollector [Urgent] [message #121052 is a reply to message #120852] |
Sat, 19 January 2008 03:50 |
Zouaoui Anis Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Hi all,
could you please at least give me the last version successfully used and
tested under Red Hat Enterprise Linux 4.4 ?
I'm very disappointed. I hoped using TPTP in my project (since I'm
eclipse rcp developper), however, this serious and unsolved issue is
blocking me. I have no idea about the problem evoqued below.
Any news, suggestion is welcome !
Regards,
Anis
anis a écrit :
> Asaf Yaffe a écrit :
>> Tobias,
>>
>> Have you tried using the standalone Agent Controller instead of IAC?
>>
>> Thanks,
>> Asaf
>>
>
> Hi All,
> I'm using standalone Agent, I've tried the 4.4.1, 4.5.0 version on
> linux-ia32
>
> I have the same error :
> Error: FATAL ERROR: JPIAgent can't load ACCollector.
>
> The ACCollector.so is visible in the LD_LIBRARY_PATH and the PATH and
> all dependencies seems to be ok.
>
> Tobias, did you found a solution for your issue ?
>
> Asaf, any suggestions ? which version of the AC has been successfully
> used under linux ?
>
> thank by advance for you help and contribution to this great tool.
>
> Regards,
> Anis
|
|
|
Re: Error profiling Tomcat: JPIAgent can't load ACCollector [message #123233 is a reply to message #118643] |
Fri, 15 February 2008 11:28 |
Eclipse User |
|
|
|
Originally posted by: joerg.eschke.net
i had exactly the same problem.
During installation of tptp the library symlinks in
org.eclipse.tptp.platform.ac.linux_ia32_4.4.1.v200709261752/ agent_controller/lib
were se tup as files instead of symlinks.
used
for i in `ls *.so.4.4.0`;do bas=`echo $i|awk -F. '{print
$1}'`;rm -f "$bas.so.4";
rm -f "$bas.so";ln -s "$bas.so.4.4.0" "$bas.so.4";ln -s "$bas.so.4" "$bas.so" ;done
to fix it.
Tobias Dittrich wrote:
> Looks like this is a tough one... No more ideas anyone? :(
>
> David Bosschaert schrieb:
>> Tobias Dittrich wrote:
>>> Asaf Yaffe schrieb:
>>>> Tobias,
>>>>
>>>>>> - output of "ld -d -r $JAVA_PROFILER_HOME/libJPI.so"
>>>>>>
>>>>
>>>> Ooops. I meant: "ldd -d -r $JAVA_PROFILER_HOME/libJPI.so"
>>>>
>>>> Thanks,
>>>> Asaf
>>>>
>>> dittrich@lxdittrich:~> ldd -d -r $JAVA_PROFILER_HOME/libJPI.so
>>> linux-gate.so.1 => (0xffffe000)
>>> libMartiniOSA.so =>
>>> /usr/local/eclipse/plugins/org.eclipse.tptp.platform.jvmti.r untime_4.4.1.v200709261752/agent_files/linux_ia32/libMartini OSA.so
>>> (0xb7edf000)
>>> libpthread.so.0 => /lib/libpthread.so.0 (0xb7e99000)
>>> libdl.so.2 => /lib/libdl.so.2 (0xb7e95000)
>>> libc.so.6 => /lib/libc.so.6 (0xb7d67000)
>>> /lib/ld-linux.so.2 (0x80000000)
>>
>> Just to let you know that I'm experiencing exactly the same problem as
>> Tobias describes. I'm using the
>> tptp.runtime.allInOne.linux.gtk.x86-TPTP-4.4.0.3.zip TPTP distribution on
>>
>> $ uname -a
>> Linux 2.6.15-23-386 #1 PREEMPT Tue May 23 13:49:40 UTC 2006 i686
>> GNU/Linux (ubuntu)
>>
>> Best regards,
>>
>> David Bosschaert
|
|
|
Re: Error profiling Tomcat: JPIAgent can't load ACCollector [message #123532 is a reply to message #117572] |
Wed, 20 February 2008 14:13 |
Eclipse User |
|
|
|
Originally posted by: kgbjed.gmail.com
Hi,
I am using eclipse and likewise, I believe it is a fabulous product but I
suffer from this very issue and when I get to this point I get the
following results:
kirber@kirk:~$ ldd -d -r $JAVA_PROFILER_HOME/libJPI.so
not a dynamic executable
All of the previous variables seem to work the same as Tobias' with the
exception of this one!
I would appreciate any feedback possible. I am new to Eclipse, TPTP and
Linux(Ubuntu).
Thanks in advance
|
|
|
|
Powered by
FUDForum. Page generated in 0.06350 seconds