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.
1, download
Official website: http://acme.com/software/http_load/
The code is as follows:
Cd/root
wget http://acme.com/software/http_load/http_load-12mar2006.tar.gz
Tar xzf http_load-12mar2006.tar.gz
2, installation
The code is as follows:
CD http_load-12mar2006
Make
After make, a http_load binary file is generated in the current directory.
3, the use of methods
The code is as follows:
root@www:~/http_load-12mar2006#./http_load--help
Usage:./http_load [-checksum] [-throttle] [-proxy host:port] [-verbose] [-timeout secs] [-sip Sip_file]
-parallel N | -rate N [-jitter]
-fetches N | -seconds N
Url_file
One start specifier, Either-parallel or-rate, is required.
One end specifier, either-fetches or-seconds, is required.
Main parameter Description:
-parallel-P: Meaning is the number of concurrent user processes.
-rate-R: Meaning is the frequency of access per second
-fetches-F: Meaning is the total number of visits
-seconds-S: Meaning is the total access time
When selecting a parameter,-parallel and-rate choose one of them,-fetches and-seconds select one.
4, Examples:
The code is as follows:
Http_load-parallel 50-s Urls.txt
This command line uses 50 simultaneous processes and randomly accesses the list of URLs in Urls.txt for a total of 10 seconds.
The code is as follows:
Http_load-rate 50-f 5000 Urls.txt
50 requests per second, Total request 5,000 stops.
Test the average number of visits per second that the site can withstand:
The code is as follows:
Http_load-parallel 5-fetches 1000urls.txt
This command line uses 5 processes simultaneously, randomly accesses the list of URLs in Urls.txt, and accesses a total of 1000 times. Results after run:
1000 fetches, 5 max parallel, 6e+06 bytes, in 58.1026 seconds
6000 mean bytes/connection
17.2109 fetc Hes/sec, 103266 bytes/sec
msecs/connect:0.403263 mean, 68.603 max, 0.194 min
msecs/first-response:284.133 mean, 5410.13 Max, 55.735 min
HTTP response codes:
Code 200-1000
from the results above, the target site can only withstand 17 visits per second, not strong enough.