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.

Configure yourkit agent on the neoware thin client.

Moderators: Vladimir Kondratyev, Anton Katilin

Configure yourkit agent on the neoware thin client.

Postby abhishek » Thu Jan 28, 2016 8:32 am

Hi,

We want to configure yourkit agent on the neoware thin client which are connected from SUSE server.

On the neoware thin client a java process is running and we want to profile this java process.

Running process on the neoware is accessing the JRE from SUSE server which are present in the shared mount of SUSE server.
When we are trying to run yjp.sh on the neoware then we get JAVA not found exception.

Yourkit agent should attach with neoware thin client java process and also we want to collect snapshots on the SUSE server box due to space unavailability on the neoware thin client.

Please help me out this issue and suggest whatever is needful to configure yourkit on the neoware production environment.

Thanks
Abhishek
abhishek
 
Posts: 59
Joined: Tue May 13, 2014 7:37 am

Re: Configure yourkit agent on the neoware thin client.

Postby Anton Katilin » Thu Jan 28, 2016 9:00 am

Hi Abhishek

When we are trying to run yjp.sh on the neoware then we get JAVA not found exception.
What is the exact error? Try to specify JAVA_HOME or YJP_JAVA_HOME environment variables to ensure the script can find Java.

You can enable profiling with the help of the console wizard (choose Generic server option if your application does not match any predefined case) or manually:
https://www.yourkit.com/docs/java/help/ ... filing.jsp

Best regards,
Anton
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am

Re: Configure yourkit agent on the neoware thin client.

Postby abhishek » Thu Jan 28, 2016 9:15 am

Hi,

There no such java present on the neoware .
I have already tried console wizard but on the neoware there is not such generic application server is running.

We are planning to attach yourkit agent with running JVM process ID.

Neoware has the mirror of the SUSE server.

Regards
Abhishek
abhishek
 
Posts: 59
Joined: Tue May 13, 2014 7:37 am

Re: Configure yourkit agent on the neoware thin client.

Postby Anton Katilin » Thu Jan 28, 2016 10:04 am

I have already tried console wizard but on the neoware there is not such generic application server is running.
The wizard offers the list of known servers and a special option, named Generic server, to integrate with other servers. If you don't see your server in the list choose Generic and follow instructions.
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am

Re: Configure yourkit agent on the neoware thin client.

Postby abhishek » Fri Jan 29, 2016 10:51 am

We are getting below error

Cannot find Java 6 or newer to run YourKit Java Profiler.
Java search priority:
- environment variable YJP_JAVA_HOME, if set;
- environment variable JAVA_HOME, if set;
- 'java' in PATH, if found.


Please suggest.
abhishek
 
Posts: 59
Joined: Tue May 13, 2014 7:37 am

Re: Configure yourkit agent on the neoware thin client.

Postby abhishek » Fri Jan 29, 2016 11:16 am

After setting java home , We are getting this issue:

[YourKit Java Profiler 2014 build 14120] Log file: /root/.yjp/log/yjp-9442.log
Attaching to process 7505 using default options
com.yourkit.runtime.PresentableException: Cannot attach profiler agent to JVM: AgentInitializationException, return value=0
at com.yourkit.g.u.p.a(a:20)
at com.yourkit.g.u.c.a(a:94)
at com.yourkit.Main1.int(a:232)
at com.yourkit.Main1.entry(a:88)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.yourkit.Main$2.run(a:16)

Attach to a running JVM failed.

Solution: start JVM with the profiler agent instead of attaching it to a running JVM:
https://www.yourkit.com/docs/java/help/ ... ofiler.jsp
abhishek
 
Posts: 59
Joined: Tue May 13, 2014 7:37 am

Re: Configure yourkit agent on the neoware thin client.

Postby abhishek » Fri Jan 29, 2016 11:36 am

abhishek wrote:After setting java home , We are getting this issue:

[YourKit Java Profiler 2014 build 14120] Log file: /root/.yjp/log/yjp-9442.log
Attaching to process 7505 using default options
com.yourkit.runtime.PresentableException: Cannot attach profiler agent to JVM: AgentInitializationException, return value=0
at com.yourkit.g.u.p.a(a:20)
at com.yourkit.g.u.c.a(a:94)
at com.yourkit.Main1.int(a:232)
at com.yourkit.Main1.entry(a:88)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.yourkit.Main$2.run(a:16)

Attach to a running JVM failed.

Solution: start JVM with the profiler agent instead of attaching it to a running JVM:
https://www.yourkit.com/docs/java/help/ ... ofiler.jsp


Mentioned below are the Java, Unix and your kit details. Can you please help with road map and if these are compatible with each other.

JAVA Details:
java version "1.7.0"
Java(TM) SE Runtime Environment (build pxi3270sr8-20141026_01(SR8))
IBM J9 VM (build 2.6, JRE 1.7.0 Linux x86-32 20141013_217026 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR8_20141013_1240_B217026
JIT - r11_20141003_74578
GC - R26_Java726_SR8_20141013_1240_B217026
J9CL - 20141013_217026)
JCL - 20141004_02 based on Oracle 7u71-b13


Neoware UNIX Details:
root@wks04:/mnt/rxapp/applog/yjp-2014-build-14120# uname -a
Linux wks04 2.6.27-17-generic #1 SMP Fri Mar 12 03:09:00 UTC 2010 i686 GNU/Linux


Yourkit Details:
yjp-2014-build-14124
abhishek
 
Posts: 59
Joined: Tue May 13, 2014 7:37 am

Re: Configure yourkit agent on the neoware thin client.

Postby Anton Katilin » Fri Jan 29, 2016 1:17 pm

1. You cannot attach the profiler agent to a running instance of IBM Java, this works with Sun/Oracle/HotSpot/OpenJDK only. To profile IBM you should run the integration wizard, as I suggested multiple times.
2. Version 2014 is unsupported. Please use the latest version 2015 instead.
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

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