ab test error apr_socket_recv: Connection reset by peer (54)

7,126 views
Skip to first unread message

ben

unread,
Aug 15, 2011, 9:58:56 PM8/15/11
to nodejs
Hey guys
I upgraded my macbook pro to lion
and now I got 'error apr_socket_recv: Connection reset by peer (54)'
error when i run
apache ab test with the following command

ab -n 5000 -c 100 http://127.0.0.1:3000/

errors

This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient)
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
Send request failed!
apr_socket_recv: Connection reset by peer (54)
Total of 50 requests completed

even if I set the concurrent to 1
I still got the same error

Is there anyone had the same error or know a fix?

ben :)


mscdex

unread,
Aug 15, 2011, 10:04:40 PM8/15/11
to nodejs
On Aug 15, 9:58 pm, ben <b...@dreamerscorp.com> wrote:
> Hey guys
> I upgraded my macbook pro to lion
> and now I got 'error apr_socket_recv: Connection reset by peer (54)'
> error when i run
> apache ab test with the following command
>
> ab -n 5000 -c 100http://127.0.0.1:3000/

Are you sure you have something listening on port 3000? Can you verify
with a browser, curl, or netstat?

ben

unread,
Aug 15, 2011, 10:12:31 PM8/15/11
to nod...@googlegroups.com
Yes, I run my nodejs project on port 3000
I can access it with any browser and curl
it runs just fine with exactly the same code on mac osx 10.6 
but not on lion with apache 2.2.19

ben 

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

ben

unread,
Aug 15, 2011, 10:14:30 PM8/15/11
to nod...@googlegroups.com
By the way i also tried it on my mac mini with osx upgraded to lion
and it shows the same error as well


ben

Carlos Leite

unread,
Aug 15, 2011, 11:37:20 PM8/15/11
to nod...@googlegroups.com
I've got that error after update my MacBook pro to Lion

Regards

Leite

Sent from my iPhone

Duncan Grazier

unread,
Aug 16, 2011, 8:45:29 AM8/16/11
to nod...@googlegroups.com
I get that error when I am trying to run ab or siege with too many concurrent users. Somewhere around 75 seems to be the cutoff. I haven't fixed it, but it seems related to a socket-limit issue.
Warm regards,

Duncan Grazier

Outsider

unread,
Aug 16, 2011, 11:21:05 PM8/16/11
to nod...@googlegroups.com

i have same error on lion.

2011. 8. 17. 오전 7:57에 "Duncan Grazier" <itsme...@gmail.com>님이 작성:

> I get that error when I am trying to run ab or siege with too many
> concurrent users. Somewhere around 75 seems to be the cutoff. I haven't
> fixed it, but it seems related to a socket-limit issue.
>
> On Mon, Aug 15, 2011 at 11:37 PM, Carlos Leite <lei...@gmail.com> wrote:
>
>> I've got that error after update my MacBook pro to Lion
>>
>> Regards
>>
>> Leite
>>
>> Sent from my iPhone
>>
>> On 15/08/2011, at 23:14, ben < <b...@dreamerslab.com> <b...@dreamerslab.com><b...@dreamerslab.com>

>> b...@dreamerslab.com> wrote:
>>
>> By the way i also tried it on my mac mini with osx upgraded to lion
>> and it shows the same error as well
>>
>>
>> ben
>>

>> b...@dreamerslab.com> wrote:
>>
>>> Yes, I run my nodejs project on port 3000
>>> I can access it with any browser and curl
>>> it runs just fine with exactly the same code on mac osx 10.6
>>> but not on lion with apache 2.2.19
>>>
>>> ben
>>>
>>>
>>> On Tue, Aug 16, 2011 at 10:04 AM, mscdex < <msc...@gmail.com><msc...@gmail.com><msc...@gmail.com><msc...@gmail.com>

>>> msc...@gmail.com> wrote:
>>>
>>>> On Aug 15, 9:58 pm, ben <b...@dreamerscorp.com> wrote:
>>>> > Hey guys
>>>> > I upgraded my macbook pro to lion
>>>> > and now I got 'error apr_socket_recv: Connection reset by peer (54)'
>>>> > error when i run
>>>> > apache ab test with the following command
>>>> >

>>>> http://127.0.0.1:3000/
>>>>
>>>> Are you sure you have something listening on port 3000? Can you verify
>>>> with a browser, curl, or netstat?
>>>>
>>>> --

>>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>>> You received this message because you are subscribed to the Google
>>>> Groups "nodejs" group.

>>>> nod...@googlegroups.com
>>>> To unsubscribe from this group, send email to

>>>> nodejs+un...@googlegroups.com
>>>> For more options, visit this group at

>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.

>> nod...@googlegroups.com
>> To unsubscribe from this group, send email to

>> nodejs+un...@googlegroups.com
>> For more options, visit this group at

>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to nod...@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+un...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>
>
> --
> Warm regards,
>
> Duncan Grazier
>

Outsider

unread,
Aug 17, 2011, 8:56:44 AM8/17/11
to nod...@googlegroups.com
I found something

this patch works to me on Lion.



2011/8/17 Outsider <outsi...@gmail.com>



--
/************************************************
Outsider
Front-end & Server-side Developer

Twitter : @Outsideris
*************************************************/

Ben Noordhuis

unread,
Aug 17, 2011, 10:29:47 AM8/17/11
to nod...@googlegroups.com

It's been fixed in the ab that ships with apache 2.3.2 or 2.3.3 if
it's the bug that I think it is.

Reply all
Reply to author
Forward
0 new messages