changes.mady.by.user Andrew Woods
Saved on Apr 22, 2016
/opt/yourkit
Update JAVA_OPTS (/etc/default/tomcat7)
JAVA_OPTS
JAVA_OPTS="${JAVA_OPTS} -agentpath:/opt/yourkit/yjp-2016.02/bin/linux-x86-64/libyjpagent.so=delay=10000"
If error in catalina.out such as: "Cannot create log file: /usr/share/tomcat7/.yjp/log/Tomcat-24495.log", then create the appropriate .yjp directory with owner of the Tomcat7 user
.yjp
10001 - 10010
With either the local or remote server, then run in the directory where you installed the YourKit bundle locally
./bin/yjp-12.0.5/bin/yjp.sh
export MAVEN_OPTS="-Xmx1024m -XX:MetaspaceSize=256m -agentpath:/Applications/YourKit_Java_Profiler_12.0.5.app/bin/mac/libyjpagent.jnilib=delay=10000"