Wednesday, May 23, 2012

Launching JMeter - on a mac

To launch Apache JMeter on OSX, I use a short script that runs from a terminal window.  (I use TextExpander to run the commands, but that's just because I'm lazy).  This will set a 2GB JVM and put me in the directory with my plans so that opening them is easier.

Wrapping this in a clickable launcher would be cleaner, but this way, I can easily see if I hit an OutOfMemory error, and I can CTRL-C to kill it if the interface locks up.

Script:
JVM_ARGS="-Xms2g -Xmx2g"
export JVM_ARGS
jmpath='/Applications/jmeter_2.12'
jmexec=${jmpath}/bin/jmeter
cd ~/Documents/jmplans/
chmod +x ${jmexec}
${jmexec}

No comments:

Post a Comment