apache benchmark(ab)对Nodejs服压测POST请求时出现: apr_poll: The timeout specified has expired (70007) 问题的解决办法
来源:互联网 发布:xfiles theme知乎 编辑:程序博客网 时间:2024/06/01 19:10
网上找了很多帖子说在参数中加-k (keep-alive) 但都没有用,有一个帖子说这是因为ab对HTTP1.1支持不够好,发送的是1.0的请求,以至于让Nodejs关闭了连接。(说是Nodejs的bug)
具体原因还有待考究,但问题已经解决。
解决办法:
例如原本请求:
ab -c 10000 -n 10000 -p ~/ReaT_Data.json -T ‘application/json’ http://—-:80/post
换成:
ab -c 10000 -n 10000 -p ~/ReaT_Data.json -H ‘Content-Type:application/json’ http://—-:80/post
即可。
原因可能是因为ab组织POST的头部的时候出现问题?
0 0
- apache benchmark(ab)对Nodejs服压测POST请求时出现: apr_poll: The timeout specified has expired (70007) 问题的解决办法
- Laravel框架post的路由出现The page has expired due to inactivity. Please refresh and try again.
- 执行请求的操作时遇到错误: ORA-28001: the password has expired 28001. 00000
- error code 121:The semaphore timeout period has expired.
- ORA-28001: the password has expired解决办法
- ORA-28001: the password has expired解决办法
- 解决viewpaper与frament时出现的The specified child already has a parent. You must call removeView()问题
- AB 测试 apache benchmark
- Apache Benchmark(ab)使用
- 使用apache ab命令压力测试时发送post请求
- apache bench(ab) 压测,模拟post请求
- AB --- APACHE自带的压力测试工具 (APACHE BENCHMARK )
- Your password has expired的解决办法
- apache http benchmark tool--ab
- oracle 账号过期的解决办法 ORA-28001 ,28002 the password has expired
- 利用Apache的ab命令做Benchmark性能测试
- the password has expired
- the password has expired
- 两种方式实现在百度云上自由下载大文件和文件夹
- nginx1.8.1(稳定版本) nginx.conf 配置文件详解二
- GCdepth散点图绘制
- phpRedis函数使用总结【分类详细】
- 10005---全文检索引擎Solr系列—–全文检索基本原理
- apache benchmark(ab)对Nodejs服压测POST请求时出现: apr_poll: The timeout specified has expired (70007) 问题的解决办法
- iOS - 仿射变换
- redis_主从配置以及自动切换
- 179. Largest Number
- 如何自定义一个带删除功能的EditText
- 1.闭包
- HDU 2492 (树状数组)
- php中使用exec,system等函数调用系统命令
- 淘宝Diamond架构分析