# Code 499 and ab tools

**URL:** <https://www.ruby-forum.com/t/code-499-and-ab-tools/223274>\
**Category:** NGINX\
**Created:** [September 27, 2012, 12:10pm UTC](https://www.ruby-forum.com/t/code-499-and-ab-tools/223274 "2012-09-27T12:10:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [September 27, 2012, 12:10pm UTC](https://www.ruby-forum.com/t/code-499-and-ab-tools/223274/1 "2012-09-27T12:10:35Z")

</div>

HI,

I am testing one of our production server with ab (ab -n 1000 -c 150  
“[http://www.myserver.com](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 S. - 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

---

<div class="post-metadata">

**Author:** ![ascarp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eb8c5e/32.png) [@ascarp](https://www.ruby-forum.com/u/ascarp)\
**Post date:** [September 27, 2012, 11:16pm UTC](https://www.ruby-forum.com/t/code-499-and-ab-tools/223274/2 "2012-09-27T23:16:44Z")

</div>

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: removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid] im Auftrag von  
Andrea S. [removed\_email\_address@domain.invalid]  
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](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 S. - 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  
removed\_email\_address@domain.invalid  
[http://mailman.nginx.org/mailman/listinfo/nginx](http://mailman.nginx.org/mailman/listinfo/nginx)

---

<div class="post-metadata">

**Author:** ![ascarp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eb8c5e/32.png) [@ascarp](https://www.ruby-forum.com/u/ascarp)\
**Post date:** [September 28, 2012, 10:42am UTC](https://www.ruby-forum.com/t/code-499-and-ab-tools/223274/3 "2012-09-28T10:42:00Z")

</div>

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” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
A: removed\_email\_address@domain.invalid  
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: removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid] im Auftrag von  
Andrea S. [removed\_email\_address@domain.invalid]  
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](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 S. - 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  
removed\_email\_address@domain.invalid  
[http://mailman.nginx.org/mailman/listinfo/nginx](http://mailman.nginx.org/mailman/listinfo/nginx)

* * *

nginx mailing list  
removed\_email\_address@domain.invalid  
[http://mailman.nginx.org/mailman/listinfo/nginx](http://mailman.nginx.org/mailman/listinfo/nginx)
