Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx-0.8.21
2009/10/28 Igor Sysoev <is@xxxxxxxxxxxxx>:
>
> Ищем в логе alert'ы вида "1111#0 open socket #3333 left in connection 2222",
> запускаем gdb на нужную корку:
>
> gdb /path/to/nginx /path/to/core.1111
> qq 2222
>
2009/10/27 18:51:55 [alert] 14960#0: open socket #730 left in connection 651
2009/10/27 18:51:55 [alert] 14960#0: open socket #148 left in connection 655
2009/10/27 18:51:55 [alert] 14960#0: open socket #1062 left in connection 671
2009/10/27 18:51:55 [alert] 14960#0: aborting
2009/10/27 18:51:56 [notice] 14959#0: signal 17 (SIGCHLD) received
2009/10/27 18:51:56 [alert] 14959#0: worker process 14960 exited on
signal 6 (core dumped)
(gdb) qq 655
$6 = {len = 16, data = 0x74fc004 "/room/095/01.wmv HTTP/1.1\r\nAccept"}
$7 = {len = 29, data = 0x74fc000 "GET /room/095/01.wmv HTTP/1.1\r\nAccept"}
discard_body 0
lingering_close 0
lingering_time 0
keepalive 1
$8 = (ngx_http_event_handler_pt) 0x44636d <ngx_http_test_reading>
$9 = (ngx_http_event_handler_pt) 0x446254 <ngx_http_request_finalizer>
$10 = 0x49bfca "sending response to client"
status 200
count 1
blocked 1
sent 3456999
length -1
Cannot access memory at address 0x0
(gdb) qq 651
$16 = {len = 16, data = 0x6df3004 "/beach/170/3.wmv HTTP/1.1\r\nHost"}
$17 = {len = 29, data = 0x6df3000 "GET /beach/170/3.wmv HTTP/1.1\r\nHost"}
discard_body 0
lingering_close 0
lingering_time 0
keepalive 0
$18 = (ngx_http_event_handler_pt) 0x44636d <ngx_http_test_reading>
$19 = (ngx_http_event_handler_pt) 0x446254 <ngx_http_request_finalizer>
$20 = 0x49bfca "sending response to client"
status 200
count 1
blocked 1
sent 1503060
length -1
Cannot access memory at address 0x0
--
Aleksej Besciokov
EMail/JID: proforg@xxxxxxxxxxxx
phone: +7 495 7853149
|