Linux上運行Jmeter

上傳jmeter到Linux服務器java

unzip解壓apache

配置環境變量vi /etc/profile:api

export PATH=/tmp/apache-jmeter-3.0/bin/:$PATH服務器

刷新環境變量:source /etc/profile測試

給jmeter賦予權限:chmod 777 /tmp/apache-jmeter-3.0/bin/jmeterui

jmeter -v看到版本信息便可==========================server

jmeter -n -t datasend.jmx -l log.jtl       ip

     參數說明:rem

    -n表示以nogui方式運行測試計劃it

    -t表示測試計劃,後面跟測試計劃名稱

    -l表示測試結果,後面跟測試結果文件名稱

 

Windows遠程 :jmeter -n -t \tmp\apache-jmeter-3.0\bin\kapitest.jmx -r -l \tmp\testresult\result1.csv -e -o F:\testresult\01


Windows local: jmeter -n -t \tmp\apache-jmeter-3.0\bin\SITallKKL.jmx -l \tmp\SITkkltestresult\SITalltestKKLresult01.csv -e -o \tmp\SITkkltestresult\01

 

 

Linux Local:  jmeter -n -t DubboSample.jmx -l DubboSamleTestResult01.jtl

Linux 遠程:jmeter -n -t HTTP.jmx -R 192.168.5.95,192.168.5.103  -l /tmp/a.jtl

 

master配置:

修改bin/jmeter.properties下的remote信息,增長A,B機器地址

# Remote Hosts - comma delimited

remote_hosts=192.168.5.95:1099,192.168.5.103:1099

slave A機器:

 chmod 777 ./bin/jmeter-server

./bin/jmeter-server -Djava.rmi.server.hostname=10.0.0.101

相關文章
相關標籤/搜索