operty文件,默认是使用JMETER_HOME/bin目录下的jmeter.properties,如果用户自定义有其它的配置,在这里加上
          #用法如下: -p user.properties
-q, --addprop {argument}
additional property file(s)
          #其它配置文件,如JVM参数等等
-t, --testfile {argument}
the jmeter test(.jmx) file to run
         #要运行的jmeter脚本
-j, --jmeterlogfile {argument}
the jmeter log file
         #指定记录jmeter log的文件,默认为jmeter.log
-l, --logfile {argument}
the file to log samples to
         #记录采样器Log的文件
-n, --nongui
run JMeter in nongui mode
         #以nongui模式运行jmeter
-s, --server
run the JMeter server
         #运行JMeter server
-H, --proxyHost {argument}
Set a proxy server for JMeter to use
         #代理服务器地址
-P, --proxyPort {argument}
Set proxy server port for JMeter to use
         #代理服务器端口
-u, --username {argument}
Set username for proxy server that JMeter is to use
         #代理服务器的用户名
-a, --password {argument}
Set password for proxy server that JMeter is to use
         #代理服务器用户名对应的密码
-J, --jmeterproperty {argument}={value}
Define additional JMeter properties
         #定义额外的Jmeter属性
-G, --globalproperty (argument)[=(value)]
Define Global properties (sent to servers)
e.g. -Gport=123
or -Gglobal.properties
         #定义发送给server的全局属性
         #如:-Gport=123 或者-Gglobal.properties(指定监听server的端口)
-D, --systemproperty {argument}={value}
Define additional System properties
         #定义系统属性
-S, --systemPropertyFile {filename}
a property file to be added as System properties
         #通过指定的property文件定义系统属性
-L, --loglevel {argument}={value}
Define loglevel: [category=]level
e.g. jorphan=INFO or jmeter.util=DEBUG
         #定义日志等级
-r, --runremote (non-GUI only)
Start remote servers (as defined by the jmeter property remote_hosts)
         #启动远程server(在jmeter property中定义好的remote_hosts),公在non-gui模式下此参数才生效
-R, --remotestart server1,... (non-GUI only)
Start these remote servers (overrides remote_hosts)
         #启动远程server(如果使用此参数,将会忽略jmeter property中定义的remote_hosts)
-d, --homedir {argument}
the jmeter home directory to use
#Jmeter运行的主目录
-X, --remoteexit
Exit the remote servers at end of test (non-GUI)
         #测试结束时,退出(在non-gui模式下)

举例:进入测试脚本所在的目录,执行以下命令

jmeter -t "asso.jmx" -n -l testresult.csv 

生成成功后,直接打开会产生乱码,如图:

解决方法:如果有中文的话 先用 文本编译器打开, 另存一下 utf-8 (ansi)的格式  这样显示 就不乱码了

【jmeter】non-gui模式运行的更多相关文章

  1. 『动善时』JMeter基础 — 55、JMeter非GUI模式运行

    目录 1.JMeter的非GUI模式说明 2.为什么使用非GUI模式运行JMeter 3.怎样使用非GUI模式运行JMeter (1)非GUI模式运行JMeter步骤 (2)其它参数说明 4.CLI模 ...

  2. Jmeter非GUI模式运行

    非GUI模式,即命令行模式,运行 JMeter 测试脚本能够大大缩减所需要的系统资源. 使用的命令: jmeter  -n  -t  脚本文件路径   -l   结果输出文件路径   -j   日志文 ...

  3. 使用非 GUI 模式运行 JMeter 压力测试

    使用非 GUI 模式,即命令行模式运行 JMeter 测试脚本能够大大缩减所需要的系统资源.使用命令jmeter -n -t <testplan filename> -l <list ...

  4. 『动善时』JMeter基础 — 55、使用非GUI模式运行JMeter(命令行模式)

    目录 1.JMeter的非GUI模式说明 2.为什么使用非GUI模式运行JMeter 3.使用非GUI模式运行JMeter (1)非GUI模式运行JMeter步骤 (2)其它参数说明 4.CLI模式运 ...

  5. jmeter命令行模式运行,实时获取压测结果

    jmeter命令行模式运行,实时获取压测结果 jmeter很小,很快,使用方便,可以在界面运行,可以命令行运行.简单介绍下命令行运行的方式: sh jmeter.sh -n -t my-script. ...

  6. 非 GUI 模式运行 JMeter 压力测试

    非 GUI 模式,即命令行模式,运行 JMeter 测试脚本能够大大缩减所需要的系统资源. 使用命令:jmeter -n -t <testplan filename> -l <lis ...

  7. 非GUI模式运行Jmeter脚本

    一.应用场景 日常测试过程中发现,在大数量并发时,jmeterGUI界面经常宕机.卡死,在这种情况下我们就需要使用命令行来执行脚本了(非GUI模式). 二.命令行模式优点 1.节约系统资源,无需启动界 ...

  8. 非GUI 模式运行 jmeter 压力测试

    非 GUI 模式,即命令行模式,运行 JMeter 测试脚本能够大大缩减所需要的系统资源. 使用命令:jmeter -n -t <testplan filename> -l <lis ...

  9. Jmeter非GUI模式启动

    首先我们需要了解,GUI和非GUI模式启动Jmeter对测试的影响:Jmeter可视化界面及监听器展示结果需要消耗负载资源,从而导致,在大并发的情况下GUI方式会导致负载机资源紧张,对性能造成影响 e ...

  10. jmeter非GUI模式如何压测并生成测试报告

    在启动Jmeter时,我们会看到这样一句提示: 不要使用GUI模式(界面模式)进行负载测试,GUI模式只能用于创建测试和调试.进行负载测试时,需要时用非GUI模式. 那么为什么进行负载测试时一定要用非 ...

随机推荐

  1. matlab自带princomp(PCA降维方式)

    matlab 中自带的函数就不必怀疑. princomp:principal componet analysis (PCA). [COEFF,SCORE,latent,tsquare]=princom ...

  2. Linux关机命令

    1.halt  :关机 init 0 : 关机 shutdown  -h  now (立刻关机)  -h 指的是  halt 2.reboot  重启 init 0 重启 shutdown -r no ...

  3. 学习opengl十大网站(转载)

    [转载] 1.http://nehe.gamedev.net/这个是我觉得全世界最知名的OpenGL教程,而且有网友将其中48个教程翻译成了中文http://www.owlei.com/Dancing ...

  4. jbrowse 的配置与使用gff, vcf, fa, bed, bam

    1,jbrowse 是什么东西 ? JBrowse is a genome browser with a fully dynamic AJAX interface, being developed a ...

  5. UVA 11997 STL 优先队列

    题目链接: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem ...

  6. 求解:php商品条件筛选功能你是怎么做出来的?

    求解:php商品条件筛选功能你是怎么做出来的? 2013-09-25 13:43 chenhang607 | 浏览 2756 次 资源共享 求思路或者方法,最好能有些代码 2013-09-25 14: ...

  7. URAL 1930 Ivan's Car(BFS)

    Ivan's Car Time limit: 1.5 secondMemory limit: 64 MB The world is in danger! Awful earthquakes are d ...

  8. timus 1022 Genealogical Tree(拓扑排序)

    Genealogical Tree Time limit: 1.0 secondMemory limit: 64 MB Background The system of Martians’ blood ...

  9. CodeForces 558A

    Description Amr lives in Lala Land. Lala Land is a very beautiful country that is located on a coord ...

  10. Linux 下WordPress FTP帐号解决办法

    自己用Ubuntu搭建WordPress后在更换主题时提示需要输入FTP帐号和密码,解决办法主要是把WordPress主目录的权限所有者弄为Apache: 找到apache服务所使用的用户名和用户组 ...