$ uname -a
Linux ###.com 2.6.50-t17.el5 #1 SMP Sat Oct 18 13:18:32 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux
Trying to get remote profiling working so I can connect from my desktop to a dev/prod machine.
I've added the agent to the commandline, using the fully-qualified path:
Code: Select all
-agentpath:/.../libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,probe_disable=*,delay=45000,port=10001
Code: Select all
$ export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk
$ ./yjp.sh -attach 42145
[YourKit Java Profiler 2014 build 14112] Log file: /home/..../.yjp/log/yjp-45484.log
Attaching to process 42145 using default options
The profiler agent has attached. Waiting while it initializes...
The agent is loaded and is listening on port 10001.
You can connect to it from the profiler UI.
Code: Select all
14112 - 0.002: Command line:
/usr/lib/jvm/java-1.7.0-openjdk/bin/java
-agentpath:/...../yjp-2014-build-14112/bin/linux-x86-64/libyjpagent.so=port=10001
...
...
14112 - 27.857: Profiler agent is listening on port 10001
...
...
14112 - 27.857: agentInit: OK
...
14112 - 146.305: startProfiling: 1
14112 - 146.305: startProfiling: OK
14112 - 175.933: SP: gc #0 5 ms=70 sz=3138 p=0 t=138