blog.csdn/songlipeng2003/category/279402.aspx
Jmeter是开源的性能测试框架,URL:/jmeter/
download:/site/downloads/i
使用说明:blog.csdn/songlipeng2003/category/279402.aspx
blog.csdn/songlipeng2003/archive/2007/02/24/1513456.aspx
1. Step by step:chunpeng.javaeye/blog/124761
注意:SamplerResult的开始和结束应加载需要执行性能测试的前后,用于收集测试的结果。
启动无界面的Jmeter程序:
nohup ./jmeter.sh -n -t catcachetest.jmx &
Jmeter使用的参数如下:
1. Invoking JMeter as "jmeter -?" will print a list of all the command-line options. These are shown below.
2.
3.
4. -h, --help
5. print usage information and exit
6. -v, --version
7. print the version information and exit
8. -p, --propfile {argument}
9. the jmeter property file to use
10. -q, --addprop {argument}
异或运算在线
11. additional property file(s)
12. -t, --testfile {argument}
properties文件用什么打开13. the jmeter test(.jmx) file to run
14. -j, --jmeterlogfile {argument}
15. the jmeter log file
16. -l, --logfile {argument}
17. the file to log samples to
18. -n, --nongui
19. run JMeter in nongui mode
20. -s, --server
21. run the JMeter server
22. -H, --proxyHost {argument}
23. Set a proxy server for JMeter to use
24. -P, --proxyPort {argument}
25. Set proxy server port for JMeter to use
26. -u, --username {argument}
27. Set username for proxy server that JMeter is to use
28. -a, --password {argument}
29. Set password for proxy server that JMeter is to use
30. -J, --jmeterproperty {argument}={value}
31. Define additional JMeter properties
32. -G, --globalproperty (argument)[=(value)]
33. Define Global properties (sent to servers)
34. e.g. -Gport=123
35. or -Gglobal.properties
36. -D, --systemproperty {argument}={value}
37. Define additional System properties
38. -S, --systemPropertyFile {filename}
39. a property file to be added as System properties mysql数据库四种特性
40. -L, --loglevel {argument}={value}
41. Define loglevel: [category=]level 企业网站破解源码
42. e.g. jorphan=INFO or jmeter.util=DEBUG
43. -r, --runremote (non-GUI only)
44. Start remote servers (as defined by the jmeter property remote_hosts)
45. -R, --remotestart server1,... (non-GUI only)
46. Start these remote servers (overrides remote_hosts)
47. -d, --homedir {argument}
48. the jmeter home directory to use
49. -X, --remoteexit
50. Exit the remote servers at end of test (non-GUI)
51.
一节课英语怎么读lesson52. Note: the JMeter log file name is formatted as a SimpleDateFormat (applied to the current date) if it contains paired single-quotes, .e.g. 'jmeter_'yyyyMMddHHmmss'.log'
53.
54. If the special name LAST is used for the -t, -j or -l flags, then JMeter takes that to mean the last test plan that was run in interactive mode.
2. Jtl文件的解析是在linux上面用jtlparser来完成的,这个也非常大, 传输到windows上面不现实。 ./jmeter.sh -n -t catcachetest.jmx
3. Nmon 解析格式:由于Nmon收集的文件不大,收集好了传输到windows上面用nmon的excel编程就完成了。nmon的启动方式为:./nmon -f -s 15 -c 400
nmon启动:nmon.sourceforge/pmwiki.php?n=Site.GettingStarted
Start by capturing a small sample file. Type: nmon -f -s2 -c 30
∙ The -f means you want the data saved to a file and not displayed on the screen.
∙ The -s2 means you want to capture data every 2 seconds
∙ The -c 30 means you want thirty data points or snap shots
我的世界notch拉下拉杆∙ This means that after a few seconds collecting the configuration nmon for Linux will run for 2 x 30 = 60 seconds and stop. At the end some further configuration data is collected.
nmon主页:nmon.sourceforge/pmwiki.php?n=Main.HomePage
nmon下载:nmon.sourceforge/pmwiki.php?n=Site.Download
nmon 分析器 from ibm:www.ibm/developerworks/wikis/display/Wikiptype/nmonanalyser
4. 小孟 Jmeter使用:process.alibaba-inc/training/jmeter/index.htm
5. 采用badboy可以录制页面做为压力发起的脚本
(1)打开BadBoy的录制界面
(2)启动软件,录制操作, 保存为‘export to jmeter’的方式,“Paly All”(“>>”标记)可以回放录制的过程,保存之后再使用jmeter打开jmx文件【注意】Badboy2.1版本需要是用2.3.
4版本的Jmeter打开脚本,2.4的测试有些兼容性的问题。
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论