ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ошибки accept() getsockname() close()


  • To: nginx-ru@xxxxxxxxx
  • Subject: Ошибки accept() getsockname() close()
  • From: Константин <kot@xxxxxxxxxxx>
  • Date: Tue, 28 Nov 2006 12:24:19 +0200
  • Organization: EReality

Здравствуйте, Игорь!

Установил nginx, настроил PHP FastCGI, запустил сервер..

Решил глянуть /var/log/nginx-error.log

И был в шоке от огромного кол-ва ошибок типа:

2006/11/24 03:36:55 [error] 95460#0: accept() failed (53: Software caused 
connection abort) while accepting new connection on 0.0.0.0:80
2006/11/24 03:37:18 [error] 95472#0: accept() failed (53: Software caused 
connection abort) while accepting new connection on 0.0.0.0:80
2006/11/24 03:37:20 [error] 95472#0: accept() failed (53: Software caused 
connection abort) while accepting new connection on 0.0.0.0:80
2006/11/24 03:38:27 [error] 95456#0: accept() failed (53: Software caused 
connection abort) while accepting new connection on 0.0.0.0:80
2006/11/24 03:38:38 [error] 95461#0: accept() failed (53: Software caused 
connection abort) while accepting new connection on 0.0.0.0:80
2006/11/24 03:38:54 [error] 95457#0: accept() failed (53: Software caused 
connection abort) while accepting new connection on 0.0.0.0:80


А также:
2006/11/24 00:50:51 [crit] 95459#0: *73459711 getsockname() failed (54: 
Connection reset by peer), client: 80.246.68.184
вот эти ошибки тоже довольно часто встречаются, особенно при пиковых
нагрузках...


2006/11/24 01:01:20 [error] 95458#0: accept() failed (53: Software caused 
connection abort) while accepting new connection on 0.0.0.0:80

2006/11/24 01:01:50 [alert] 95468#0: close() socket failed (22: Invalid 
argument)
   на это думаю можно не обращать внимания...

подскажите, в чем может быть проблема?

Версия nginx-0.3.49
OS: FreeBSD 6.0-RELEASE


из nginx.conf
worker_processes  16;
worker_connections  3000;
use kqueue;

из sysctl

kern.ipc.maxsockbuf: 262144
kern.ipc.numopensockets: 3658
kern.ipc.maxsockets: 12328
kern.ipc.somaxconn: 1024


# systat -tcp

 TCP Connections                    TCP Packets
       771connections initiated         20438total packets sent
      1670connections accepted           5983- data
      3111connections established          1 - data (retransmit)
        5 connections dropped           10604- ack-only
        0 - in embryonic state             0 - window probes
        0 - on retransmit timeout        106 - window updates
        0 - by keepalive                   0 - urgent data only
        0 - from listen queue            2785- control
                                           0 - resends by PMTU discovery
          TCP Timers                    17273total packets received
      7676potential rtt updates          8509- in sequence
      8653- successful                     0 - completely duplicate
        0 delayed acks sent                0 - with some duplicate data
        1 retransmit timeouts              5 - out-of-order
        0 persist timeouts               2073- duplicate acks
        0 keepalive probes               9513- acks
        0 - timeouts                       0 - window probes
                                          86 - window updates
                                           0 - bad checksum

5 connections dropped - че-то не очень мне нравится оно..

netstat -n | grep -c tcp
3244
-- 
С уважением,
 Константин




 




Copyright © Lexa Software, 1996-2009.