Welcome! Log In Create A New Profile

Advanced

Using ab to benchmark nginx: Connection reset by peer (54)

November 18, 2011 06:55AM
I recently updated to nginx 1.0.8 and tried to benchmark performance for cached dynamic pages (initially served by a Django app via proxy_pass) and for static pages. In both cases, nginx will not serve more than 3 or 4 requests (even without concurrent connections), so ab almost immediately reports:

Benchmarking testsite.static (be patient)...apr_socket_recv: Connection reset by peer (54)

It is only when choosing a maximum of 4 (or fewer) requests that ab finishes successfully.

Why is that? I tried increasing the number of worker processes (no luck), but I assume that nginx should be capable of serving more than 4 requests without tweaking any configuration variable. Could it be that I accidentally triggered some sort of DOS protection mechanism?
Subject Author Posted

Using ab to benchmark nginx: Connection reset by peer (54)

janedenone November 18, 2011 06:55AM

Re: Using ab to benchmark nginx: Connection reset by peer (54)

Maxim Dounin November 18, 2011 09:12AM

Re: Using ab to benchmark nginx: Connection reset by peer (54)

janedenone November 18, 2011 09:41AM

Re: Using ab to benchmark nginx: Connection reset by peer (54)

agentzh November 18, 2011 10:28AM

Re: Using ab to benchmark nginx: Connection reset by peer (54)

janedenone November 18, 2011 10:36AM

Re: Using ab to benchmark nginx: Connection reset by peer (54)

agentzh November 18, 2011 10:42AM

Re: Using ab to benchmark nginx: Connection reset by peer (54)

janedenone November 23, 2011 05:43AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 54
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready