<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div>Hi Liu<br><div><br><div>Client side I have increased the file descriptor value to 10000 , but still the same issue .<br><div><br><div>Also increased the FD in server side also then also same issue continuous.<br><div><div><br><div><br><div>Followed below link to increase the FD limit.<br><br></div></div></div><div><a href="https://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/" rel="nofollow" target="_blank" class="enhancr_card_5357452550">Linux Increase The Maximum Number Of Open Files / File Descriptors (FD) - nixCraft</a><br><br></div></div><div><br></div><div id="ydp57e7fed9enhancr_card_5357452550" class="ydp57e7fed9yahoo-link-enhancr-card ydp57e7fed9ymail-preserve-class ydp57e7fed9ymail-preserve-style" style="max-width:400px;font-family:"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;" data-url="https://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/" data-type="YENHANCER" data-size="MEDIUM" contenteditable="false"><a href="https://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/" style="text-decoration:none !important;color:#000 !important;" class="ydp57e7fed9yahoo-enhancr-cardlink" rel="nofollow" target="_blank"><table class="ydp57e7fed9card-wrapper ydp57e7fed9yahoo-ignore-table" style="max-width:400px;" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td width="400"><table class="ydp57e7fed9card ydp57e7fed9yahoo-ignore-table" style="max-width:400px;border-width:1px;border-style:solid;border-color:rgb(224, 228, 233);border-radius:2px;" cellspacing="0" cellpadding="0" border="0" width="100%"><tbody><tr><td class="ydp57e7fed9card-primary-image-cell" style="background-color: rgb(0, 0, 0); background-repeat: no-repeat; background-size: cover; position: relative; border-radius: 2px 2px 0px 0px; min-height: 175px;" valign="top" bgcolor="#000000" height="175" background="https://s.yimg.com/lo/api/res/1.2/CvY.5LPlv3yd7pg6szq4og--~A/Zmk9ZmlsbDt3PTQwMDtoPTIwMDthcHBpZD1pZXh0cmFjdA--/https://www.cyberciti.biz/media/new/category/old/linux-logo.png.cf.jpg"><!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:396px;height:175px;position:absolute;top:0;left:0;"><v:fill type="frame" color="#000000" src="https://s.yimg.com/lo/api/res/1.2/CvY.5LPlv3yd7pg6szq4og--~A/Zmk9ZmlsbDt3PTQwMDtoPTIwMDthcHBpZD1pZXh0cmFjdA--/https://www.cyberciti.biz/media/new/category/old/linux-logo.png.cf.jpg"/></v:rect><![endif]--><table class="ydp57e7fed9card-overlay-container-table ydp57e7fed9yahoo-ignore-table" style="width:100%;" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td class="ydp57e7fed9card-overlay-cell" style="background-color: transparent; border-radius: 2px 2px 0px 0px; min-height: 175px;" valign="top" bgcolor="transparent" background="https://s.yimg.com/cv/ae/nq/storm/assets/enhancrV21/1/enhancr_gradient-400x175.png"><!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:396px;height:175px;position:absolute;top:-18px;left:0;"><v:fill type="pattern" color="#000000" src="https://s.yimg.com/cv/ae/nq/storm/assets/enhancrV21/1/enhancr_gradient-400x175.png"/><v:textbox inset="0,0,20px,0"><![endif]--><table class="ydp57e7fed9yahoo-ignore-table" style="width: 100%; min-height: 175px;" height="175" border="0"><tbody><tr><td class="ydp57e7fed9card-richInfo2" style="text-align:left;padding:15px 0 0 15px;vertical-align:top;"></td><td class="ydp57e7fed9card-actions" style="text-align:right;padding:15px 15px 0 0;vertical-align:top;"><div class="ydp57e7fed9card-share-container"></div></td></tr></tbody></table><!--[if gte mso 9]></v:textbox></v:rect><![endif]--></td></tr></tbody></table></td></tr><tr><td><table class="ydp57e7fed9card-info ydp57e7fed9yahoo-ignore-table" style="background-color: rgb(255, 255, 255); background-image: none; background-repeat: repeat; background-attachment: scroll; background-size: auto auto; position: relative; z-index: 2; width: 100%; max-width: 400px; border-radius: 0px 0px 2px 2px; border-top: 1px solid rgb(224, 228, 233);" cellspacing="0" cellpadding="0" align="center" border="0"><tbody><tr><td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;border-radius:0 0 0 2px;"></td><td style="vertical-align:middle;padding:12px 24px 16px 12px;width:99%;font-family:"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;border-radius:0 0 2px 0;"><h2 class="ydp57e7fed9card-title" style="font-size:14px;line-height:19px;margin:0 0 6px 0;font-family:"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;word-break:break-word;color:#26282a;">Linux Increase The Maximum Number Of Open Files / File Descriptors (FD) ...</h2><p class="ydp57e7fed9card-description" style="font-size:12px;line-height:16px;margin:0px;color:#979ba7;word-break:break-word;">How do I increase the maximum number of open files under CentOS Linux? How do I open more file descriptors under...</p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></a></div><div><br></div><div><br></div></div></div></div></div></div><div><br></div><div><br></div><div class="ydp2c199f2bsignature"><div><span>Regards</span></div><div style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;"><span>Mohanaprakash T<br></span></div></div></div>
<div><br></div><div><br></div>
</div><div id="ydp26fcc155yahoo_quoted_5805319009" class="ydp26fcc155yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Friday 27 April 2018, 7:06:51 PM IST, Liu Lantao <liulantao@gmail.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="ydp26fcc155yiv0641264340"><div>It seems like your client has reach the limit of max open files. <br clear="none"><br clear="none">From the shell where you start you client program, run ‘ulimit -a’ to check the settings.<br clear="none">You can also check the files open by your client in /proc/<pid>/fd/.<br clear="none"><br clear="none">Increase that value is simple, you can change is temporarily or save to config file,<br clear="none">there are tons of documents online about how to change it.<br clear="none"><div class="ydp26fcc155yiv0641264340gmail_quote"><div class="ydp26fcc155yiv0641264340yqt4610531161" id="ydp26fcc155yiv0641264340yqt94153"><div dir="ltr">On Fri, Apr 27, 2018 at 9:09 PM mohan prakash via nginx <<a shape="rect" href="mailto:nginx@nginx.org" rel="nofollow" target="_blank">nginx@nginx.org</a>> wrote:<br clear="none"></div><blockquote class="ydp26fcc155yiv0641264340gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div>Hi Team<br clear="none"><div><br clear="none"><div>I am trying execute ~1000 curl request from my CentOS machine to my nginx server in ~5 sec.<br clear="none"><div>The same exercise continuous every ~5sec.<br clear="none"><div><br clear="none"><div>I am using libcurl to make the HTTP request.<br clear="none"><div><br clear="none"><div>During this process i see most of my request are failed with reason<br clear="none"><div><br clear="none"><div><span><b>Failure Curl Error Code[ 7 ] Reason[ Couldn't connect to server ]</b><br clear="none"></span><span></span><div><br clear="none"><div>Can someone suggest whether i am missing any configuration info in my nginx server. Below is my nginx server configuration<br clear="none"><div><br clear="none"><span>user nginx;<br clear="none">worker_processes auto;<br clear="none">error_log /var/log/nginx/error.log;<br clear="none">pid /run/nginx.pid;<br clear="none"><br clear="none"># Load dynamic modules. See /usr/share/nginx/README.dynamic.<br clear="none">include /usr/share/nginx/modules/*.conf;<br clear="none"><br clear="none"><br clear="none">worker_rlimit_nofile 262144;<br clear="none"><br clear="none">events {<br clear="none"> worker_connections 16384;<br clear="none">}<br clear="none"><br clear="none">http {<br clear="none"> log_format main '$remote_addr - $remote_user [$time_local] "$request" '<br clear="none"> '$status $body_bytes_sent "$http_referer" '<br clear="none"> '"$http_user_agent" "$http_x_forwarded_for"';<br clear="none"><br clear="none"> access_log /var/log/nginx/access.log main;<br clear="none"><br clear="none"> sendfile on;<br clear="none"> tcp_nopush on;<br clear="none"> tcp_nodelay on;<br clear="none"> keepalive_timeout 65;<br clear="none"> types_hash_max_size 2048;<br clear="none"><br clear="none"> include /etc/nginx/mime.types;<br clear="none"> default_type application/octet-stream;<br clear="none"><br clear="none"> # Load modular configuration files from the /etc/nginx/conf.d directory.<br clear="none"> # See <a shape="rect" href="http://nginx.org/en/docs/ngx_core_module.html#include" rel="nofollow" target="_blank">http://nginx.org/en/docs/ngx_core_module.html#include</a><br clear="none"> # for more information.<br clear="none"> include /etc/nginx/conf.d/*.conf;<br clear="none"><br clear="none"> limit_conn_zone $binary_remote_addr zone=perip:10m;<br clear="none"> limit_conn_zone $server_name zone=perserver:10m;<br clear="none"><br clear="none"> server {<br clear="none"> limit_conn perip 2000;<br clear="none"> limit_conn perserver 20000;<br clear="none"> listen *:8080 backlog=16384;<br clear="none"> }<br clear="none">}</span><br clear="none"></div></div></div></div></div></div></div></div></div></div></div></div></div><div><br clear="none"></div><div class="ydp26fcc155yiv0641264340m_2507225275403369716ydp2b8ea2csignature"><div><span>Regards</span></div><div style="color:rgb(0,0,0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;"><span>Mohanaprakash T<br clear="none"></span></div></div></div></div></div>_______________________________________________<br clear="none">
nginx mailing list<br clear="none">
<a shape="rect" href="mailto:nginx@nginx.org" rel="nofollow" target="_blank">nginx@nginx.org</a><br clear="none">
<a shape="rect" href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="nofollow" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></blockquote></div></div></div></div></div>
</div>
</div></div></body></html>