jemeter基本使用
一:参考
[jemeter] https://jmeter.apache.org/
二:概要
三:jemeter使用
3.1 启动
1)配置 jemeter/bin/setenv.bat
set JVM_ARGS=-Xms1024m -Xmx1024m -Dpropname=value
2)启动方式
jmeter.bat
run JMeter (in GUI mode by default)
jmeterw.cmd
run JMeter without the windows shell console (in GUI mode by default)
jmeter-n.cmd
drop a JMX file on this to run a CLI mode test
jmeter-n-r.cmd
drop a JMX file on this to run a CLI mode test remotely
jmeter-t.cmd
drop a JMX file on this to load it in GUI mode
jmeter-server.bat
start JMeter in server mode
mirror-server.cmd
runs the JMeter Mirror Server in CLI mode
shutdown.cmd
Run the Shutdown client to stop a CLI mode instance gracefully
stoptest.cmd
Run the Shutdown client to stop a CLI mode instance abruptly
3)启动时参数
jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder] HEAP="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m"
egg:
jmeter -n -t testplan/RedisLock.jmx -l testplan/result/result.txt -e -o testplan/webreport
3.1聚合报告
Label—-每个请求的名称,比如HTTP请求等
Samples—-发给服务器的请求数量
Average—-单个请求的平均响应时间
Median—-50%请求的响应时间
90%Line—-90%请求响应时间
95%Line—-95%请求响应时间
99%Line—-99%请求的响应时间
Min—-最小的响应时间
Max—-最大的响应时间
Error%—-错误率=错误的请求的数量/请求的总数
Throughput—-吞吐量即表示每秒完成的请求数
Received KB/sec—-每秒从服务器端接收到的数据量
Sent KB/sec—-每秒从客户端发送的请求的数量