JMeter with Not Gui mode for ant task doesn't run on slave node JMeter with Not Gui mode for ant task doesn't run on slave node jenkins jenkins

JMeter with Not Gui mode for ant task doesn't run on slave node


You need to run "jmeter-server" on both Jmeter master & client machine.

and then execute your script like this.

./jmeter -n -t jmeterscript.jmx -R 172.0.0.1(master-ip),(slave-ip) -l logfile.jtl

reference:http://jmeter.apache.org/usermanual/remote-test.html


The solution was next:

  1. on the Slaves machines correct jmeter-server:

    DIRNAME=dirname $0

    RMI_HOST_DEF=-Djava.rmi.server.hostname=10.6.216.XXX

    ${DIRNAME}/jmeter ${RMI_HOST_DEF} -Dserver_port=60000 -s -j jmeter-server.log "$@"

just uncomment RMI_HOST_DEF and assign the IP address of this machine, and specify port - 60000 (default one).

On the main workstation (Windows 8.1) adapted test plan to Slaves architecture (CentOS 6) - updated all resources paths to Unix style and locate them the same way for everyone slave instance.

  1. Correct the remote-hosts with IP addresses and port for main mashine:

    remote_hosts=10.6.216.XXX:60000,10.6.216.XXX:60000

  2. Start jmeter-server on all slaves:

    [user@ECSC00103331 ~]$ jmeter-serverUsing local port: 60000Created remote object: UnicastServerRef [liveRef: [endpoint:10.6.216.40:60000,objID:[2f100b79:15630b4bb73:-7fff, 6552789263830402879]]]

    Also increased ulimit value for every instance:

ulimit -u 50000

By default, it was 1024. You can check it with ulimit -a command.

  1. Start run from JMeter UI - Run -> Remote Start All. Snippet from CentOS console:

    Starting the test on host 10.6.216.XXX:60000 @ Thu Jul 28 11:53:12 MSK 2016 (1469695992526)SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/etc/jmeter/lib/slf4j-nop-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/var/lib/jenkins/jobs/Fx-Performance-Tests-RMI/workspace/fx-performance-tests/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.SLF4J: Actual binding is of type [org.slf4j.helpers.NOPLoggerFactory]Uncaught Exception org.apache.jorphan.util.JMeterError: Could not return sample. See log file for details.

It works even with this strange exception.