First, local download JMeter
> Download a jmeter compressed package to your local Windows PC on the website first
>:http://mirrors.hust.edu.cn/apache//jmeter/binaries/apache-jmeter-3.0.zip
> extract it out and then run the Jmeter.bat in the bin directory, waiting for the interface shown to appear
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/8A/25/wKioL1gpTsCAur80AAEvNBaPyIA327.jpg-wh_500x0-wm_3 -wmp_4-s_508453613.jpg "title=" 1.jpg "alt=" Wkiol1gptscaur80aaevnbapyia327.jpg-wh_50 "/>
Second, start generating jmx files
> Create a thread group first, right-click on test Plan-add-->threads (Users)-Thread group
> Add HTTP request, right click on Thread Group--Add-->sampler-->http request
> Add an Aggregation Report view test results, right-click on the thread group ----add-on-listener--aggregated report
> Click on Thread Group, set concurrency size and number of requests//self-set size, just do demo
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/8A/25/wKioL1gpUIeigu-PAAFq1wz-Efg962.jpg-wh_500x0-wm_3 -wmp_4-s_293117339.jpg "title=" 2.jpg "alt=" Wkiol1gpuieigu-paafq1wz-efg962.jpg-wh_50 "/>
> Set HTTP request //Fill in server IP and port according to personal situation
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8A/25/wKioL1gpU-zi2eIPAAGDtMjyb_U160.jpg-wh_500x0-wm_3 -wmp_4-s_1490617535.jpg "title=" 3.jpg "alt=" Wkiol1gpu-zi2eipaagdtmjyb_u160.jpg-wh_50 "/>
> After Setup, right click on the thread group to save and upload the saved xxx.jmx to a Linux server that has been deployed jmeter.
Third, start the test
* * Start tomcat** First
#Jmeter-n-T xxx.jmx-l jieguo.jtl
#sz JIEGUO.JTL //If you do not have this command, you can install it yourself with Yum, Yum-y installs Lrzsz
> Open apache-jmeter Software with local windows, select just add aggregate graphics-Browse, select the Jieguo.jtl file you just downloaded to see the results of the test
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/8A/25/wKioL1gpVZezzzrMAAAcAmBE8vU990.png-wh_500x0-wm_3 -wmp_4-s_2365108634.png "title=" 4.png "alt=" Wkiol1gpvzezzzrmaaacambe8vu990.png-wh_50 "/>
> There's nothing in the root directory of Tomcat here, so that's what happens.
> Parameter Explanation:
1) #Saples: Total Request count, number of threads * Cycle count
2) Average: Average response time
3) Response time for median:50% users
4) 90% line:90% User's response time
5) Min: Minimum response time
6) Max: Maximum response time
7) error%: Percentage of request errors
8) Throughput: Throughput, default indicates the number of requests completed per second
9) Kb/sec: The amount of data received from the server per second
* * You can adjust according to your own stress test results, after the optimization of Tomcat and then perform a stress test, and compare the results before and after optimization, about tomcat optimization of the online documentation a lot, here no more repeat! **
This article is from the "Pzhi Linux operations Note" blog, make sure to keep this source http://riven.blog.51cto.com/8147412/1872639
Using JMeter on Linux systems