ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

CLI Mode (Command Line mode was called NON GUI mode),JMeter的CLI模式解析20210725

2021-07-25 15:02:16  阅读:219  来源: 互联网

标签:NON CLI GUI server mode test JMeter proxy


JMeter的CLI Mode解析

https://jmeter.apache.org/usermanual/get-started.html

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 cli 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]

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

中文版:
1.4.4 CLI 模式(命令行模式被称为 NON GUI 模式)
对于负载测试,您必须在此模式下(不带 GUI)运行 JMeter 以从中获得最佳结果。为此,请使用以下命令选项:

-n
这指定 JMeter 以 cli 模式运行
-t
[包含测试计划的 JMX 文件的名称]。
-l
[将样本结果记录到的 JTL 文件的名称]。
-j
[JMeter 运行日志文件的名称]。
-r
在 JMeter 属性“ remote_hosts ”指定的服务器中运行测试
-R
[远程服务器列表] 在指定的远程服务器上运行测试
-G
[CSV 文件的路径] 仅生成报告仪表板
-e
负载测试后生成报告仪表板
-o
负载测试后生成报告仪表板的输出文件夹。文件夹不得存在或为空
该脚本还允许您指定可选的防火墙/代理服务器信息:

-H
[代理服务器主机名或 IP 地址]
-P
[代理服务器端口]
例子
jmeter -n -t my_test.jmx -l log.jtl -H my.proxy.server -P 8000
如果属性jmeterengine.stopfail.system.exit设置为true(默认为false),则 JMeter 将在无法停止所有线程时调用System.exit(1)。通常这不是必需的。

标签:NON,CLI,GUI,server,mode,test,JMeter,proxy
来源: https://blog.csdn.net/weixin_48156889/article/details/119081923

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有