Having problem in configuring the Yourkit agent for Jetty se

Questions about YourKit Java Profiler
Post Reply
venkatesh.nayak
Posts: 5
Joined: Mon Mar 21, 2016 10:02 am

Having problem in configuring the Yourkit agent for Jetty se

Post by venkatesh.nayak »

Hi,

I have installed the yourkit agent in my server which is an AIX machine with Jetty as Web Server.
i have added the below arguments to the Server JVm startup command but getting below specified error.
Starting Jetty: JVMJ9TI001E Agent library /eos/yjp/bin/aix-ppc-64/libyjpagent.so could not be opened (Could not load module /eos/yjp/bin/aix-ppc-64/libyjpagent.so.
System error: Exec format error)
JVMJ9TI065E Agent initialization function Agent_OnLoad not found in library /eos/yjp/bin/aix-ppc-64/libyjpagent.so
JVMJ9VM015W Initialization error for library j9jvmti28(-3): JVMJ9VM009E J9VMDllMain failed

and the argument that i have added to the Server Startup script is -agentpath:/eos/yjp/bin/aix-ppc-64/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,delay=10000,sessionname=Jetty

can anybody help me on that

also can anyone tell me where exactly i need to add this argumets is it in JAVA_OPTIONS/EXTRA_OPTIONS or in a separate java argument that i need to create for this.

Regards,
Venkatesh Nayak
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Having problem in configuring the Yourkit agent for Jett

Post by Anton Katilin »

Hello Venkatesh
also can anyone tell me where exactly i need to add this argumets is it in JAVA_OPTIONS/EXTRA_OPTIONS or in a separate java argument that i need to create for this.
According to the error message, you specify -agentpath in appropriate place. The problem is that the JVM cannot load the agent .so for some reason. Perhaps it's a version or bitness mismatch or unsatisfied dependencies.

What is the output of the following commands in console:

uname -a

java -agentpath:/eos/yjp/bin/aix-ppc-64/libyjpagent.so -version

Best regards,
Anton
venkatesh.nayak
Posts: 5
Joined: Mon Mar 21, 2016 10:02 am

Re: Having problem in configuring the Yourkit agent for Jett

Post by venkatesh.nayak »

Hi Anton,

Thanks for the quick Reply.

output of the following commands in console is AIX 1 7 00F92BBD4C00

and could you please let me know where exactly in shell script i need to add the arguments.

Regards,
Venkatesh Nayak
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Having problem in configuring the Yourkit agent for Jett

Post by Anton Katilin »

output of the following commands in console is AIX 1 7 00F92BBD4C00
This is for uname.
Could you please also provide the second command's output.
and could you please let me know where exactly in shell script i need to add the arguments.
Please re-read my previous post. It looks like you already add it properly. The problem is different, it's not with _where_ you specify it, but with _what_ agent you specify.
venkatesh.nayak
Posts: 5
Joined: Mon Mar 21, 2016 10:02 am

Re: Having problem in configuring the Yourkit agent for Jett

Post by venkatesh.nayak »

Hi ,

I'm getting "not Found" error for the below specified command.
java -agentpath:/eos/yjp/bin/aix-ppc-64/libyjpagent.so -version

does it mean that the path which i have set is not proper ??

Regards,
Venkatesh Nayak
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Having problem in configuring the Yourkit agent for Jett

Post by Anton Katilin »

Please specify a full path to "java".
venkatesh.nayak
Posts: 5
Joined: Mon Mar 21, 2016 10:02 am

Re: Having problem in configuring the Yourkit agent for Jett

Post by venkatesh.nayak »

i have specified the full path , still getting same error.

the agent i'm using is yjp-2016.02

Regards,
Venkatesh Nayak
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Having problem in configuring the Yourkit agent for Jett

Post by Anton Katilin »

I'm talking about the full path to Java in the command

java -agentpath:/eos/yjp/bin/aix-ppc-64/libyjpagent.so -version

... which, as you wrote, results in "Not found" error.

Please replace "java" in the above command with a full path to java executable that is used to run Jetty.

Please provide full output of the command.
venkatesh.nayak
Posts: 5
Joined: Mon Mar 21, 2016 10:02 am

Re: Having problem in configuring the Yourkit agent for Jett

Post by venkatesh.nayak »

I got the problem now
it is because of i have used 64 bit installation agent, which should have been 32 bit
i have changed it now
working fine.
thank for the help...!!


Regards,
Venkatesh Nayak
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Having problem in configuring the Yourkit agent for Jett

Post by Anton Katilin »

Hi Venkatesh.

Thank you for the notification.
Post Reply