nginx/0.8.52: течёт

stitrace nginx-forum на nginx.us
Сб Окт 9 22:19:04 MSD 2010


Обрадовался релизу 0.8 версии, и
обновился с 0.7.65. В итоге через пять
минут работы вот это:

[code]
13595 nobody          1   4    0  1557M  1138M kqread 7   5:52 53.56%
nginx
13590 nobody          1 107    0  1384M   925M CPU4   4   5:08 53.27%
nginx
13591 nobody          1   4    0   879M   529M CPU2   2   3:34 41.99%
nginx
[/code]

[code]
Active connections: 51 
server accepts handled requests
 95951 95951 95951 
Reading: 0 Writing: 51 Waiting: 0 
[/code]

[code]
nginx version: nginx/0.8.52
built by gcc 4.2.1 20070719  [FreeBSD]
configure arguments: --prefix=/usr/local/nginx-frontend
--with-http_geoip_module --with-http_sub_module --with-http_flv_module
--with-http_stub_status_module --with-file-aio
--without-mail_pop3_module --without-mail_imap_module
--without-mail_smtp_module
[/code]

[code]
user  nobody;
worker_processes  8;
timer_resolution   100ms;

error_log  logs/error.log;
pid        logs/nginx.pid;



events {
    worker_connections  1024;
    use kqueue;
}


http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    tcp_nopush      on;
    tcp_nodelay     on;
    aio             sendfile;
    reset_timedout_connection  on;
    keepalive_timeout  0;
    server_tokens off;
    index index.php;
    gzip             on;
    gzip_min_length  1000;
    gzip_proxied     expired no-cache no-store private auth;
    gzip_types       text/plain application/xml;

    geoip_country /usr/local/nginx-frontend/conf/GeoIP.dat;
    log_format main $remote_addr [$geoip_country_code3 -
$geoip_country_name] $status;
    proxy_cache_path /var/cache levels=1:2 keys_zone=cachezone:64m
max_size=512m inactive=1m;
    proxy_next_upstream error timeout invalid_header http_500 http_502
http_503 http_504 http_404;
    proxy_buffers 128 16k;
    proxy_max_temp_file_size  0;
    proxy_buffer_size 16k;
    
    upstream  zenit {
         server   192.168.1.2:9002 weight=10;
         server   192.168.1.4:9002 weight=3;
         server   192.168.1.3:9002 weight=1;
         server   192.168.1.1:9002 weight=1;
    }
[/code]


[code]
2010/10/09 05:50:31 [alert] 3392#0: *295846690
sendfile(/usr/Web/servers/whbeta/data/res/img/deco/bg-lines.png)
returned busy again while sending response to
2010/10/09 06:03:59 [emerg] 3391#0: *298435466 malloc(270336) failed
(12: Cannot allocate memory) while sending to client, client:
81.97.130.59, server: fc-z
2010/10/09 06:03:59 [emerg] 3391#0: *285398437 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while reading response header from
upstream, clie
2010/10/09 06:03:59 [emerg] 3391#0: *285398437 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while sending to client, client:
75.101.176.194,
2010/10/09 06:09:21 [emerg] 3391#0: *299919927 malloc(65536) failed (12:
Cannot allocate memory) while reading upstream, client: 87.250.254.241,
server: fc-z
2010/10/09 06:09:22 [emerg] 3391#0: *284888691 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while reading response header from
upstream, clie
2010/10/09 06:09:22 [emerg] 3391#0: *284888691 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while sending to client, client:
75.101.238.112,
2010/10/09 06:10:01 [emerg] 3388#0: *300312404 malloc(16384) failed (12:
Cannot allocate memory) while reading upstream, client: 81.23.121.34,
server: beta.f
2010/10/09 06:10:01 [emerg] 3388#0: *285244622 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while reading response header from
upstream, clie
2010/10/09 06:10:01 [emerg] 3388#0: *285244622 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while sending to client, client:
75.101.238.112,
2010/10/09 06:11:33 [emerg] 3391#0: *285351252 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while reading response header from
upstream, clie
2010/10/09 06:11:33 [emerg] 3391#0: *285351252 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while sending to client, client:
75.101.176.194,
2010/10/09 06:18:34 [emerg] 3392#0: *285336609 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while reading response header from
upstream, clie
2010/10/09 06:18:34 [emerg] 3392#0: *285336609 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while sending to client, client:
75.101.238.112,
2010/10/09 08:21:52 [emerg] 3387#0: *311408345 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while reading response header from
upstream, clie
2010/10/09 08:21:52 [emerg] 3387#0: *311408345 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while sending to client, client:
92.62.62.35, ser
2010/10/09 08:23:52 [emerg] 3387#0: *320975044 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while connecting to upstream,
client: 78.37.237.2
2010/10/09 08:23:52 [emerg] 3387#0: *320975044 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while sending to client, client:
78.37.237.229, s
2010/10/09 08:24:03 [emerg] 3387#0: *307277541 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while reading response header from
upstream, clie
2010/10/09 08:24:03 [emerg] 3387#0: *307277541 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while sending to client, client:
94.100.195.24, s
2010/10/09 08:28:21 [emerg] 3392#0: *316096418 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while reading response header from
upstream, clie
2010/10/09 08:28:21 [emerg] 3392#0: *316096418 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while sending to client, client:
92.62.62.2, serv
2010/10/09 08:38:42 [emerg] 3388#0: *313211277 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while reading response header from
upstream, clie
2010/10/09 08:38:42 [emerg] 3388#0: *313211277 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while sending to client, client:
83.149.3.26, ser
2010/10/09 08:48:48 [alert] 3390#0: *340735505
sendfile(/usr/local/nginx-frontend/proxy_temp/2/97/0059569972) returned
busy again while sending to client, cl
2010/10/09 08:50:59 [emerg] 3389#0: *341807263 malloc(2097152) failed
(12: Cannot allocate memory) while connecting to upstream, client:
178.252.108.145, ser
2010/10/09 08:50:59 [alert] 3389#0: *341807263 connection already closed
while connecting to upstream, client: 178.252.108.145, server:
forum.fc-zenit.ru, re
2010/10/09 08:51:02 [emerg] 3389#0: *341848189 malloc(2097152) failed
(12: Cannot allocate memory) while connecting to upstream, client:
188.134.33.37, serve
2010/10/09 08:51:02 [alert] 3389#0: *341848189 connection already closed
while connecting to upstream, client: 188.134.33.37, server:
forum.fc-zenit.ru, requ
2010/10/09 08:51:05 [emerg] 3389#0: *334062920 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while reading response header from
upstream, clie
2010/10/09 08:51:05 [emerg] 3389#0: *334062920 posix_memalign(16, 4096)
failed (12: Cannot allocate memory) while sending to client, client:
109.205.248.206,
2010/10/09 08:51:38 [alert] 3386#0: worker process 3392 exited on signal
9
2010/10/09 09:00:15 [alert] 3386#0: worker process 3388 exited on signal
9
2010/10/09 09:08:22 [alert] 3386#0: worker process 3389 exited on signal
9
[/code]

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,138835,138835#msg-138835




Подробная информация о списке рассылки nginx-ru