0. IntroductionApache JMeter is an open source software, a purely Java-written functional testing and stress testing tool. The design JMeter was originally designed to test WEB applications, but now extends to more testing capabilities.
Apache JMeter can be used to test the performance of static and dynamic resources (WebService (soap/rest), dynamic Web languages such as PHP, Java, ASP. NET, Files, etc., Java objects, databases and queries, FTP services, etc.) 。 It can simulate huge loads on a server, a set of servers, networks, or objects, test its strength on different load types, or analyze overall performance.
one. Use
- Create a new thread group
2. Set Thread group parameters: number of threads is 6 [for several threads run], ramp-up Period (in seconds) [indicates thread interval between threads]: 6, number of cycles: 2 [indicates that these threads have visited a total of several times]
3. Create a new HTTP Request
For example I need GET a link: www.baidu.com (use Baidu do example is because Baidu did not prevent JMeter access, if Access CSDN will return 403) such as fill in:
4. Add View result tree
5. run to see the results
6. View aggregated reports
Aggregation report Field Explanation: Label: Request name #sample: Total number of requests average: Average response time (MS MS) Median: 50% Maximum response time (MS milliseconds) after request time sorted in ascending order: 90% Maximum response time after the request time in ascending order or 90% the worst response time (ms ms) min: Minimum response time Max: Maximum response time error: rate throughout: Throughput kb/sec: Data transfer bitrate
JMeter Getting Started