Forum: NGINX Code 499 and ab tools

Posted by Andrea Soracchi (Guest)
on 2012-09-27 12:10
(Received via mailing list)
HI,

I am testing one of our production server with ab (ab -n 1000 -c 150 
"http://www.myserver.com") and what I get is:

...
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
apr_socket_recv: Connection timed out (110)
Total of 743 requests completed

In the nginx's error log no output, while in the nginx's access log 
report 499 code (the client has closed the connection).

Where is the problem, nginx server or client ab?

Any idea?

Thanks a lot

--
Andrea Soracchi - Netbuilder S.r.l.
Multidialogo : La storia e' fatta da chi sa comunicare
System Engineer // t. +39 0521 247791 // f. +39 0521 7431140 // 
www.netbuilder.it
Posted by Frank Ruske (Guest)
on 2012-09-27 23:16
(Received via mailing list)
Hi,

try to increase the maximum number of open files on the server where you 
run the apache benchmark test.

For example temporary "ulimit -u unlimited"

Regards Frank


________________________________________
Von: nginx-bounces@nginx.org [nginx-bounces@nginx.org] im Auftrag von 
Andrea Soracchi [soracchi@netbuilder.it]
Gesendet: Donnerstag, 27. September 2012 12:10
An: nginx
Betreff: Code 499 and ab tools

HI,

I am testing one of our production server with ab (ab -n 1000 -c 150 
"http://www.myserver.com") and what I get is:

...
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
apr_socket_recv: Connection timed out (110)
Total of 743 requests completed

In the nginx's error log no output, while in the nginx's access log 
report 499 code (the client has closed the connection).

Where is the problem, nginx server or client ab?

Any idea?

Thanks a lot

--
Andrea Soracchi - Netbuilder S.r.l.
Multidialogo : La storia e' fatta da chi sa comunicare
System Engineer // t. +39 0521 247791 // f. +39 0521 7431140 // 
www.netbuilder.it


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Posted by Andrea Soracchi (Guest)
on 2012-09-28 10:42
(Received via mailing list)
Hi,

I get the same error...

In my sysctl.conf I set other parameters:

net.ipv4.tcp_fin_timeout      = 1
net.ipv4.tcp_tw_recycle       = 1
net.core.rmem_max             = 16777216
net.core.rmem_default         = 16777216
net.core.netdev_max_backlog   = 262144
net.core.somaxconn            = 262144
net.ipv4.tcp_syncookies       = 1
net.ipv4.tcp_max_orphans      = 262144
net.ipv4.tcp_max_syn_backlog  = 262144
net.ipv4.tcp_synack_retries   = 2
net.ipv4.tcp_syn_retries      = 2


Do you think the problem is on the server where I run tne apache 
benchmark?

Thanks,
Andrea




----- Messaggio originale -----
Da: "Frank Ruske" <F.Ruske@flyeralarm.de>
A: nginx@nginx.org
Inviato: Giovedì, 27 settembre 2012 23:14:14
Oggetto: AW: Code 499 and ab tools

Hi,

try to increase the maximum number of open files on the server where you 
run the apache benchmark test.

For example temporary "ulimit -u unlimited"

Regards Frank


________________________________________
Von: nginx-bounces@nginx.org [nginx-bounces@nginx.org] im Auftrag von 
Andrea Soracchi [soracchi@netbuilder.it]
Gesendet: Donnerstag, 27. September 2012 12:10
An: nginx
Betreff: Code 499 and ab tools

HI,

I am testing one of our production server with ab (ab -n 1000 -c 150 
"http://www.myserver.com") and what I get is:

...
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
apr_socket_recv: Connection timed out (110)
Total of 743 requests completed

In the nginx's error log no output, while in the nginx's access log 
report 499 code (the client has closed the connection).

Where is the problem, nginx server or client ab?

Any idea?

Thanks a lot

--
Andrea Soracchi - Netbuilder S.r.l.
Multidialogo : La storia e' fatta da chi sa comunicare
System Engineer // t. +39 0521 247791 // f. +39 0521 7431140 // 
www.netbuilder.it


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.