Skip to content

Instantly share code, notes, and snippets.

@leonardehrenfried
Created August 28, 2012 12:58
Show Gist options
  • Select an option

  • Save leonardehrenfried/3497792 to your computer and use it in GitHub Desktop.

Select an option

Save leonardehrenfried/3497792 to your computer and use it in GitHub Desktop.
Script for installing YourKit profiler
#! /bin/bash -e
name="yjp-11.0.8"
filename="$name-linux.tar.bz2"
installdir="/opt/$name"
if [ -d $installdir ]
then
echo "YourKit already installed at $installdir"
echo "Add this to your JAVA_OPTS: -agentpath:$installdir/bin/linux-x86-64/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,builtinprobes=none"
exit 0
fi
if [ ! -f /tmp/$filename ]
then
wget -O /tmp/$filename http://www.yourkit.com/download/$filename
else
echo "YourKit already downloaded to /tmp/$filename"
fi
cd /tmp
echo "Extracting YourKit"
tar jxf $filename
echo "Moving extracted archive to /opt/$name"
mv /tmp/$name /opt
echo "Add this to your JAVA_OPTS: -agentpath:/opt/$name/bin/linux-x86-64/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,builtinprobes=none"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment