Jmeter的Non_GUI模式,命令行模式
2017-11-17 10:28
393 查看
For load testing, you must run JMeter in this mode (Without the GUI) to get the optimal results from it. To do so, use
the following command options:
-n
This specifies JMeter is to run in non-gui mode
-t
[name of JMX file that contains the Test Plan].
-l
[name of JTL file to log sample results to].
-j
[name of JMeter run log file].
-r
Run the test in the servers specified by the JMeter property “remote_hosts”
-R
[list of remote servers] Run the test in the specified remote servers
-g
[path to CSV file] generate report dashboard only
-e
generate report dashboard after load test
-o
output folder where to generate the report dashboard after load test. Folder must not exist or be empty
The script also lets you specify the optional firewall/proxy server information:
-H
[proxy server hostname or ip address]
-P
[proxy server port]
Example
If the property jmeterengine.stopfail.system.exit is set to true (default is false),
then JMeter will invoke System.exit(1) if it cannot stop all threads.
Normally this is not necessary.
reference:
http://jmeter.apache.org/usermanual/get-started.html#running
the following command options:
-n
This specifies JMeter is to run in non-gui mode
-t
[name of JMX file that contains the Test Plan].
-l
[name of JTL file to log sample results to].
-j
[name of JMeter run log file].
-r
Run the test in the servers specified by the JMeter property “remote_hosts”
-R
[list of remote servers] Run the test in the specified remote servers
-g
[path to CSV file] generate report dashboard only
-e
generate report dashboard after load test
-o
output folder where to generate the report dashboard after load test. Folder must not exist or be empty
The script also lets you specify the optional firewall/proxy server information:
-H
[proxy server hostname or ip address]
-P
[proxy server port]
Example
jmeter -n -t my_test.jmx -l log.jtl -H my.proxy.server -P 8000
If the property jmeterengine.stopfail.system.exit is set to true (default is false),
then JMeter will invoke System.exit(1) if it cannot stop all threads.
Normally this is not necessary.
reference:
http://jmeter.apache.org/usermanual/get-started.html#running
相关文章推荐
- JMeter之non-GUI 模式执行
- Jmeter之命令行模式(Non-GUI Mode )
- Jmeter之http性能测试实战 非GUI模式压测 NON-GUI模式 结果解析TPS——干货(十一)
- Jmeter以non-gui模式进行分布式测试
- jmeter的non-gui模式分布式测试
- Jmeter之http性能测试实战 NON-GUI模式 进行分布式压力测试——干货(十二)
- JMeter学习—006—JMeter 命令行(非GUI模式)详解(一)-分布式(远程)执行脚本及查看指定结果、日志
- 转:Jmeter以non-gui模式进行分布式测试
- JMeter学习-023-JMeter 命令行(非GUI)模式详解(一)-执行、输出结果及日志、简单分布执行脚本
- JMeter学习-024-JMeter 命令行(非GUI)模式详解(二)-执行代理设置
- jmeter之命令行模式(Non-GUI Mode )
- Jmeter以non-gui模式进行分布式测试
- 【jmeter】non-gui模式运行
- JMeter学习-025-JMeter 命令行(非GUI)模式详解(三)-测试图形化 HTML 报表(dashboard)生成
- Jmeter以non-gui模式进行分布式测试
- 使用非 GUI 模式运行 JMeter 压力测试
- Jmeter 非GUI模式运行