Error profiling Tomcat: JPIAgent can't load ACCollector [message #115504] |
Mon, 15 October 2007 09: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 #117572 is a reply to message #117527] |
Thu, 08 November 2007 07: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 [Urgent] [message #121052 is a reply to message #120852] |
Fri, 18 January 2008 22:50   |
Eclipse User |
|
|
|
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 [Urgent] [message #123715 is a reply to message #121052] |
Thu, 21 February 2008 11:46  |
Eclipse User |
|
|
|
TPTP runtime launches tomcat with a command line similar to:
-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf:execd etails=true
....snip... org.apache.catalina.startup.Bootstrap start
Try it in a shell for any testcase and it will fail with the same error
- can't init JPIBootLoader.
I think the fix is trivial although I'm not sure you can do it without
rebuilding tptp runtime - just add quotes for -agentlib or escape ';', i.e.
" -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf:execd etails=true "
I run it on ubuntu.
--
Vsevolod Sandomirskiy
|
|
|
Powered by
FUDForum. Page generated in 0.08157 seconds