ab "apr_socket_recv: Connection reset by peer" 错误解决
来源:互联网 发布:java多线程上传 编辑:程序博客网 时间:2024/05/12 21:47
来源:http://blog.csdn.net/largetalk/article/details/7337102
在ubuntu 11.04上的ab(apache-utils)有些问题, 在并发数稍微大点(大概3,400)的情况下就会报 apr_socket_recv: Connection reset by peer 错误,这肯定会影响我们使用, 所以需要自己编译一个。
从 https://code.google.com/p/apachebench-standalone/downloads/detail?name=ab-standalone-0.1.tar.bz2&can=2&q= 下载ab 源代码
这篇文章 https://code.google.com/p/apachebench-standalone/wiki/HowToBuild 基本上可以使用,里面有些url,如apr, apr-utils的下载地址不对, 到这里http://apr.apache.org/download.cgi 去下载下来就行了。
vi ab.c 到1392行左右,将代码改成如下:
- 1390 return;
- 1391 } else {
- 1392 //apr_err("apr_socket_recv", status);
- 1393 bad++;
- 1394 close_connection(c);
- 1395 return;
- 1396 }
0 0
- ab "apr_socket_recv: Connection reset by peer" 错误解决
- ab "apr_socket_recv: Connection reset by peer" 错误解决
- apr_socket_recv: Connection reset by peer 错误
- Apache ab - apr_socket_recv: Connection reset by peer (104)
- SSH连接阿里云错误:Connection reset by peer解决
- 关于[10054] Connection reset by peer 错误
- Connection reset by peer 的解决
- redis Error: Connection reset by peer 解决
- Connection reset by peer
- Connection reset by peer
- Connection reset by peer
- Connection reset by peer
- Connection reset by peer: socket write error错误分析及解决
- Connection reset by peer: socket write error错误分析及解决
- Connection reset by peer: socket write error错误分析及解决
- Connection reset by peer: socket write error错误分析及解决
- Connection reset by peer: socket write error错误分析及解决 .
- putty "connection reset by peer"
- BZOJ 1002 - 奇妙的题目 + 高精度
- android实现从系统图库中选择图片,设置到界面上的ImageView控件上。
- Set输出有序结果
- android小知识点汇总贴
- C语言培训总结
- ab "apr_socket_recv: Connection reset by peer" 错误解决
- java 子类重载父类
- 【跟我学spring 4.0 】之第七节-spring使用外部属性文件-spring配置连接oracle数据库
- idea 使用 问题
- box2d
- Linux Network
- 致敬:伤情迷茫的2015
- 自学Python之变量
- 基于javaConfig的springDataJpa+dubbo+springMvc搭建(一)