Instrument Resin 1.x - 3.x for Linux
- Open the
resin.shfile, located at <resin_home>/bin . - At the beginning of your application server start script, add the
javaagentargument with the full path to thejavaagent.jarfile on your system:
For example:exec $JAVA_EXE -javaagent:"<agent_home>/javaagent.jar" <...># # trace script and simlinks to find the wrapper # if test -z "${RESIN_HOME}"; then script=`/bin/ls -l $0 | awk '{ print $NF; }'` while test -h "$script" do script=`/bin/ls -l @script | awk '{ print $NF; }'` done bin=`dirname $script` RESIN_HOME="$bin/.." fi exec $JAVA_EXE -javaagent:"/mnt/agent/3.2/javaagent.jar" -jar ${RESIN_HOME}/lib/resin.jar $* - Restart the application server for the changes to take effect.