<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div>nginx -V<br></div><div>nginx version: nginx/1.12.2<br></div><div>built with OpenSSL 1.0.2n  7 Dec 2017<br></div><div>TLS SNI support enabled<br></div><div>configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --user=www --group=www --modules-path=/usr/local/libexec/nginx --with-file-aio --with-cc-opt='-DNGX_HAVE_INET6=0 -I /usr/local/include' --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx/access.log --with-http_addition_module --with-http_auth_request_module --with-http_gzip_static_module --with-http_realip_module --with-http_stub_status_module --with-http_sub_module --with-pcre --with-http_v2_module --with-threads --with-http_ssl_module<br></div><div><br></div><div>Собран из портов на FreeBSD 10.3-RELEASE-p21<br></div><div><br></div><div>/var/tmp (используемая как временная) есть tmpfs в памяти, но ею практически не пользуются.<br></div><div><br></div><div>В основном раздается статика (пару десятков мелких сайтов на WordPress  - настроено файловое кеширование страниц) + php-fpm. Нагрузки совсем небольшие. Конфиги применяемые на добром десятке серверов практически без изменений.<br></div><div><br></div><div>NGINX, такое ощущение, что просто игнорит какое-то количество коннектов. Для снятия статистики применяется collectd, у него в логах:[2017-12-27 09:52:55] [warning] nginx plugin: curl_easy_perform failed: Operation timed out after 10002 milliseconds with 0 bytes received<br></div><div>[2017-12-27 09:52:55] [notice] read-function of plugin `nginx' failed. Will suspend it for 20.000 seconds.<br></div><div>[2017-12-27 09:53:25] [warning] nginx plugin: curl_easy_perform failed: Operation timed out after 10005 milliseconds with 0 bytes received<br></div><div>[2017-12-27 09:53:25] [notice] read-function of plugin `nginx' failed. Will suspend it for 20.000 seconds.<br></div><div>[2017-12-27 09:54:15] [warning] nginx plugin: curl_easy_perform failed: Operation timed out after 10001 milliseconds with 0 bytes received<br></div><div>[2017-12-27 09:54:15] [notice] read-function of plugin `nginx' failed. Will suspend it for 20.000 seconds.<br></div><div>[2017-12-27 09:54:45] [warning] nginx plugin: curl_easy_perform failed: Operation timed out after 10002 milliseconds with 0 bytes received<br></div><div>[2017-12-27 09:54:45] [notice] read-function of plugin `nginx' failed. Will suspend it for 20.000 seconds.<br></div><div>[2017-12-27 09:55:05] [warning] nginx plugin: curl_easy_perform failed: Operation timed out after 10013 milliseconds with 0 bytes received<br></div><div>[2017-12-27 09:55:05] [notice] read-function of plugin `nginx' failed. Will suspend it for 40.000 seconds.<br><br>Снаружи тоже периодически просто нет никакого ответа. При этом если он и есть  - то как-то медленно вроде.<br><br>При этом система показывает какую-то повышенную нагрузку на файловую систему, и создает ее якобы именно NGINX.<br><br>Порт пересобирал, с sendfile и aio экспериментировал, error_log в debug ставил - ничего интересного не нашел, в бубен стучал.<br><br>Подскажите может как точнее продиагностировать проблему. Спасибо!<br></div></div><br></body></html>