JMeter Remote Testing

From Training Material
Jump to navigation Jump to search


Remote Testing

  • AKA Distributed Testing
  • More reliable than testing from one machine
  • JMeter allows you to control all remote machines from one client (GUI or command line)
  • Sometimes necessary if the load in real world will come from different locations
  • Very similar in concept to DDoS

Remote Testing

<signavio>5983b60c1e9741db827449821cd632de:2c468365bb433b74ba593de168a8223be4bde94dc5a7e33174c077f0eb6ded6d_526c7ed224cc2f4bf39d27ba8d3381e544ad7528958d315ae9d3f33296417bc1_8f4bbf414341404b36fb26fb50b88c48f429509da2393279fbe163a5609278</signavio>

Selecting servers

  1. Edit bin/jmeter.properties
  2. Set remote_hosts=jms1,jms2,jms3
  3. Start JMeter server (jmeter-server.bat or jmeter-server.sh)
  4. Start test:
    • In GUI Start Remote
    • From CLI
jmeter -R192.168.0.8 -r -t "./Desktop/Test Plan.jmx" -n

Number of Threads

  • Each jmeter-server will run the number of threads specified in the Thread Groups