<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’m guessing that you have  script that keeps executing curl. What you can do is use curl -K ./fileWithListOfUrls.txt<div class="">and the one curl process will visit each url in turn reusing the socket (aka HTTP keep alive)</div><div class=""><br class=""></div><div class="">That said, curl isn’t a great workload simulator and, in the long time, you can get better results from something like wrk2</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 27 Apr 2018, at 11:32 AM, mohan prakash via nginx <<a href="mailto:nginx@nginx.org" class="">nginx@nginx.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--><div class=""><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" class=""><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" class=""><div class=""><div class="">Hi Liu<br class=""><div class=""><br class=""><div class="">Client side I have increased the file descriptor value to 10000 , but still the same issue .<br class=""><div class=""><br class=""><div class="">Also increased the FD in server side also then also same issue continuous.<br class=""><div class=""><div class=""><br class=""><div class=""><br class=""><div class="">Followed below link to increase the FD limit.<br class=""><br class=""></div></div></div><div class=""><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 class=""><br class=""></div></div><div class=""><br class=""></div><div id="ydp57e7fed9enhancr_card_5357452550" class="ydp57e7fed9ymail-preserve-class ydp57e7fed9yahoo-link-enhancr-card 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;" 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 class=""><tr class=""><td width="400" class=""><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 class=""><tr class=""><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 class=""><tr class=""><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 class=""><tr class=""><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 class=""><td class=""><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 class=""><tr class=""><td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;border-radius:0 0 0 2px;" class=""></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;" class=""><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><div style="font-size: 12px; line-height: 16px; margin: 0px; color: rgb(151, 155, 167); word-break: break-word;" class="">How do I increase the maximum number of open files under CentOS Linux? How do I open more file descriptors under...</div></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></a></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></div></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="ydp2c199f2bsignature"><div class=""><span class="">Regards</span></div><div style="font-size: 13px; font-family: arial, helvetica, clean, sans-serif; background-color: transparent; font-style: normal;" class=""><span class="">Mohanaprakash T<br class=""></span></div></div></div>
            <div class=""><br class=""></div><div class=""><br class=""></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;" class="">
                    
                    <div class="">
                        On Friday 27 April 2018, 7:06:51 PM IST, Liu Lantao <<a href="mailto:liulantao@gmail.com" class="">liulantao@gmail.com</a>> wrote:
                    </div>
                    <div class=""><br class=""></div>
                    <div class=""><br class=""></div>
                    <div class=""><div id="ydp26fcc155yiv0641264340" class=""><div class="">It seems like your client has reach the limit of max open files. <br clear="none" class=""><br clear="none" class="">From the shell where you start you client program, run ‘ulimit -a’ to check the settings.<br clear="none" class="">You can also check the files open by your client in /proc/<pid>/fd/.<br clear="none" class=""><br clear="none" class="">Increase that value is simple, you can change is temporarily or save to config file,<br clear="none" class="">there are tons of documents online about how to change it.<br clear="none" class=""><div class="ydp26fcc155yiv0641264340gmail_quote"><div class="ydp26fcc155yiv0641264340yqt4610531161" id="ydp26fcc155yiv0641264340yqt94153"><div dir="ltr" class="">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" class="">nginx@nginx.org</a>> wrote:<br clear="none" class=""></div><blockquote class="ydp26fcc155yiv0641264340gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class=""><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" class=""><div class=""><div class="">Hi Team<br clear="none" class=""><div class=""><br clear="none" class=""><div class="">I am trying execute ~1000 curl request from my CentOS machine to my nginx server in ~5 sec.<br clear="none" class=""><div class="">The same exercise continuous every ~5sec.<br clear="none" class=""><div class=""><br clear="none" class=""><div class="">I am using libcurl to make the HTTP request.<br clear="none" class=""><div class=""><br clear="none" class=""><div class="">During this process i see most of my request are failed with reason<br clear="none" class=""><div class=""><br clear="none" class=""><div class=""><span class=""><b class="">Failure Curl Error Code[ 7 ] Reason[ Couldn't connect to server ]</b><br clear="none" class=""></span><span class=""></span><div class=""><br clear="none" class=""><div class="">Can someone suggest whether i am missing any configuration info in my nginx server. Below is my nginx server configuration<br clear="none" class=""><div class=""><br clear="none" class=""><span class="">user nginx;<br clear="none" class="">worker_processes auto;<br clear="none" class="">error_log /var/log/nginx/error.log;<br clear="none" class="">pid /run/nginx.pid;<br clear="none" class=""><br clear="none" class=""># Load dynamic modules. See /usr/share/nginx/README.dynamic.<br clear="none" class="">include /usr/share/nginx/modules/*.conf;<br clear="none" class=""><br clear="none" class=""><br clear="none" class="">worker_rlimit_nofile 262144;<br clear="none" class=""><br clear="none" class="">events {<br clear="none" class="">    worker_connections 16384;<br clear="none" class="">}<br clear="none" class=""><br clear="none" class="">http {<br clear="none" class="">    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '<br clear="none" class="">                      '$status $body_bytes_sent "$http_referer" '<br clear="none" class="">                      '"$http_user_agent" "$http_x_forwarded_for"';<br clear="none" class=""><br clear="none" class="">    access_log  /var/log/nginx/access.log  main;<br clear="none" class=""><br clear="none" class="">    sendfile            on;<br clear="none" class="">    tcp_nopush          on;<br clear="none" class="">    tcp_nodelay         on;<br clear="none" class="">    keepalive_timeout   65;<br clear="none" class="">    types_hash_max_size 2048;<br clear="none" class=""><br clear="none" class="">    include             /etc/nginx/mime.types;<br clear="none" class="">    default_type        application/octet-stream;<br clear="none" class=""><br clear="none" class="">    # Load modular configuration files from the /etc/nginx/conf.d directory.<br clear="none" class="">    # See <a shape="rect" href="http://nginx.org/en/docs/ngx_core_module.html#include" rel="nofollow" target="_blank" class="">http://nginx.org/en/docs/ngx_core_module.html#include</a><br clear="none" class="">    # for more information.<br clear="none" class="">    include /etc/nginx/conf.d/*.conf;<br clear="none" class=""><br clear="none" class="">    limit_conn_zone $binary_remote_addr zone=perip:10m;<br clear="none" class="">    limit_conn_zone $server_name zone=perserver:10m;<br clear="none" class=""><br clear="none" class="">    server {<br clear="none" class="">        limit_conn perip 2000;<br clear="none" class="">        limit_conn perserver 20000;<br clear="none" class="">        listen *:8080 backlog=16384;<br clear="none" class="">    }<br clear="none" class="">}</span><br clear="none" class=""></div></div></div></div></div></div></div></div></div></div></div></div></div><div class=""><br clear="none" class=""></div><div class="ydp26fcc155yiv0641264340m_2507225275403369716ydp2b8ea2csignature"><div class=""><span class="">Regards</span></div><div style="font-size: 13px; font-family: arial, helvetica, clean, sans-serif; background-color: transparent; font-style: normal;" class=""><span class="">Mohanaprakash T<br clear="none" class=""></span></div></div></div></div></div>_______________________________________________<br clear="none" class="">
nginx mailing list<br clear="none" class="">
<a shape="rect" href="mailto:nginx@nginx.org" rel="nofollow" target="_blank" class="">nginx@nginx.org</a><br clear="none" class="">
<a shape="rect" href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="nofollow" target="_blank" class="">http://mailman.nginx.org/mailman/listinfo/nginx</a></blockquote></div></div></div></div></div>
                </div>
            </div></div></div>_______________________________________________<br class="">nginx mailing list<br class=""><a href="mailto:nginx@nginx.org" class="">nginx@nginx.org</a><br class="">http://mailman.nginx.org/mailman/listinfo/nginx</div></blockquote></div><br class=""></div></body></html>