I have the 8.0.30 product installed on my WinBox and I have followed the instructions to install and start the agent on my Linux box.
Background:
1. 'uname -a' output: Linux devreconsmf2.pr.recondo.vci 2.6.18-128.1.10.el5.xs5.5.0.51xen #1 SMP Wed Nov 11 07:38:08 EST 2009 i686 i686 i386 GNU/Linux
2. Unpacked yjp-8.0.30-linux.tar.bz2 onto box.
3. Type bin/yjp.sh -attach
4. The output is shown below:
Picked up JAVA_TOOL_OPTIONS:
Cannot start the profiler UI: display is not available on this machine.
To run the profiler UI on this machine, export DISPLAY variable. Refer to XWindow documentation for detail.
Instead of running the profiler UI on this machine, consider the following scenario that may be more appropriate in your case:
1. You have a J2EE server hosted on this machine
2. You run the profiler UI on another machine (i.e. on your workstation) to remotely profile the server
If this is what you need, run console version of J2EE server integration wizard. Read more: http://www.yourkit.com/docs/80/help/pro ... remote.jsp
I expected the output shown in the documentation page, http://yourkit.com/docs/10/help/attach_wizard.jsp.
Can anyone help point me in the right direction???
Problem Start Agent on Remote Linux
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Problem Start Agent on Remote Linux
Attach mode was first introduced in version 9.5 of the profiler. It did not exist in version 8.
Please read how to enable profiling with version 8.0 in corresponding help topic:
http://www.yourkit.com/docs/80/help/run ... ofiler.jsp
Please read how to enable profiling with version 8.0 in corresponding help topic:
http://www.yourkit.com/docs/80/help/run ... ofiler.jsp
-
- Posts: 2
- Joined: Thu Jan 12, 2012 7:10 pm
Re: Problem Start Agent on Remote Linux
Thanks Anton. Unfortunately we are stuck with Java 5 right now and according the the Java versions matrix Java 5 is not support above version 8.x.
I was able to get remote attachment working by adding the 'agent' VM option to each of our service start command lines. Example,
"java ... -agentpath:/usr/bin/yjp-8.0.30/bin/linux-x86-32/libyjpagent.so ... -jar ...".
Evidently this will have to suffice in our environment??
I was able to get remote attachment working by adding the 'agent' VM option to each of our service start command lines. Example,
"java ... -agentpath:/usr/bin/yjp-8.0.30/bin/linux-x86-32/libyjpagent.so ... -jar ...".
Evidently this will have to suffice in our environment??
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Problem Start Agent on Remote Linux
This is the correct way."java ... -agentpath:/usr/bin/yjp-8.0.30/bin/linux-x86-32/libyjpagent.so ... -jar ..."
-
- Posts: 11
- Joined: Fri Aug 17, 2012 9:43 pm
Re: Problem Start Agent on Remote Linux
Could you please expand the above command? I am also facing similar problems with the attach command.Anton Katilin wrote:This is the correct way."java ... -agentpath:/usr/bin/yjp-8.0.30/bin/linux-x86-32/libyjpagent.so ... -jar ..."
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am