Live Brilliant

아파치 최적화 테스트 본문

개발은 핵찜이야/리눅스

아파치 최적화 테스트

주인정 2012. 4. 13. 17:52

-c(한번에수행할 다중요구수) 값을 1000으로하고,
-n(페이지요청수) 값을 1000 으로 하였으며
-t(테스트허용 최대시간)값을 10으로 주었다.
-------------------------------------------------
[root@superad ~]# /usr/local/apache/bin/ab -c 1000 -n 1000 -t 10 http://192.168.0.224/
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.0.224 (be patient)
Completed 5000 requests
Finished 5047 requests


Server Software: Apache/2.2.11
Server Hostname: 192.168.0.224
Server Port: 80

Document Path: /
Document Length: 40 bytes

Concurrency Level: 1000
Time taken for tests: 10.2553 seconds
Complete requests: 5047
Failed requests: 0
Write errors: 0
Total transferred: 1135800 bytes
HTML transferred: 201920 bytes
Requests per second: 504.57 [#/sec] (mean)
Time per request: 1981.881 [ms] (mean)
Time per request: 1.982 [ms] (mean, across all concurrent requests)
Transfer rate: 110.87 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 1 428 1310.2 4 9010
Processing: 130 742 1223.9 302 9163
Waiting: 127 737 1222.0 300 9160
Total: 170 1171 1810.9 336 9594

Percentage of the requests served within a certain time (ms)
50% 336
66% 512
75% 914
80% 1446
90% 3498
95% 4782
98% 7121
99% 9410
100% 9594 (longest request)


---------------------------------------
192.168.0.224 웹서버의 80번 포트로 1초에 1000개씩 총 20000개의 접속을 만들었다.
---------------------------------------
[root@superad httperf-0.9.0]# httperf --server 192.168.0.224 --port 80 --rate 1000 --num-conns 20000 --hog
httperf --hog --client=0/1 --server=192.168.0.224 --port=80 --uri=/ --rate=1000 --send-buffer=4096 --recv-buffer=16384 --num-conns=20000 --num-calls=1
Maximum connect burst length: 8

Total: connections 12816 requests 12816 replies 12816 test-duration 31.483 s

Connection rate: 407.1 conn/s (2.5 ms/conn, <=1022 concurrent connections)
Connection time [ms]: min 14.0 avg 1679.1 max 27055.0 median 396.5 stddev 2928.5
Connection time [ms]: connect 1063.6
Connection length [replies/conn]: 1.000

Request rate: 407.1 req/s (2.5 ms/req)
Request size [B]: 66.0

Reply rate [replies/s]: min 14.2 avg 426.9 max 661.7 stddev 264.5 (6 samples)
Reply time [ms]: response 615.5 transfer 0.0
Reply size [B]: header 166.0 content 40.0 footer 0.0 (total 206.0)
Reply status: 1xx=0 2xx=12816 3xx=0 4xx=0 5xx=0

CPU time [s]: user 0.99 system 30.46 (user 3.1% system 96.8% total 99.9%)
Net I/O: 108.1 KB/s (0.9*10^6 bps)

Errors: total 7184 client-timo 0 socket-timo 0 connrefused 0 connreset 0
Errors: fd-unavail 7184 addrunavail 0 ftab-full 0 other 0
[root@superad httperf-0.9.0]#

Comments