Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Having problem in configuring the Yourkit agent for Jetty se

Moderators: Vladimir Kondratyev, Anton Katilin

Having problem in configuring the Yourkit agent for Jetty se

Postby venkatesh.nayak » Mon Mar 21, 2016 10:11 am

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
venkatesh.nayak
 
Posts: 5
Joined: Mon Mar 21, 2016 10:02 am

Re: Having problem in configuring the Yourkit agent for Jett

Postby Anton Katilin » Mon Mar 21, 2016 10:33 am

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
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am

Re: Having problem in configuring the Yourkit agent for Jett

Postby venkatesh.nayak » Mon Mar 21, 2016 11:44 am

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
venkatesh.nayak
 
Posts: 5
Joined: Mon Mar 21, 2016 10:02 am

Re: Having problem in configuring the Yourkit agent for Jett

Postby Anton Katilin » Mon Mar 21, 2016 11:59 am

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.
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am

Re: Having problem in configuring the Yourkit agent for Jett

Postby venkatesh.nayak » Mon Mar 21, 2016 12:05 pm

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
venkatesh.nayak
 
Posts: 5
Joined: Mon Mar 21, 2016 10:02 am

Re: Having problem in configuring the Yourkit agent for Jett

Postby Anton Katilin » Mon Mar 21, 2016 1:54 pm

Please specify a full path to "java".
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am

Re: Having problem in configuring the Yourkit agent for Jett

Postby venkatesh.nayak » Tue Mar 22, 2016 6:46 am

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

the agent i'm using is yjp-2016.02

Regards,
Venkatesh Nayak
venkatesh.nayak
 
Posts: 5
Joined: Mon Mar 21, 2016 10:02 am

Re: Having problem in configuring the Yourkit agent for Jett

Postby Anton Katilin » Tue Mar 22, 2016 1:22 pm

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.
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am

Re: Having problem in configuring the Yourkit agent for Jett

Postby venkatesh.nayak » Thu Mar 24, 2016 5:29 am

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
venkatesh.nayak
 
Posts: 5
Joined: Mon Mar 21, 2016 10:02 am

Re: Having problem in configuring the Yourkit agent for Jett

Postby Anton Katilin » Thu Mar 24, 2016 4:48 pm

Hi Venkatesh.

Thank you for the notification.
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot] and 5 guests