简体   繁体   English

无法为分布式负载测试生成 JMeter HTML 报告

[英]Unable to generate JMeter HTML reports for distributed load tests

Context: I am trying to generate HTML report for a JMeter test on a distributed load system with 1:1 master slave ratio, with the following command: sh jmeter -n -t test.jmx -l testresult.jtl -R xxxx -e -o /home/ubuntu/reports上下文:我正在尝试为 JMeter 测试生成 HTML 报告,在主从比为 1:1 的分布式负载系统上,使用以下命令:sh jmeter -n -t test.jmx -l testresult.jtl -R xxxx -e -o /home/ubuntu/报告

I get the following error:我收到以下错误:

Configuring remote engine: x.x.x.x
Starting distributed test with remote engines: [x.x.x.x] @ Wed Aug 18 14:24                                                                                                       :47 UTC 2021 (1629296687532)
Warning: Nashorn engine is planned to be removed from a future JDK release
Error in rconfigure() method java.rmi.MarshalException: error marshalling arguments; nested exception is:
        java.net.SocketException: Broken pipe (Write failed)
Remote engines have been started:[]
The following remote engines have not started:[x.x.x.x]
Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445

The run is successful when run locally but not when triggered through the master onto the slave.在本地运行时运行成功,但在通过主服务器触发到从服务器时则不成功。

The error you're getting means that JMeter master cannot start the test on the slave, either your configuration is wrong or there is something preventing bidirectional connectivity between the master and the slave ( firewall ?)你得到的错误意味着 JMeter master 无法在 slave 上开始测试,要么你的配置有误,要么有什么东西阻止了 master 和 slave 之间的双向连接(防火墙?)

It's hard to say what's wrong without knowing.network interfaces information of the master and the slave and the configuration you applied to connect them to each other so I can only provide some links to useful materials:不知道是什么问题很难说。master和slave的网络接口信息和你连接它们的配置,所以我只能提供一些有用资料的链接:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM