Коллеги, помогите пожалуйста со следующей проблемой:
Имеем:
freebsd 9.0,
php-fom,
bitrix
nginx/1.0.10
В какой-то момент начинаются сильные проблемы с отдачей статики, т.е. какие-то файлы просто перестают отдаваться и помогает только рестарт всего сервера!
В логах только записи следующего вида:
8 [info] 1692#0: *193 kevent() reported that client ***.***.***.*** closed keepalive connection
8 [info] 1692#0: *196 kevent() reported that client ***.***.***.*** closed keepalive connection
9 [info] 1692#0: *203 client timed out (60: Operation timed out) while sending response to client, client:
0 [info] 1692#0: *201 client timed out (60: Operation timed out) while sending response to client, client: ***.***.***.***
4 [notice] 1690#0: signal 15 (SIGTERM) received, exiting
4 [notice] 1694#0: exiting client timed out (60: Operation timed out) while sending response to client
конфиг nginx
http {
charset utf-8;
include /usr/local/etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
ssi on;
keepalive_timeout 65;
server {
listen 80;
server_name_in_redirect off;
index index.php;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header Host $host;
fastcgi_read_timeout 480s;
fastcgi_send_timeout 480s;
root /var/www;
if (!-e $request_filename) {
rewrite ^(.*)$ /bitrix/urlrewrite.php last;
}
location ~ \.php$ {
if (!-f $request_filename) {
rewrite ^(.*)/index.php$ $1/ redirect;
}
include fastcgi_params;
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ /\.ht {
deny all;
}
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar)$ {
try_files $uri =404;
access_log off;
expires max;
}
}
Заранее спасибо.