Apache Benchmark HTTPS失败 [英] Apache Benchmark HTTPS failing

查看:387
本文介绍了Apache Benchmark HTTPS失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu虚拟机中使用Apache 2.4.2. 我用它来加载测试,将请求发送到一些HTTPS URL. 失败的请求数为零.但是我的任何请求都无法真正处理(已经在数据库中查找). 使用相同的url,可以通过浏览器调用它(数据库已更新). 因此,这纯粹是Apache Benchmark的问题. 这是我的Apache Benchmark命令:

I'm using Apache 2.4.2 in Ubuntu virtual machine. I use this to load test, sending request to some HTTPS url. Number of failed request is zero. But none of my request can truly be processed (looked up in database already). With the same url, invoke it through the browser is ok (database updated). So it was purely the issue of Apache Benchmark. Here's my Apache Benchmark command:

# ab -n 100 -c 10 -k -f ALL -g "/home/administrator/Desktop/g.txt" -e "home/administrator/Desktop/e.txt" "https://mysecuredurl.com/MyWCF.svc/POX/MyMethod?arg=something"

当我省略-k参数时,SSL连接清楚地表明它们是问题所在:

When I omit -k argument, SSL connection shown out clearly that they're the issue:

SSL读取失败-关闭连接

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:      845  851   4.0    852     857
Processing:   218  232  20.4    229     286
Waiting:      218  232  20.4    229     286
Total:       1068 1083  19.6   1076    1131

有人知道如何解决此问题,以便我可以将Apache Benchmark用于HTTPS(通过SSL)问题的负载测试吗? 谢谢

Does anyone know how to solve this issue, in order that I can utilize Apache Benchmark for my load test with HTTPS, passing-by SSL issue ? Thanks

推荐答案

当我将ab与https URL一起使用时,它把我带出此消息 未编译SSL;没有https支持

When I used ab with a https URL, it threw me out with this message SSL not compiled in; no https support

使用 abs

这篇关于Apache Benchmark HTTPS失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆