Siege
an open-source stress testing tool that can be configured to a The WEB site makes concurrent access to multiple users, records the appropriate time for each user's request process, and repeats under a certain number of concurrent accesses.
official:http://www.joedog.org/
Siege Download:http://soft.vpser.net/test/siege/siege-2.67.tar.gz
Extract:
# TAR-ZXF Siege-2.67.tar.gz
Go to unzip directory:
# CD siege-2.67/
Installation:
#./configure
# make
# make Install
Mkdir-p/usr/local/var/
/usr/local/var/siege.log # Log Path
Ulimit-shn 65535 # Modify the maximum number of open files (equivalent to the maximum number of connections )
Use
-C # is a concurrent volume
-R # is the number of repetitions
-F # Specifies the text, each line is a URL, it will be randomly accessed from the inside
Siege-c 200-r http://jj01.com/# single page
#cat Example.url
http://127.0.0.1
Http://127.0.0.1/index.html
Siege-c 200-r 10-f Example.url # multiple pages
ttp/1.1 0.03 secs:8 bytes ==>/
http/1.1 0.03 secs:8 bytes ==>/
http/1.1 0.01 secs:8 bytes ==>/index.html
http/1.1 0.01 secs:8 bytes ==>/index.html
http/1.1 0.01 secs:8 bytes ==>/index.html
http/1.1 0.01 secs:8 bytes ==>/index.html
http/1.1 0.01 secs:8 bytes ==>/index.html
http/1.1 0.01 secs:8 bytes ==>/index.html
http/1.1 0.02 secs:8 bytes ==>/index.html
http/1.1 0.02 secs:8 bytes ==>/index.html
http/1.1 0.02 secs:8 bytes ==>/index.html
http/1.1 0.01 secs:8 bytes ==>/index.html
http/1.1 0.01 secs:8 bytes ==>/index.html
http/1.1 0.01 secs:8 bytes ==>/index.html
http/1.1 0.01 secs:8 bytes ==>/index.html
http/1.1 0.01 secs:8 bytes ==>/index.html
http/1.1 0.01 secs:8 bytes ==>/
http/1.1 0.01 secs:8 bytes ==>/index.html
http/1.1 0.01 secs:8 bytes ==>/
http/1.1 0.01 secs:8 bytes ==>/index.html
http/1.1 0.01 secs:8 bytes ==>/
http/1.1 0.01 secs:8 bytes ==>/
http/1.1 0.00 Secs:8 Bytes ==>/
http/1.1 0.00 Secs:8 Bytes ==>/
http/1.1 0.00 Secs:8 Bytes ==>/index.html
http/1.1 0.00 Secs:8 Bytes ==>/
http/1.1 0.00 Secs:8 Bytes ==>/
http/1.1 0.00 Secs:8bytes ==>/index.html
http/1.1 0.00 Secs:8 Bytes ==>/index.html
http/1.1 0.00 Secs:8 Bytes ==>/index.html
http/1.1 0.00 Secs:8 Bytes ==>/index.html
http/1.1 0.00 Secs:8 Bytes ==>/index.html
http/1.1 0.00 Secs:8 Bytes ==>/
http/1.1 0.00 Secs:8 Bytes ==>/
http/1.1 0.00 Secs:8 Bytes ==>/
http/1.1 0.00 Secs:8 Bytes ==>/index.html
http/1.1 0.00 Secs:8 Bytes ==>/
Result description
Lifting the server siege ... done.
transactions:3419263 hits # complete 419263 processing
availability:100.00%//100.00% # success rate
Elapsed time:5999.69 secs # Total time
Data transferred:84273.91 MB # Total data transfer 84273.91 MB
Response time:0.37 secs # corresponding time 1.65 seconds: Shows the speed of the network connection
Transaction rate:569.91 trans/sec # All 569.91 processing is completed per second : After the server is represented
throughput:14.05 Mb/sec # Average data transfer per second
concurrency:213.42 # Actual maximum number of concurrent
Successful transactions:2564081 # successful processing times
Failed Transactions:11 # failed processing times
Longest transaction:29.04 # maximum time per transfer
Shortest transaction:0.00 # The shortest time spent on each transfer
Siege Linux Stress Assessment