<html><body><span class="xfm_23392795">Здравствуйте.<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  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/># cat /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            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               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            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 realtime 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/> support.od.ua</span><img src="https://mail.ukr.net/api/public/message_read?a=gai7r91VLnuq2JW_e502BHagZNI-EsjqU1BOfr3DJR6oeSBK3cnY0-1gn6aYOmnl6n5vQqiGv7Taik3tmDT8XK_SkWYzGEQK-G0=" alt="" width="1" height="1" style="visibility: hidden; width: 1px; height: 1px;"/>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               </body></html>