Ab Error Apr_socket_recv Connection Reset By Peer 104
Contents |
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about recv failed 104 connection reset by peer hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask error recv connection reset by peer rdesktop ubuntu Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up apr_socket_recv: connection reset by peer (104) nginx Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Understanding this error: apr_socket_recv: Connection reset by peer (104) up vote 10 down vote favorite 2
Apr_socket_connect(): Operation Already In Progress (37)
So, if I do some benchmarking with apache benchmark (ab), and I use large numbers of requests. Then sometimes in the middle of a test I get this error. I don't even know what it means. So how can I fix it? Or is it just something that will happen if the server gets too many hits anyway? The problem is, if I run 10,000 hits, it'll all run perfectly. If I run it again, it'll get to 4000 apr_socket_recv: connection timed out (110) and get the error: apr_socket_recv: Connection reset by peer (104) A little about my setup: I have nginx taking static requests and processing dynamic ones to apache. The file in question is served from cache by nginx, so I guess it's probably got to do with how nginx is handling the requests? Ideas? apache-2.2 nginx connection benchmark share|improve this question asked May 30 '10 at 0:59 Matthew 56431129 add a comment| 3 Answers 3 active oldest votes up vote 3 down vote accepted The error means that the other end (webserver) suddenly disconnected in the middle of the session. have a look at the apache or nginx error logs to see if there is anything suspicious there. share|improve this answer answered May 30 '10 at 7:43 Aleksandar Ivanisevic 2,9051018 add a comment| up vote 3 down vote It means that server is heavly loaded with the request i.e, all the threads are busy serving the request. Solution : either increase the maxThread attribute count for connector in server.xml file or increase acceptCount attribute value. acceptcount : The maximum queue length for incoming connection requests when all possible request processing threads are in use. Any requests received when the queue is full will be refused. share|improve this answer answered Mar 13 '14 at 7:21 Kushal Bafna 311 add a comment| up vote 0 down vote I had same problem and my server version was: Server Version
APC + WP object caching to APC APC + fast_cgi caching apr_socket_recv: connection reset by peer (54) to tmpfs so to admire my work I tried running an
Apr_pollset_poll: The Timeout Specified Has Expired (70007)
ab test from another server:ab -n 2000 -c 200 http://pacura.ru/ This is ApacheBench, Version 2.3 Copyright 1996
Socket: Too Many Open Files (24)
Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking pacura.ru (be patient)
Completed 200 requests
Completed 400 requests
Completed 600 requests
Completed 800 requests
Completed 1000 requests
apr_socket_recv: http://serverfault.com/questions/146605/understanding-this-error-apr-socket-recv-connection-reset-by-peer-104 Connection reset by peer (104)
Total of 1087 requests completed
from GoogleSign inHidden fieldsSearch for groups or messages
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Apache Bench test erroron OS X: “apr_socket_recv: Connection reset by peer (54)” up vote 46 down vote favorite 18 I updated my MacBook Pro 13" to Lion a few weeks ago. I just found out that Apache Bench (apache2.2.19) is not working. It always shows this error, no matter what: apr_socket_recv: Connection reset by peer (54) I also did a clean install on my Mac Mini and it produced the same error. How can I fix this? osx-lion apache-http-server share|improve this question edited Sep 14 '11 at 19:16 slhck 125k38310359 asked Aug 16 '11 at 11:14 ben 331136 I too am getting these.. I get them while testing a small Go web server, and with a Python Gevent server. –Justin Sep 30 '11 at 6:15 add a comment| 6 Answers 6 active oldest votes up vote 55 down vote Note that if you use -r with Apache Bench, it won't exit on errors. From the documentation: -r Don't exit on socket receive errors. share|improve this answer edited Sep 14 '11 at 19:15 slhck 125k38310359 answered Sep 14 '11 at 15:54 Miles 55932 8 It should except it's wrong. I just tried to run: ab -n 200 -c 20 -r http://localhost and got (god forbid a comment have newlines!) Test aborted after 10 failures apr_socket_connect(): Operation already in progress (37) Total of 4 requests completed –umassthrower Jun 15 '12 at 4:13 1 unfortunately it still exits –DataGreed Sep 5 '12 at 22:46 Worked for me on OS X 10.9 –Willem Sep 17 '14 at 1:32 add a comment| up vote 42 down vote This is due to