Question: Stress and performance testing tools I think it is easy to get started and there are three types
Http_load
Download Address: http://www.acme.com/software/http_load/http_load-12mar2006.tar.gz The program is very small. After decompression, less than 100 k of home travel is convenient. Http_load runs in Parallel Multiplexing to test the Web server throughput and load. However, unlike most stress testing tools It can run in a single process, and generally does not kill the client. You can test https-type website requests. Command Format: http_load-P concurrent access process count-s URL file to be accessed during access time For example: Reference
Http_load-P 30-S 60 urllist.txt prepare the URL File: TST. List. The file format is one URL per line. It is better to test the URL with more than 50-URLs. The main indicator in the result is the fetches/sec option, that is, the number of queries that the server can respond to per second. This indicator is used to measure the performance. It seems that compared with Apache's AB The accuracy is higher and more convincing. Official example: Reference %./Http_load-rate 10-seconds 60 urllist.txt 49 fetches, 4 Max parallel, 289884 bytes, in 10.0148 seconds 5916 mean Bytes/connection 4.89274 fetches/sec, 28945.5 Bytes/sec Msecs/Connect: 28.8932 mean, 44.243 Max, 24.488 min Msecs/first-response: 63.5362 mean, 81.624 Max, 57.803 min 4.89274 fetches/sec. This value means that the server can respond to about 4.8 queries per second. This value is calculated based on 49 fetches/10.0148 seconds. Webbench
Webbench is a Linux Next website stress testing tool You can simulate up to 30 thousand concurrent connections to test the load capacity of the website. You can go to Baidu Google search. Here is : Http://cid-9601b7b7f2063d42.skydrive.live.com/self.ASP */Public/webbench-1.5.tar.gz
This program is smaller. It will be less than 50 kb after decompression. Easy to install # Tar zxvf webbench-1.5.tar.gz # Cd webbench-1.5 # Make & make install The webbench executable file is generated in the current directory and can be used directly. Usage: Webbench-C concurrency-t run test time URL For example: Webbench-C 5000-T 120 http://www.askwan.com Keywords: three web performance stress testing tools http_load webbench AB Summary AB
AB Is a powerful test tool provided by Apache. Apache is installed, You can view its description. Reference
$./AB ./AB: Wrong number of arguments Usage:./AB [Options] [http: //] hostname [: Port]/path Options are: -N requests number of requests to perform -C concurrency number of multiple requests to make -T timelimit seconds to max. Wait for responses -P postfile file containing data to post -T Content-Type Header for posting -V verbosity how much troubleshooting info to print -W print out results in HTML Tables -I use head instead of get -X attributes string to insert as table attributes -Y attributes string to insert As tr attributes -Z attributes string to insert as TD or th attributes -C attribute add cookie, eg. 'apache = 1234. (repeatable) -H attribute add arbitrary header line, eg. 'Accept-encoding: gzip' Inserted after all normal header lines. (repeatable) -A attribute add basic WWW authentication, the attributes Are a colon separated username and password. -P attribute add basic proxy authentication, the attributes Are a colon separated username and password. -X Proxy: Port proxyserver and port number to use -V print version number and exit -K use HTTP keepalive feature -D do not show percentiles served table. -S do not show confidence estimators and warnings. -G filename output collected data to gnuplot format file. -E filename output CSV file with percentages served -H display usage information (this message) There are many parameters. Generally we use-N and-C. For example: ./AB-C 1000-N 100 http://www.askwan.com/index.php
|