# About worker\_connections?

**URL:** <https://www.ruby-forum.com/t/about-worker-connections/219542>\
**Category:** NGINX\
**Created:** [May 7, 2012, 3:54am UTC](https://www.ruby-forum.com/t/about-worker-connections/219542 "2012-05-07T03:54:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [May 7, 2012, 3:54am UTC](https://www.ruby-forum.com/t/about-worker-connections/219542/1 "2012-05-07T03:54:53Z")

</div>

i have set worker\_connections 10024 ,but i user the loadrunner to test  
it user about 1000 user,it only can pass 700 user,how to resove the max  
connections?  
There is error message:  
Action.c(4): Error -27796: Failed to connect to server “19.16.8.187:80”:  
[10061] Connection refused  
Action.c(4): Error -26610: HTTP Status-Code=502 (Bad Gateway) for  
“[http://19.16.8.187/gdceportal/index.aspx](http://19.16.8.187/gdceportal/index.aspx)”

There is my nginx config:

#user nobody;  
worker\_processes 1;

#error\_log logs/error.log;  
#error\_log logs/error.log notice;  
#error\_log logs/error.log info;

#pid logs/nginx.pid;

events {  
worker\_connections 10024;  
}

http {  
include mime.types;  
default\_type application/octet-stream;

```
#log_format main '$remote_addr - $remote_user [$time_local]

```

“$request” ’  
# '$status $body\_bytes\_sent “$http\_referer” ’  
# ‘“$http\_user\_agent” “$http\_x\_forwarded\_for”’;

```
#access_log logs/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 120;

#gzip on;

```

upstream 19.16.8.187{

```
ip_hash;

```

server 19.16.8.188:80;  
server 19.16.8.189:80;  
}

Posted at Nginx Forum:

> **[about worker\_connections?](https://forum.nginx.org/read.php?2,226129,226129#msg-226129)**
>
> i have set worker\_connections 10024 ,but i user the loadrunner to test it user about 1000 user,it only can pass 700 user,how to resove the max connections? There is error message: Action.c(4): Error -27796: Failed to connect to server...

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 7, 2012, 4:44am UTC](https://www.ruby-forum.com/t/about-worker-connections/219542/2 "2012-05-07T04:44:59Z")

</div>

did you modify the system fd limitation?
