我想通过jmeter运行分布式负载测试,其中服务器(Linux)在云中,我可以从本地pc启动测试。有没有可能或者客户端和服务器应该在同一子网中?如果可能的话,你能为我提供一步一步的指导如何实现这个目标吗?我累了
https://jmeter.apache.org/usermanual/remote-test.html
但是我一次又一次的出错。在我禁用ssl验证之前,出现了下一个错误:
error during JRMP connection establishment; nested exception is:
javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake在禁用ssl验证的情况下,我会出现下一个错误:
Error in rconfigure() method java.rmi.MarshalException: error marshalling argume
nts; nested exception is:
java.net.SocketException: Connection reset by peer: socket write error我有感觉,就像我在设置ip,端口或防火墙时犯了很大的错误,但我不明白是什么
发布于 2021-04-29 15:10:05
从本地系统启动加载代理(Jmeter Server)绝对是可能的。唯一的条件是流量不能被防火墙阻挡。
根据您的错误,看起来jmeter进程没有打开端口的权限,端口已经打开(尽管有一个特定的例外)
您还可以尝试允许所有传入流量到您的从属服务器(云linux盒),然后再次尝试运行测试。
发布于 2021-04-29 15:41:04
根据您提到的manual,您只需执行以下步骤:
本地计算机上的
ssh -L 24000:127.0.0.1:24000 username@hostname_of_cloud_machine -R 25000:127.0.0.1:25000 -L 26000:127.0.0.1:26000 ssh
云机上的
./jmeter -s -Jserver.rmi.ssl.disable=true -Jserver_port=24000 -Jserver.rmi.localhostname=127.0.0.1 -Jserver.rmi.localport=26000 -j jmeter.log
./jmeter -Jserver.rmi.ssl.disable=true -Jremote_hosts=127.0.0.1:24000 -Jclient.rmi.localport=25000 -Jmode=Statistical -n -t test.jmx -l result.jtl
您不需要配置任何防火墙,因为所有通信都是通过SSH tunnel进行的
更多信息:
https://stackoverflow.com/questions/67308686
复制相似问题