日期:2014-05-17  浏览次数:20799 次

如何实现基于filter的html静态化
AB测试数据,显示处理速度接近提升20倍(红色文字),并且在未开启时出现了大量的失败

引用


mysql连接为默认设置

ERROR [http-80-5] JDBCExceptionReporter.logExceptions(78) | Unable to connect to any hosts due to exception: java.net.SocketException: java.net.ConnectException: Connection refused: connect

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused: connect

STACKTRACE:

java.net.SocketException: java.net.ConnectException: Connection refused: connect





引用


启用缓存时测试数据,红字部分

C:\Documents and Settings\Administrator>ab -n 1000 -c 10 http://www.abc.com/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.abc.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests


Server Software:        Apache-Coyote/1.1
Server Hostname:        www.abc.com
Server Port:            80

Document Path:          /
Document Length:        0 bytes

Concurrency Level:      10
Time taken for tests:   10.172 seconds
Complete requests:      1000
Failed requests:        0

Write errors:           0
Non-2xx responses:      1000
Total transferred:      109000 bytes
HTML transferred:       0 bytes
Requests per second:    98.31 [#/sec] (mean)
Time per request:       101.719 [ms] (mean)

Time per request:       10.172 [ms] (mean, across all concurrent requests)
Transfer rate:          10.46 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.9      0      16
Processing:    16  101  11.4    109     125
Waiting:        0   51  27.7     47     109
Total:         16  101  11.4    109     125

Percentage of the requests served within a certain time (ms)
  50%    109
  66%    109
  75%    109
  80%    109
  90%    109
  95%    109
  98%    109
  99%    109
100%    125 (longest request)