Pressure Measuring tools:
Brief introduction:
Siege website Address http://www.joedog.org/
Installation:
wget http://download.joedog.org/siege/siege-3.0.8.tar.gz
Tar xzvf siege-3.0.8.tar.gz
CD siege-3.0.8
./configure
Make && make install
[[email protected] www]# Find/-name ' siege '
/home/yeqing/siege-3.0.8/src/siege
/usr/local/bin/siege
/usr/local/bin/siege-h
Prepare a test URL or URL list file
Pressure measurement:
20 users (each concurrency, note not the concurrency per second) 10 times a total of 20 * 10 = 200 requests are as follows:
Case 1:
[[email protected] www]#/home/yeqing/siege-3.0.8/src/siege php./test.php-b-c20-r10
* * SIEGE 3.0.8
* * Preparing concurrent users for battle.
The server is now under siege ...
Done.
transactions:0 Hits
availability:0.00%
Elapsed time:0.13 secs
Data transferred:0.00 MB
Response time:0.00 secs
Transaction rate:0.00 trans/sec
throughput:0.00 mb/sec
concurrency:0.00
Successful transactions:0
Failed transactions:200
Longest transaction:0.00
Shortest transaction:0.00
FILE:/usr/local/var/siege.log
Can disable this annoying message by editing
The. siegerc file in your home directory; Change
The directive ' Show-logfile ' to false.
Description:-c is the concurrency,-R is the number of repetitions. Url_list.txt is a text file, each line is a URL, it will be randomly accessed from the inside.
Case 2:
Cat Url_list.txt
Curl-d ' name=ye&age=18 ' www.demo.com/test.php
Curl-d ' name=yeqing&age=18 ' www.demo.com/test.php
[Email protected] www]#/usr/local/bin/siege-b-c20-r10-f url_list.txt
* * SIEGE 3.0.8
* * Preparing concurrent users for battle.
The server is now under siege ...
Done.
transactions:0 Hits
availability:0.00% success Rate
Elapsed time:1.99 secs Total use time
Data transferred:0.00 MB co-transmitted 0MB
Response time:0.00 secs response time, showing the speed of the network connection
Transaction rate:0.00 trans/sec average 0 processing per second
throughput:0.00 mb/sec Average data transfer per second
concurrency:0.00 actual maximum number of concurrent connections
Successful transactions:0 successful processing times
Failed transactions:200 failure Processing times
Longest transaction:0.00 maximum time per transfer
Shortest transaction:0.00 the shortest time per transmission
FILE:/usr/local/var/siege.log
Can disable this annoying message by editing
The. siegerc file in your home directory; Change
The directive ' Show-logfile ' to false.
Case 3:
/usr/local/bin/siege-b-c100-r10 Dig www.baidu.com
Lifting the server siege ... done.
transactions:152 Hits
availability:96.82%
Elapsed time:159.40 secs
Data transferred:4.09 MB
Response time:4.12 secs
Transaction rate:0.95 trans/sec
throughput:0.03 mb/sec
concurrency:3.93
Successful transactions:152
Failed Transactions:5
Longest transaction:17.93
Shortest transaction:0.12
FILE:/usr/local/var/siege.log
Can disable this annoying message by editing
The. siegerc file in your home directory; Change
The directive ' Show-logfile ' to false.
This article from the "Development and operation of the" blog, declined to reprint!
Siege performance Test