Tomcat 6 최적화

3391 단어 htmlC++cjspC#

<Connector port="8080" protocol="HTTP/1.1" 
               redirectPort="8443"
               connectionTimeout="20000"
               />
   :
<Connector port="8080" protocol="HTTP/1.1" 
               maxHttpHeaderSize="8192" useBodyEncodingForURI="true"
               maxThreads="1000" minSpareThreads="25" maxSpareThreads="75"
               redirectPort="8443"
               enableLookups="false"
               compression="on" 
               compressionMinSize="2048"
               compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain" 
               connectionTimeout="20000"
               disableUploadTimeout="true"
               />
ab -c 1000 -n 10000 http://www.xxx.com/index.jsp

Document Path:          /index.jsp
Document Length:        337 bytes

Concurrency Level:      1000
Time taken for tests:   11.892186 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      5891178 bytes
HTML transferred:       3370674 bytes
Requests per second:    840.89 [#/sec] (mean)
Time per request:       1189.219 [ms] (mean)
Time per request:       1.189 [ms] (mean, across all concurrent requests)
Transfer rate:          483.76 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   10 230.3      0    9000
Processing:     0  743 2564.5     33   11859
Waiting:        0  742 2564.3     33   11859
Total:          1  753 2578.3     33   11883

Percentage of the requests served within a certain time (ms)
  50%     33
  66%     37
  75%     39
  80%     40
  90%    156
  95%   3952
  98%  11844
  99%  11865
 100%  11883 (longest request)


수정 후 테스트 결과:

Document Path:          /index.jsp
Document Length:        337 bytes

Concurrency Level:      1000
Time taken for tests:   1.827710 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      5952434 bytes
HTML transferred:       3405722 bytes
Requests per second:    5471.33 [#/sec] (mean)
Time per request:       182.771 [ms] (mean)
Time per request:       0.183 [ms] (mean, across all concurrent requests)
Transfer rate:          3179.94 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   37  30.0     30     128
Processing:    36  140  48.6    147     351
Waiting:        4   83  39.9     77     306
Total:         68  178  53.5    187     475

Percentage of the requests served within a certain time (ms)
  50%    187
  66%    198
  75%    202
  80%    205
  90%    212
  95%    220
  98%    230
  99%    430
 100%    475 (longest request)


좋은 웹페이지 즐겨찾기