Linux Web Performance Stress test Tool Http_load Use Tutorials _ Server Other

Source: Internet
Author: User
Tags min test web server

Http_load Introduction:
Http_load is a performance measurement tool based on Linux platform. Run in parallel multiplexing to test Web server throughput and load, and test Web page performance.

Download and install:

wget http://www.acme.com/software/http_load/http_load-12mar2006.tar.gz
Tar xzvf http_load-12mar2006.tar.gz
CD http_load-12mar2006/
Make && make install

Http_load parameter Description:
Common parameter combinations:-p–f;-r-s
-P Concurrent Access process count
Total number of visits to-F
-R frequency of visits per second
-S total access time
Urlstxt is the name of the URL you want to visit, which can be either a single URL or a file containing the URL. Usually used as a file containing URLs, the file format is one url,url for each line preferably more than 50, the test results are better.

Http_load usage:
Create Url.txt, add Links:
http://www.jb51.net/category/php/
Http://www.jb51.net/php/iterate-algorithm.html
http://www.jb51.net/tag/web-safe/
http://timestamp.jb51.net/

To perform an action:
Use 5 processes to randomly access the list of Url.txt URLs, total visits 1000 times
Http_load-p 5-f 1000 Url.txt

return Result:
1000 fetches, 5 max parallel, 7.8623e+06 bytes, in 33.2007 seconds
7862.3 mean Bytes/connection
30.1198 fetches/sec, 236811 bytes/sec
msecs/connect:46.1447 mean, 1566.2 max, 36.343 min
msecs/first-response:69.1901 mean, 896.374 max, 36.743 min
HTTP Response Codes:
Code 200--212
Code 521--788

EXPLANATION Note:
First line: 1000 requests executed, maximum number of processes 5, total transfer data 7.8623e+06 bytes, run time 33.2007s
Second line: Average transmission data amount per connection 7.8623e+06/1000=7862.3
Third line: The response request per second is 30.1198, the data transmitted per second is 236811 bytes "Attention point: Number of response requests per second (corresponds to the number of users per second in QTP)"
Line four: The average response time of each connection is 46.1447msecs, the maximum response time is 1566.2msecs, the minimum response time is 36.343msecs "attention point: The average response time of each connection (corresponding to the QTP in response times, Per-Connection response user Time) "
Line sixth to seventh: Response status Code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.