load testing - PerfMon plugin throwing error (with use of variables) in JMeter distributed Mode -
i have implemented perfmon metrics collector (listeners) in jmeter scripts. these listeners have host , port fields. have defined variables these in test plan , using them in listeners.
i tested these scripts in non-distributed mode , worked perfectly.
now, converted scripts distributed mode. works fine except perfmon listeners throw following error message:
2016/02/29 09:06:35 error - kg.apc.jmeter.perfmon.perfmoncollector: perfmon plugin error: java.net.connectexception: connect: address invalid on local machine, or port not valid on remote machine
this error seemed related invalid value (may these listeners not handle special characters {} $ in distributed mode!!). so, removed variables host/port , instead used hard coded values , worked fine.
so apparently, these listeners not work in distributed mode (if used variables).
is there workaround issue have plenty of perfmon listeners in setup , manually changing them tiresome job.
go jmeter properties instead of jmeter variables, like:
- substitute
${host}
${__p(host,)}
- substitute
${port}
${__p(port,)}
pass
host
,port
properties values on jmeter master side like:jmeter -ghost=target_hostname_or_ip -gport=target_port -s -n -t ....
you can have different values on different slaves, in case specify properties in user.properties file (it's located under /bin folder of jmeter installation) like:
host=10.20.30.40 port=1234
remember restart jmeter after editing configuration file.
references:
Comments
Post a Comment