Skip to content

Instantly share code, notes, and snippets.

@jkischkel
Created September 20, 2012 08:45
Show Gist options
  • Save jkischkel/3754716 to your computer and use it in GitHub Desktop.
Save jkischkel/3754716 to your computer and use it in GitHub Desktop.
setup yourkit ec2
#!/bin/sh
export pkg="yjp-11.0.8"
export target_dir="/usr/local/sbin"
cd /root
wget http://www.yourkit.com/download/$pkg-linux.tar.bz2
tar xfj $pkg-linux.tar.bz2
cp -r $pkg $target_dir
cd $target_dir/$pkg
chown -R tomcat7 $target_dir/$pkg
mkdir /mnt/tomcat_snapshots
chown tomcat7 /mnt/tomcat_snapshots
ln -s /mnt/tomcat_snapshots /usr/share/tomcat7/Snapshots
ln -s /var/log/tomcat7 /usr/share/tomcat7/logs
alias yjp="java -jar $target_dir/$pkg/lib/yjp-controller-api-redist.jar localhost 10001"
echo "add to /etc/default/tomcat7"
echo "-agentpath:/usr/local/sbin/$pkg/bin/linux-x86-64/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,builtinprobes=none,delay=10000,sessionname=Tomcat"
echo
echo "run:"
echo "$target_dir/$pkg/bin/yjp.sh -integrate"
# startup location:
# /usr/share/tomcat7/bin/startup.sh
# alias yjp="java -jar /usr/local/sbin/yjp-11.0.8/lib/yjp-controller-api-redist.jar localhost 10001"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment