使用命令行方式运行 JMeter 脚本
来源:互联网 发布:sku编码软件 编辑:程序博客网 时间:2024/05/04 19:32
For non-interactive testing, you may choose to run JMeter without the GUI. 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].
-r Run all remote servers specified in JMeter.properties (or remote servers specified on command line by overriding properties)
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
上面这段说明来自 JMeter 的官方用户手册。其中提到了使用命令行方式运行 JMeter 脚本的方法。只有几个简单的参数,很直观,用起来也很方便。好处是可以节省一些系统资源。
今天尝试 300 个虚拟用户连续运行 5 分钟时——使用 GUI 方式,发现开始运行后不久 UI 就失去了响应,并提示一个有关 AWT 的错误,最终只能把 Java 进程结束掉。但是使用命令行方式时却很稳定。
不过当在命令行方式下尝试 500 个虚拟用户连续运行 5 分钟时,JMeter 抛出了一个 Out of Memory 的异常并退出了进程。
Note:
1.执行命令前要检查当前目录是否是 %JMeter_Home%/bin 目录;
2.如果 JMeter 脚本不在当前目录,需要指定完整的路径;如果要把执行的结果保存在其他地方也要指定完整的路径。
- 使用命令行方式运行 JMeter 脚本
- 使用命令行方式运行 JMeter 脚本
- 使用命令行方式运行 JMeter 脚本
- 使用命令行方式运行 JMeter 脚本
- 使用命令行方式运行 JMeter 脚本
- 使用命令行运行JMeter脚本
- jmeter使用--6、命令行运行jmeter脚本
- 命令行运行jmeter脚本
- 命令行方式运行JMeter
- 使用命令行执行JMETER脚本
- 命令行模式运行jmeter,主从方式运行jmeter
- 命令行方式运行PHP脚本
- 命令行方式运行PHP脚本
- 命令行方式运行php脚本
- 命令行运行jmeter脚本,并查看结果文件 待..
- [转]命令行方式运行PHP脚本
- jmeter在命令行运行
- Jmeter命令行运行实例讲解
- [zt] Viewing the Apache server status
- 程序员容易患的疾病
- 9.11
- 做好软件测试需要考研吗?——答一位大三MM问
- 考虑购买的 DELL 配置
- 使用命令行方式运行 JMeter 脚本
- 随笔 2006-9-7
- Setting up Initial Tomcat Administration
- 为学 彭淑端[清]
- [转]实战每晚构建
- 随笔 2006-9-5
- 随笔 2006-9-4
- 基于Google的学习过程
- [转贴] 丘成桐痛批中国学界霸权