无法在 JMeter 4.0 中执行分布式测试

Unable to Execute Distributed Testing in JMeter 4.0

我已经应用了所有指令来执行 JMeter 的分布式测试。 但是当我 运行 作为 "Remote Start-XXX.XXX.XXX.XXX" 然后我得到 "Exception creating connection: XXX.XXX.XXX.XXX; nested exception is: java.io.IOException: java.security.UnrecoverableKeyException: Cannot recover key".

任何人都可以帮助我为什么我得到那个异常?

我使用的参考:LINK

鉴于您使用 JMeter 4.0 additionally you need to follow steps from Setting Up SSL 用户手册章节


或者,如果您不想在主从之间进行安全的 RMI 通信,您可以将下一行添加到 user.properties 文件

server.rmi.ssl.disable=true

或者通过 -J 命令行参数传递它,例如:

jmeter -Jserver.rmi.ssl.disable=true

必须在所有引擎(主引擎和所有从引擎)上进行更改

参考文献:

在 JMeter 4.0 中,您需要生成一个将在分布式测试中使用的密钥库。

改为按照本教程进行操作:

特别注意:

This 我就是这样解决和你一样的问题的。试一试,希望对您有所帮助:

when answering the question What is your first and last name?, you'll have to reply with rmi which is a corresponding value with server.rmi.ssl.keystore.alias in jmeter.propertise. Remember do NOT enter any custom value if u have not changed the server.rmi.ssl.keystore.alias in jmeter.propertise when u are trying to create a keystore.