Posts Tagged ‘load testing’

How to run jmeter over ssh tunnel

February 16, 2012 10 comments

There’s an old guide to do this here but it’s pretty outdated. Connecting to the server over ssh tunnel is the easiest way to do this as you would have to open a bunch of firewall ports on the server AND the client otherwise. I’m assuming you have JRE and Linux on both the server and client. Should work on other OS with some minor adjustments. See bellow for the putty configuration if you have the client on windows. Note that jmeter recommends that the client and server have the same OS and JRE version.

On the server and client, download and extract somewhere jmeter:

tar -xf apache-jmeter-2.6.tgz
cd apache-jmeter-2.6

On the client edit bin/ and add:


On the server edit bin/ and add:


Now connect to the server using this:

ssh -L 55501: -L 55511: -R 55512: user@hostname

If you’re using putty it should look like this: putty port forwarding configuration


Now run:

bin/jmeter-server -Djava.rmi.server.hostname=

And on the client run:

bin/ -Djava.rmi.server.hostname=
# or
bin/ -Djava.rmi.server.hostname= -t /path/to/test-plan.jmx

Now you can use the remote node !


Get every new post delivered to your Inbox.

Join 172 other followers