Skip to content

Instantly share code, notes, and snippets.

@dizzyd
Created January 19, 2010 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dizzyd/281050 to your computer and use it in GitHub Desktop.
Save dizzyd/281050 to your computer and use it in GitHub Desktop.
#!/bin/bash
BASEDIR=`pwd`
if [ ! -f "$BASEDIR/services/riak/$1.jmx" ]; then
echo "Can't find JMX file for $1"
exit 1
fi
(cd jmeter && bin/jmeter -n -t $BASEDIR/services/riak/$1.jmx \
-p $BASEDIR/services/riak/$1.properties \
-Jbeanshell.init.file=$BASEDIR/services/riak/init-riak-objects.bsh \
-j /mnt/loadtest/jmeter.log \
> /mnt/loadtest/jmeter-run.out 2>&1 & )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment