ПРОЕКТЫ 


  АРХИВ 


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]

Re: зависания на read (debug)



Dmitriy MiksIr wrote:
Стандартная схема
nginx - apache 1.3.33
Имеем кучу apache в reading состоянии. Судя по логам и трейсу, nginx делает коннект, апач его accept и вистит в read состоянии. Однако nginx не спешит ему говорить что-то... и или говорит через большую паузу или отваливается по таймауту (upstream timed out (110: Connection timed out) while connecting to upstream).
Предположительно проблемы начались после переезда на 2.4.33.3.
Подскажите, что крутить или какую доп инфу дать.

Попробовал поставить обработку через select - пока все работает.
Debug выглядит так...

2006/09/23 13:41:00 [debug] 18319#0: *230678 http proxy header: 
"Accept-Language: ru,en-us;q=0.7,en;q=0.3"
2006/09/23 13:41:00 [debug] 18319#0: *230678 http proxy header: 
"Accept-Encoding: gzip,deflate"
2006/09/23 13:41:00 [debug] 18319#0: *230678 http proxy header: 
"Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7"
2006/09/23 13:41:00 [debug] 18319#0: *230678 http proxy header:
2006/09/23 13:41:00 [debug] 18319#0: *230678 http cleanup add: 08288090
2006/09/23 13:41:00 [debug] 18319#0: *230678 socket 371
2006/09/23 13:41:00 [debug] 18319#0: *230678 rtsig add connection: fd:371 
signo:45
2006/09/23 13:41:00 [debug] 18319#0: *230678 connect to 127.0.0.1:80, fd:371 
#230679
2006/09/23 13:41:00 [debug] 18319#0: *230678 http upstream connect: -2
2006/09/23 13:41:00 [debug] 18319#0: *230678 event timer add: 371: 
60000:3658318242
2006/09/23 13:41:19 [debug] 18319#0: *230678 http upstream send request handler
2006/09/23 13:41:19 [debug] 18319#0: *230678 http upstream send request
2006/09/23 13:41:19 [debug] 18319#0: *230678 chain writer buf size: 476
2006/09/23 13:41:19 [debug] 18319#0: *230678 chain writer in: 0828809C
2006/09/23 13:41:19 [debug] 18319#0: *230678 writev: 476
2006/09/23 13:41:19 [debug] 18319#0: *230678 chain writer out: 00000000
2006/09/23 13:41:19 [debug] 18319#0: *230678 event timer del: 371: 3658318242
2006/09/23 13:41:19 [debug] 18319#0: *230678 event timer add: 371: 
60000:3658336576
2006/09/23 13:41:46 [debug] 18319#0: *230678 http upstream process header
2006/09/23 13:41:46 [debug] 18319#0: *230678 malloc: 082E5370:4096
2006/09/23 13:41:46 [debug] 18319#0: *230678 recv: fd:371 614 of 4096
2006/09/23 13:41:46 [debug] 18319#0: *230678 http proxy status 0 "401 
Authorization Required"
----
2006/09/23 13:42:35 [debug] 18319#0: *230678 http proxy header: 
"Accept-Language: ru,en-us;q=0.7,en;q=0.3"
2006/09/23 13:42:35 [debug] 18319#0: *230678 http proxy header: 
"Accept-Encoding: gzip,deflate"
2006/09/23 13:42:35 [debug] 18319#0: *230678 http proxy header: 
"Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7"
2006/09/23 13:42:35 [debug] 18319#0: *230678 http proxy header:
2006/09/23 13:42:35 [debug] 18319#0: *230678 http cleanup add: 0821CC78
2006/09/23 13:42:35 [debug] 18319#0: *230678 socket 172
2006/09/23 13:42:35 [debug] 18319#0: *230678 rtsig add connection: fd:172 
signo:46
2006/09/23 13:42:35 [debug] 18319#0: *230678 connect to 127.0.0.1:80, fd:172 
#231072
2006/09/23 13:42:35 [debug] 18319#0: *230678 http upstream connect: -2
2006/09/23 13:42:35 [debug] 18319#0: *230678 event timer add: 172: 
60000:3658412376
2006/09/23 13:43:35 [debug] 18319#0: *230678 event timer del: 172: 3658412376
2006/09/23 13:43:35 [debug] 18319#0: *230678 http upstream send request handler
2006/09/23 13:43:35 [debug] 18319#0: *230678 http next upstream, 4
2006/09/23 13:43:35 [debug] 18319#0: *230678 finalize http upstream request: 504
2006/09/23 13:43:35 [debug] 18319#0: *230678 finalize http proxy request
2006/09/23 13:43:35 [debug] 18319#0: *230678 close http upstream connection: 172
2006/09/23 13:43:35 [debug] 18319#0: *230678 rtsig del connection: fd:172
2006/09/23 13:43:35 [debug] 18319#0: *230678 http finalize request: 504, 
"/server-status?"
2006/09/23 13:43:35 [debug] 18319#0: *230678 http special response: 504, 
"/server-status"
2006/09/23 13:43:35 [debug] 18319#0: *230678 http set discard body
2006/09/23 13:43:35 [debug] 18319#0: *230678 HTTP/1.1 504 Gateway Time-out


 




Copyright © Lexa Software, 1996-2009.