Apache https很慢

更新资料 我改用1024位密钥,并在ssl.conf文件中更改了SSLCipherSuite。 SSLCipherSuite RC4 + RSA:+高:+中:+低:+ SSLv2:+ EXP

嘿,

我已将Apache设置为将SSL与自签名证书一起使用。

使用https(KeepAlive启用),我每秒可以收到3000多个请求。但是,使用https(关闭KeepAlive)时,我每秒只能收到13个请求。

我知道应该有一些开销,但这似乎很不正常。谁能建议我如何进行调试。

这是https的ab日志:

Server Software:        Apache/2.2.3
Server Hostname:        127.0.0.1
Server Port:            443
SSL/TLS Protocol:       TLSv1/SSLv3,DHE-RSA-AES256-SHA,4096,256

Document Path:          /hello.html
Document Length:        29 bytes

Concurrency Level:      5
Time taken for tests:   30.49425 seconds
Complete requests:      411
Failed requests:        0
Write errors:           0
Total transferred:      119601 bytes
HTML transferred:       11919 bytes
Requests per second:    13.68 [#/sec] (mean)
Time per request:       365.565 [ms] (mean)
Time per request:       73.113 [ms] (mean, across all concurrent requests)
Transfer rate:          3.86 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:      190  347  74.3    333     716
Processing:     0   14  24.0      1     166
Waiting:        0   11  21.6      0     165
Total:        191  361  80.8    345     716

Percentage of the requests served within a certain time (ms)
  50%    345
  66%    377
  75%    408
  80%    421
  90%    468
  95%    521
  98%    578
  99%    596
 100%    716 (longest request)