<div dir="ltr"><div>это ?</div><div><br></div><div># set open fd limit to 30000</div><div>worker_rlimit_nofile 30000;<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-11 15:47 GMT+02:00 Vladislav Prodan <span dir="ltr"><<a href="mailto:universite@ukr.net" target="_blank">universite@ukr.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span>Здравствуйте.<br><br>Проблема с лимитом открытых файлов в 1024<br><br># ps -auxwww | grep nginx<br>root 2139 0.0 0.0 31860 2512 ? Ss 05:42 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf<br>www-data 2140 0.0 0.0 36420 8212 ? S 05:42 0:00 nginx: worker process<br>www-data 2141 0.0 0.0 36116 7132 ? S 05:42 0:00 nginx: worker process<br>www-data 2142 0.0 0.0 36116 7132 ? S 05:42 0:00 nginx: worker process<br>www-data 2143 0.0 0.0 36116&
nbsp; 7132 ? S 05:42 0:00 nginx: worker process<br>www-data 2144 0.0 0.0 36116 7132 ? S 05:42 0:00 nginx: worker process<br>www-data 2145 0.0 0.0 36116 7132 ? S 05:42 0:00 nginx: worker process<br>www-data 2146 0.0 0.0 36116 7132 ? S 05:42 0:00 nginx: worker process<br>www-data 2147 0.0 0.0 36116 7132 ? S 05:42 0:00 nginx: worker process<br>root 2196 0.0 0.0 13972 2212 pts/1 S+ 05:45 0:00 grep nginx<br><br># ca
t /proc/2139/limits<br>Limit Soft Limit Hard Limit Units<br>Max cpu time unlimited unlimited seconds<br>Max file size unlimited unlimited bytes<br>Max data size unlimited unlimited &nb
sp; bytes<br>Max stack size 8388608 unlimited bytes<br>Max core file size 0 unlimited bytes<br>Max resident set unlimited unlimited bytes<br>Max processes 128495 128495 &nb
sp; processes<br>Max open files 1024 4096 files<br>Max locked memory 65536 65536 bytes<br>Max address space unlimited unlimited bytes<br>Max file locks unlimited &nbs
p; unlimited locks<br>Max pending signals 128495 128495 signals<br>Max msgqueue size 819200 819200 bytes<br>Max nice priority 0 0<br>Max realtime priority 0 0<br>Max real
time timeout unlimited unlimited us<br><br><br># cat /proc/sys/fs/file-max<br>3289412<br><br>#cat /etc/security/limits.conf<br>* soft nofile 16384<br>* hard nofile 16384<br><br>nginx soft nofile 10000<br>nginx hard nofile 30000<br><br>mysql soft nofile 102400<br>mysql hard nofile 102400<br>mysql soft nproc 16384<br>mysql hard nproc 16384<br><br><br>Debian 8.3 x64<br><br># nginx -V<br>nginx version: nginx/1.8.1<br>built by gcc 4.9.2 (Debian 4.9.2-10)<br>built with OpenSSL 1.0.1k 8 Jan 2015<br>TLS SNI support enabled<br>configure
arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-http_spdy_module --with-cc-opt='-g -O2 -fstack-protector
-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -Wl,--as-needed' --with-ipv6<br><br><br><br>--<br> Vladislav V. Prodan<br> System & Network Administrator<br> <a href="http://support.od.ua" target="_blank">support.od.ua</a></span><img src="https://mail.ukr.net/api/public/message_read?a=gai7r91VLnuq2JW_e502BHagZNI-EsjqU1BOfr3DJR6oeSBK3cnY0-1gn6aYOmnl6n5vQqiGv7Taik3tmDT8XK_SkWYzGEQK-G0=" alt="" width="1" height="1" style="width:1px;min-height:1px">
</div>
<br>_______________________________________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-ru</a><br></blockquote></div><br></div>