Error: Couldn't connect to server
mohanaprakashme at yahoo.co.in
Fri Apr 27 15:32:52 UTC 2018
Client side I have increased the file descriptor value to 10000 , but still the same issue .
Also increased the FD in server side also then also same issue continuous.
Followed below link to increase the FD limit.
Linux Increase The Maximum Number Of Open Files / File Descriptors (FD) - nixCraft
| | |
Linux Increase The Maximum Number Of Open Files / File Descriptors (FD) ...
How do I increase the maximum number of open files under CentOS Linux? How do I open more file descriptors under...
On Friday 27 April 2018, 7:06:51 PM IST, Liu Lantao <liulantao at gmail.com> wrote:
It seems like your client has reach the limit of max open files.
>From the shell where you start you client program, run ‘ulimit -a’ to check the settings.
You can also check the files open by your client in /proc/<pid>/fd/.
Increase that value is simple, you can change is temporarily or save to config file,
there are tons of documents online about how to change it.
On Fri, Apr 27, 2018 at 9:09 PM mohan prakash via nginx <nginx at nginx.org> wrote:
I am trying execute ~1000 curl request from my CentOS machine to my nginx server in ~5 sec.
The same exercise continuous every ~5sec.
I am using libcurl to make the HTTP request.
During this process i see most of my request are failed with reason
Failure Curl Error Code[ 7 ] Reason[ Couldn't connect to server ]
Can someone suggest whether i am missing any configuration info in my nginx server. Below is my nginx server configuration
# Load dynamic modules. See /usr/share/nginx/README.dynamic.
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
access_log /var/log/nginx/access.log main;
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
limit_conn_zone $binary_remote_addr zone=perip:10m;
limit_conn_zone $server_name zone=perserver:10m;
limit_conn perip 2000;
limit_conn perserver 20000;
listen *:8080 backlog=16384;
nginx mailing list
nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx