problems: 1. too many open files 2. upstream timed out,

Igor Sysoev is at rambler-co.ru
Mon Sep 25 23:46:49 MSD 2006


On Mon, 25 Sep 2006, Sergey Pofiriev wrote:

> клиентам часто вылетает "500 Internal Server Error"
> 
> в error log много таких ошибок:
> 
> Главная проблемма (очень много)
> "Too many open files" (  $ cat /proc/sys/fs/file-max   >>>> 640000 )
> 
> 
> 2006/09/25 13:29:32 [alert] 26770#0: *632044 socket() failed (24: Too
> many open files) while connecting to upstream, client: 212.68.161.66,

Что показывает ulimit -n ? Возможно, нужно увелчить

worker_rlimit_nofile  10240;

> Вторичная проблемма:
> 110: Connection timed out:  ( тк сервера не нагружены - то все должно
> быть OK )
> 
> 2006/09/25 13:00:45 [error] 26770#0: *454684 upstream timed out (110:
> Connection timed out) while connecting to upstream, client: 85.202.58.31,
> server: www.russianamerica.com, URL:
> "/top/logo/index.php?id=2401&logo=3", upstream:
> "http://66.223.112.93:80/top/logo/index.php?id=2401&logo=3", host:
> "www.russianamerica.com", referrer:
> "http://www.obozrevatel.com/news/2006/9/25/137099.htm"
> 2006/09/25 13:00:45 [error] 26770#0: *454700 upstream timed out (110:
> Connection timed out) while connecting to upstream, client: 84.188.85.92,
> server: www.russianamerica.com, URL: "/cg/ratop.gif", upstream:
> "http://66.223.112.93:80/cg/ratop.gif", host: "www.russianamerica.com",
> referrer: "http://www.cccp.de/telegram/index.php"
> 
> 
> Что и где нужно подправить??
> Какие опции надо добавить??

По умолчанию "proxy_connect_timeout 60s". Скорее всего, дело в сетвых
настройках.


Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list