Имеется: железный сервер для шаред-хостинга с nginx 1.11.4 content proxy. Система: 2.6.32-673.8.1.lve1.4.3.1.el6.x86_64 #1 SMP Thu May 5 16:06:47 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux На сервере 128GB RAM, свободно обычно 6-12GB. Своп на 0 в момент появления ошибки в логах.
Переодически получаем это в логах: [emerg] 578865#578865: posix_memalign(16, 16384) failed (12: Cannot allocate memory) В момент ошибки: root@web1 ~]# free total used free shared buffers cached Mem: 131918508 121039568 10878940 1411016 12868116 57594020 -/+ buffers/cache: 50577432 81341076 Swap: 30718972 0 30718972 В sysctl особо ничего не меняли, только kernel.shmmax = 103079215104 kernel.shmall = 6442450944 С лимитами проблем нет. В конфиге: worker_processes 12; worker_connections 2048; use epoll; multi_accept on; accept_mutex off; Настройки http { sendfile on; sendfile_max_chunk 512k; tcp_nopush on; tcp_nodelay on; keepalive_timeout 75; types_hash_max_size 2048; server_tokens off; client_max_body_size 128m; client_body_buffer_size 128k; #Tweak timeout settings below in case of a DOS attack client_header_timeout 1m; client_body_timeout 1m; reset_timedout_connection on; connection_pool_size 512; client_header_buffer_size 4k; large_client_header_buffers 4 32k; request_pool_size 8k; output_buffers 4 32k; postpone_output 1460; #FastCGI fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; # the below options depend on theoretical maximum of your PHP script run-time fastcgi_read_timeout 300; fastcgi_send_timeout 300; server_names_hash_max_size 256000; server_names_hash_bucket_size 4096; include /etc/nginx/mime.types; default_type application/octet-stream; # Added extra map_hash_max_size 4096; map_hash_bucket_size 192; ssl_protocols TLSv1.2 TLSv1.1 TLSv1; # Open File Cache open_file_cache max=8192 inactive=5m; open_file_cache_valid 5m; open_file_cache_min_uses 2; open_file_cache_errors on; # Logging Settings open_log_file_cache max=1000 inactive=20s valid=1m min_uses=2; #Mapping $msec to $sec so that we dont break cPanel bandwidth calculator map $msec $sec { ~^(?P<secres>.+)\. $secres; } log_format bytes_log "$sec $bytes_sent ."; log_not_found off; access_log off; Что можно посмотреть и покопать чтобы решить проблему? Сервер не крашится, но ошибка проявляется все чаще. Нагрузки особо нет, 20-60 реквестов с секунду. Posted at Nginx Forum: https://forum.nginx.org/read.php?21,269571,269571#msg-269571 _______________________________________________ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru