nginx服务,HTTPS_性能测试调优(辅助同事一起测试研究的)

本文记录了一次针对Nginx HTTPS服务的性能测试和调优过程,通过ApacheBench进行压测,调整SSL算法和缓存设置,观察并发请求完成时间和单一请求完成时间等指标,但结果显示性能提升不明显。测试方法包括增量测试Nginx参数、不同浏览器访问、WireShark抓包等,最终发现瓶颈可能在于证书验证时间,且存在SSL会话重用失败的问题。
摘要由CSDN通过智能技术生成

通过线下虚拟机做实际测试,寻找 SSL 的优化方法

[root@fcdtest-haproxy ~]# ab -n 10000 -c 100 https://imga.yukusoft.com/cdntest.apk
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 imga.yukusoft.com (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:        nginx/1.9.9
Server Hostname:        imga.yukusoft.com
Server Port:            443
SSL/TLS Protocol:       TLSv1/SSLv3,ECDHE-RSA-AES256-GCM-SHA384,2048,256

Document Path:          /cdntest.apk
Document Length:        1895420 bytes

Concurrency Level:      100
Time taken for tests:   113.134 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      18966427184 bytes
HTML transferred:       18963635789 bytes
Requests per second:    88.39 [#/sec] (mean)
Time per request:       1131.335 [ms] (mean)
Time per request:       11.313 [ms] (mean, across all concurrent requests)
Transfer rate:          163717.15 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       10   83  59.0     68     532
Processing:    22 1046  88.5   1056    1572
Waiting:        0   27  23.7     20     228
Total:         32 1129 106.6   1123    2088

Percentage of the requests served within a certain time (ms)
  50%   1123
  66%   1132
  75%   1141
  80%   1148
  90%   1179
  95%   1225
  98%   1291
  99%   1369
 100%   2088 (longest request)


[root@fcdtest-haproxy ~]# ab -n 10000 -c 100 https://imga.yukusoft.com/cdntest.apk
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 imga.yukusoft.com (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:        nginx/1.9.9
Server Hostname:        imga.yukusoft.com
Server Port:            443
SSL/TLS Protocol:       TLSv1/SSLv3,ECDHE-RSA-AES256-GCM-SHA384,2048,256

Document Path:          /cdntest.apk
Document Length:        1895420 bytes

Concurrency Level:      100
Time taken for tests:   113.258 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      18968364194 bytes
HTML transferred:       18965572520 bytes
Requests per second:    88.29 [#/sec] (mean)
Time per request:       1132.585 [ms] (mean)
Time per request:       11.326 [ms] (mean, across all concurrent requests)
Transfer rate:          163553.27 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       10   81  58.4     64     539
Processing:    23 1049  90.2   1061    1736
Waiting:        1   25  22.9     17     231
Total:         33 1130 108.6   1125    2241

Percentage of the requests served within a certain time (ms)
  50%   1125
  66%   1134
  75%   1140
  80%   1144
  90%   1156

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值