何晓杰Dev

关注

ab 压测 apr_socket_recv: Connection reset by peer (104)

何晓杰Dev

关注

阅读 8

2022-05-27

vi /etc/sysctl.conf

net.nf_conntrack_max = 655360

net.netfilter.nf_conntrack_tcp_timeout_established = 1200

sysctl -p /etc/sysctl.conf

修改后,重新启用apache ab 进行测试,问题解决。

想多了 还是有报错

解决方案来了:

加个参数

ab -n 100000 -c20000 -r  http://xxxxurl/

 


相关推荐

金刚豆

ab压力测试报错: apr_socket_recv: Connection reset by peer (104)

金刚豆 108 0 0

后来的六六

ConnectionResetError: [Errno 104] Connection reset by peer

后来的六六 71 0 0

吃面多放酱

curl: (56) Recv failure: Connection reset by peer

吃面多放酱 151 0 0

Python百事通

ConnectionResetError: [Errno 104] Connection reset by peer|4-16

Python百事通 85 0 0

才德的女子

curl: (56) Recv failure: Connection reset by peer问题解决

才德的女子 189 0 0

转角一扇门

Hue 报错 hue [Errno 104] Connection reset by peer (code THRIFTSOCKET): None

转角一扇门 72 0 0

以前干嘛去了

php curl 出现 Recv failure: Connection was reset

以前干嘛去了 46 0 0

正义的杰克船长

filebeat报错write: connection reset by peer

正义的杰克船长 31 0 0

Android开发指南

linux之errno值为104(connetction reset by peer)

Android开发指南 54 0 0

张宏涛心理

Apache的ab测压

张宏涛心理 63 0 0

精彩评论(0)

0 0 举报