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

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
>

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)?

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

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 :)

> 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):

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
>

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