jmeter分布式部署(windows)

1、控制機(jī)和代理機(jī)均設(shè)置,找到 bin/jmeter.properties,禁用ssl for rmi,添加如下:
server.rmi.ssl.disable=true
server_port=1099
server.rmi.port=1099
server.rmi.localport=1099
2、在控制機(jī)bin/jmeter.properties,修改agent地址:(可以添加本機(jī)地址)
remote_hosts=192.168.78.191,192.168.74.249
3、分別在控制機(jī)和代理機(jī)啟動(dòng)jmeter-server

a、可以指定ip啟動(dòng)(可能存在其他虛擬機(jī)啟用):

jmeter-server -Djava.rmi.server.hostname=192.168.74.249

b、或者修改jmeter-server,添加一行:(貌似沒(méi)得用,把電腦沒(méi)用的連接都禁用掉,jmeter-server直接啟動(dòng)就不會(huì)是另外的ip了)

RMI_HOST_DEF=-Djava.rmi.server.hostname=192.168.74.249

便可在命令行直接執(zhí)行jmeter-server:(或者執(zhí)行jmeter-server.bat)

G:\applications\Jmeter\apache-jmeter-5.3\bin>jmeter-server
Could not find ApacheJmeter_core.jar ...
... Trying JMETER_HOME=..
Found ApacheJMeter_core.jar
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/G:/applications/Jmeter/apache-jmeter-5.3/lib/log4j-slf4j-impl-2.13.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/G:/applications/Jmeter/apache-jmeter-5.3/lib/logback-classic-1.2.3.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.apache.logging.slf4j.Log4jLoggerFactory]
Using local port: 1099
Created remote object: UnicastServerRef2 [liveRef: [endpoint:[192.168.74.249:1099](local),objID:[714608d0:1821ebf017c:-7fff, 3900440553917984632]]]

注意下面出現(xiàn)Created remote object: UnicastServerRef2 [liveRef: [endpoint:192.168.74.249:1099,objID:[714608d0:1821ebf017c:-7fff, 3900440553917984632]]]就可以了,且這里的ip地址是配置的agent地址

4、打開(kāi)控制機(jī)jmeter.bat啟動(dòng)界面
啟動(dòng)

在agent的命令行出現(xiàn)如下就可以了:(檢測(cè)多個(gè)agent是否同時(shí)有輸出)

Starting the test on host 192.168.74.249 @ Thu Jul 21 11:14:36 CST 2022 (1658373276791)
Finished the test on host 192.168.74.249 @ Thu Jul 21 11:14:37 CST 2022 (1658373277989)
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容