Утечка файл дескрипторов?

Mike Kolesnikov mozilla_bugs at mail.ru
Wed Mar 16 14:30:07 MSK 2005


Igor Sysoev wrote:

>>Только что проверил, и точно, кол-во открытых index.php увеличивается с
>>каждым обращением к корню сайта! Сейчас уже 220, после моих экспериментов.
> 
> А можно собрать с отладкой и сделать запрос с debug хотя бы для одного
> клиента, запрашивающего / ?

Да, запустил на другом порту с тем же конфигом:

2005/03/16 05:22:11 [debug] 10876#0: accept on xx.xx.xx.xx:1180, ready: 1
2005/03/16 05:22:11 [debug] 10876#0: malloc: 08A83928:256
2005/03/16 05:22:11 [debug] 10876#0: accept: fd:5 c:1
2005/03/16 05:22:11 [debug] 10876#0: rtsig add connection: fd:5 signo:43
2005/03/16 05:22:11 [debug] 10876#0: *1 malloc: 08ACE500:688
2005/03/16 05:22:11 [debug] 10876#0: *1 malloc: 08ACE7B8:2048
2005/03/16 05:22:11 [debug] 10876#0: *1 malloc: 08ACEFC0:4096
2005/03/16 05:22:11 [debug] 10876#0: *1 http process request line
2005/03/16 05:22:11 [debug] 10876#0: *1 recv: fd:5 -1 of 2048
2005/03/16 05:22:11 [debug] 10876#0: *1 recv() not ready (11: Resource
temporarily unavailable)
2005/03/16 05:22:11 [debug] 10876#0: *1 event timer add: 5: 3057580
2005/03/16 05:22:11 [debug] 10876#0: malloc: 08A83798:256
2005/03/16 05:22:11 [debug] 10876#0: free: 08A83798, unused: 196
2005/03/16 05:22:11 [debug] 10876#0: worker cycle
2005/03/16 05:22:11 [debug] 10876#0: rtsig timer: 120000
2005/03/16 05:22:11 [debug] 10876#0: rtsig signo:43 fd:5 band:0041
2005/03/16 05:22:11 [debug] 10876#0: rtsig timer: 120000, delta: 1
2005/03/16 05:22:11 [debug] 10876#0: *1 http process request line
2005/03/16 05:22:11 [debug] 10876#0: *1 recv: fd:5 1155 of 2048
2005/03/16 05:22:11 [debug] 10876#0: *1 http request line: "GET / HTTP/1.0"
2005/03/16 05:22:11 [debug] 10876#0: *1 http uri: "/"
2005/03/16 05:22:11 [debug] 10876#0: *1 http args: ""
2005/03/16 05:22:11 [debug] 10876#0: *1 http exten: ""
2005/03/16 05:22:11 [debug] 10876#0: *1 http process request header line
2005/03/16 05:22:11 [debug] 10876#0: *1 http header: "Host:
www.domain.com:1180"
2005/03/16 05:22:11 [debug] 10876#0: *1 http header: "User-Agent:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050314"
2005/03/16 05:22:11 [debug] 10876#0: *1 http header: "Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
2005/03/16 05:22:11 [debug] 10876#0: *1 http header: "Accept-Language:
en-us,en;q=0.5"
2005/03/16 05:22:11 [debug] 10876#0: *1 http header: "Accept-Encoding:
gzip,deflate"
2005/03/16 05:22:11 [debug] 10876#0: *1 http header: "Accept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.7"
2005/03/16 05:22:11 [debug] 10876#0: *1 http header: "Connection: close"
2005/03/16 05:22:11 [debug] 10876#0: *1 http header done
2005/03/16 05:22:11 [debug] 10876#0: *1 event timer del: 5: 3057580
2005/03/16 05:22:11 [debug] 10876#0: *1 uri changes: 11
2005/03/16 05:22:11 [debug] 10876#0: *1 find location
2005/03/16 05:22:11 [debug] 10876#0: *1 find location: "/"
2005/03/16 05:22:11 [debug] 10876#0: *1 find location: = "/s-status"
2005/03/16 05:22:11 [debug] 10876#0: *1 find location: ~ "^.+\.(php|phtml)$"
2005/03/16 05:22:11 [debug] 10876#0: *1 http cl:-1 max:8388608
2005/03/16 05:22:11 [debug] 10876#0: *1 open index
"/home/ads/website/index.php"
2005/03/16 05:22:11 [debug] 10876#0: *1 internal redirect: "/index.php"
2005/03/16 05:22:11 [debug] 10876#0: *1 uri changes: 11
2005/03/16 05:22:11 [debug] 10876#0: *1 find location
2005/03/16 05:22:11 [debug] 10876#0: *1 find location: "/"
2005/03/16 05:22:11 [debug] 10876#0: *1 find location: = "/s-status"
2005/03/16 05:22:11 [debug] 10876#0: *1 find location: ~ "^.+\.(php|phtml)$"
2005/03/16 05:22:11 [debug] 10876#0: *1 http cl:-1 max:8388608
2005/03/16 05:22:11 [debug] 10876#0: *1 http init upstream, client timer: 0
2005/03/16 05:22:11 [debug] 10876#0: *1 rtsig add connection: fd:8 signo:43
2005/03/16 05:22:11 [debug] 10876#0: *1 connect to 127.0.0.1:1234, #2
2005/03/16 05:22:11 [debug] 10876#0: *1 http upstream connect: -2
2005/03/16 05:22:11 [debug] 10876#0: *1 event timer add: 8: 2947581
2005/03/16 05:22:11 [debug] 10876#0: worker cycle
2005/03/16 05:22:11 [debug] 10876#0: rtsig timer: 10000
2005/03/16 05:22:11 [debug] 10876#0: rtsig signo:43 fd:8 band:0304
2005/03/16 05:22:11 [debug] 10876#0: rtsig timer: 10000, delta: 1
2005/03/16 05:22:11 [debug] 10876#0: *1 http upstream send request handler
2005/03/16 05:22:11 [debug] 10876#0: *1 http upstream send request
2005/03/16 05:22:11 [debug] 10876#0: *1 chain writer buf size: 1400
2005/03/16 05:22:11 [debug] 10876#0: *1 chain writer in: 08ACFA88
2005/03/16 05:22:11 [debug] 10876#0: *1 writev: 1400
2005/03/16 05:22:11 [debug] 10876#0: *1 chain writer out: 00000000
2005/03/16 05:22:11 [debug] 10876#0: *1 event timer del: 8: 2947581
2005/03/16 05:22:11 [debug] 10876#0: *1 event timer add: 8: 3117582
2005/03/16 05:22:11 [debug] 10876#0: worker cycle
2005/03/16 05:22:11 [debug] 10876#0: rtsig timer: 180000
2005/03/16 05:22:11 [debug] 10876#0: rtsig signo:43 fd:8 band:0041
2005/03/16 05:22:11 [debug] 10876#0: rtsig timer: 180000, delta: 2
2005/03/16 05:22:11 [debug] 10876#0: *1 http upstream process header
2005/03/16 05:22:11 [debug] 10876#0: *1 malloc: 08ACFFC8:65536
2005/03/16 05:22:11 [debug] 10876#0: *1 recv: fd:8 160 of 65536
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 01
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 06
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 00
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 01
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 00
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 79
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 07
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 00
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record length: 121
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi parser: 0
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi header: "Status: 302"
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi parser: 0
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi header:
"Content-type: text/html"
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi parser: 0
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi header:
"X-Powered-By: PHP/4.3.11-dev"
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi parser: 0
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi header: "Location:
http://www.domain.com/admin/index.php"
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi parser: 1
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi header done
2005/03/16 05:22:11 [debug] 10876#0: *1 HTTP/1.1 302
Server: nginx/0.1.24
Date: Wed, 16 Mar 2005 11:22:11 GMT
Content-Type: text/html
Connection: close
Location: http://www.domain.com/admin/index.php


2005/03/16 05:22:11 [debug] 10876#0: *1 write new buf t:1 f:0 08ACFC10,
pos 08ACFC10, size: 170 file: 0, size: 0
2005/03/16 05:22:11 [debug] 10876#0: *1 http write filter: l:0 f:0 s:170
2005/03/16 05:22:11 [debug] 10876#0: *1 http upstream process upstream
2005/03/16 05:22:11 [debug] 10876#0: *1 pipe read upstream: 1
2005/03/16 05:22:11 [debug] 10876#0: *1 pipe preread: 31
2005/03/16 05:22:11 [debug] 10876#0: *1 readv: 1:65376
2005/03/16 05:22:11 [debug] 10876#0: *1 pipe recv chain: 0
2005/03/16 05:22:11 [debug] 10876#0: *1 pipe buf free s:0 t:1 f:0
08ACFFC8, pos 08AD0049, size: 31 file: 0, size: 0
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 01
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 06
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 00
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 01
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 00
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 00
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 00
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 00
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record length: 0
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi closed stdout
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 01
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 03
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 00
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 01
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 00
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 08
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 00
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record byte: 00
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi record length: 8
2005/03/16 05:22:11 [debug] 10876#0: *1 http fastcgi sent end request
2005/03/16 05:22:11 [debug] 10876#0: *1 free: 08ACFFC8
2005/03/16 05:22:11 [debug] 10876#0: *1 pipe write downstream: 1
2005/03/16 05:22:11 [debug] 10876#0: *1 pipe write downstream done
2005/03/16 05:22:11 [debug] 10876#0: *1 event timer: 8, old: 3117582,
new: 3117584
2005/03/16 05:22:11 [debug] 10876#0: *1 event timer add: 5: 3117584
2005/03/16 05:22:11 [debug] 10876#0: *1 http upstream exit: 00000000
2005/03/16 05:22:11 [debug] 10876#0: *1 finalize http upstream request: 0
2005/03/16 05:22:11 [debug] 10876#0: *1 finalize http fastcgi request
2005/03/16 05:22:11 [debug] 10876#0: *1 close http upstream connection: 8
2005/03/16 05:22:11 [debug] 10876#0: *1 event timer del: 8: 3117582
2005/03/16 05:22:11 [debug] 10876#0: *1 rtsig del connection: fd:8
2005/03/16 05:22:11 [debug] 10876#0: *1 http upstream temp fd: -1
2005/03/16 05:22:11 [debug] 10876#0: *1 write old buf t:1 f:0 08ACFC10,
pos 08ACFC10, size: 170 file: 0, size: 0
2005/03/16 05:22:11 [debug] 10876#0: *1 write new buf t:0 f:0 00000000,
pos 00000000, size: 0 file: 0, size: 0
2005/03/16 05:22:11 [debug] 10876#0: *1 http write filter: l:1 f:0 s:170
2005/03/16 05:22:11 [debug] 10876#0: *1 writev: 170
2005/03/16 05:22:11 [debug] 10876#0: *1 http write filter 00000000
2005/03/16 05:22:11 [debug] 10876#0: *1 http finalize request: 0
2005/03/16 05:22:11 [debug] 10876#0: *1 event timer del: 5: 3117584
2005/03/16 05:22:11 [debug] 10876#0: *1 http close request
2005/03/16 05:22:11 [debug] 10876#0: *1 http log handler
2005/03/16 05:22:11 [debug] 10876#0: *1 free: 00000000
2005/03/16 05:22:11 [debug] 10876#0: *1 free: 08ACEFC0, unused: 384
2005/03/16 05:22:11 [debug] 10876#0: *1 close http connection: 5
2005/03/16 05:22:11 [debug] 10876#0: *1 rtsig del connection: fd:5
2005/03/16 05:22:11 [debug] 10876#0: *1 free: 08ACE500
2005/03/16 05:22:11 [debug] 10876#0: *1 free: 08ACE7B8
2005/03/16 05:22:11 [debug] 10876#0: *1 free: 08A83928, unused: 80
2005/03/16 05:22:11 [debug] 10876#0: worker cycle
2005/03/16 05:22:11 [debug] 10876#0: rtsig timer: -1
2005/03/16 05:22:11 [debug] 10876#0: rtsig signo:43 fd:8 band:0041
2005/03/16 05:22:11 [debug] 10876#0: worker cycle
2005/03/16 05:22:11 [debug] 10876#0: rtsig timer: -1
2005/03/16 05:22:11 [debug] 10876#0: rtsig signo:43 fd:8 band:0041
2005/03/16 05:22:11 [debug] 10876#0: worker cycle
2005/03/16 05:22:11 [debug] 10876#0: rtsig timer: -1






More information about the nginx-ru mailing list