[emerg] 6428#0: malloc() 3053187144 bytes failed (12: Cannot allocate memory)

Kirill A. Korinskiy catap на catap.ru
Пт Мар 25 14:06:24 MSK 2011


А можете показать конфиг?

2011/3/25 Eugene Batogov <johnbat26 at gmail.com>

> Приветствую всех.
> Возникли две интересные проблемы, а точнее записи в nginx.log:
> ...
> 2011/03/18 17:34:46 [alert] 6431#0: ngx_slab_free(): chunk is already free
> 2011/03/18 17:34:46 [alert] 6429#0: ngx_slab_free(): chunk is already free
> 2011/03/18 17:34:46 [alert] 6429#0: ngx_slab_free(): chunk is already free
> 2011/03/18 17:35:16 [alert] 6429#0: ngx_slab_free(): chunk is already free
> 2011/03/18 17:35:16 [alert] 6429#0: ngx_slab_free(): chunk is already free
> 2011/03/18 17:35:46 [alert] 6433#0: ngx_slab_free(): chunk is already free
> 2011/03/18 17:35:46 [alert] 6433#0: ngx_slab_free(): chunk is already free
> 2011/03/18 17:36:16 [crit] 6436#0: ngx_slab_alloc() failed: no memory
> 2011/03/18 17:36:16 [crit] 6436#0: ngx_slab_alloc() failed: no memory
> 2011/03/18 17:36:16 [crit] 6433#0: ngx_slab_alloc() failed: no memory
> 2011/03/18 17:36:16 [crit] 6433#0: ngx_slab_alloc() failed: no memory
> 2011/03/18 17:36:16 [crit] 6433#0: ngx_slab_alloc() failed: no memory
> 2011/03/18 17:36:16 [crit] 6433#0: ngx_slab_alloc() failed: no memory
> 2011/03/18 17:36:16 [crit] 6429#0: ngx_slab_alloc() failed: no memory
> 2011/03/18 17:36:16 [crit] 6429#0: ngx_slab_alloc() failed: no memory
> ....
> Почему появляются эти сообщения?
> Кто их инициатор?
>
> и вторая:
> ...
> 2011/03/18 17:30:16 [emerg] 6428#0: malloc() 3053187144 bytes failed (12:
> Cannot allocate memory)
> ...
> Под что nginx выделяет так много памяти?
> Как это можно узнать?
>
> --------
> И еще вопрос: можно ли в Linux x86 увеличить размер памяти выделяемого ядру
> ?
> Просто, если использовать http_push (a.k.a comet) то памяти для сокетов
> может не хватить при >50K соединений.
> А на 64-bit какой размер памяти для ядра по умолчанию?
>
> И еще возникла проблема с остановом nginx после использования
> nginx_http_push_module.
> Он очень долго останавливается, такое ощущение, что ждет окончания
> таймаутов.
>
> Наш sysctl.conf прикреплен к письму.
>
> --------------
> Наши окружения:
> -----------
> nginx version: nginx/0.7.65
> built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
> TLS SNI support disabled
> configure arguments: --user=nginx --group=nginx --prefix=/usr/share/nginx
> --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf
> --error-log-path=/var/log/nginx/error.log
> --http-log-path=/var/log/nginx/access.log
> --http-client-body-temp-path=/var/lib/nginx/tmp/client_body
> --http-proxy-temp-path=/var/lib/nginx/tmp/proxy
> --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi
> --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx
> --with-http_ssl_module --with-http_realip_module --with-http_addition_module
> --with-http_sub_module --with-http_dav_module --with-http_flv_module
> --with-http_gzip_static_module --with-http_stub_status_module
> --with-http_perl_module --with-mail --with-mail_ssl_module
> --with-cc-opt='-O2 -g -m32 -march=i386 -mtune=generic
> -fasynchronous-unwind-tables'
> --add-module=/usr/src/redhat/BUILD/nginx-0.7.65/nginx-upstream-fair
> --add-module=/usr/src/redhat/BUILD/nginx-0.7.65/nginx_http_push_module-0.692
> --add-module=/usr/src/redhat/BUILD/nginx-0.7.65/nginx_upstream_hash-0.3.1
> -----------
> nginx version: nginx/0.8.53
> built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
> TLS SNI support disabled
> configure arguments: --user=nginx --group=nginx --prefix=/usr/share/nginx
> --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf
> --error-log-path=/var/log/nginx/error.log
> --http-log-path=/var/log/nginx/access.log
> --http-client-body-temp-path=/var/lib/nginx/tmp/client_body
> --http-proxy-temp-path=/var/lib/nginx/tmp/proxy
> --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi
> --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx
> --with-http_secure_link_module --with-http_random_index_module
> --with-http_ssl_module --with-http_realip_module --with-http_addition_module
> --with-http_sub_module --with-http_dav_module --with-http_flv_module
> --with-http_gzip_static_module --with-http_stub_status_module
> --with-http_perl_module --with-mail --with-mail_ssl_module
> --with-cc-opt='-O2 -g -m32 -march=i386 -mtune=generic
> -fasynchronous-unwind-tables' --with-ipv6
> --add-module=/usr/src/redhat/BUILD/nginx-0.8.53/nginx-upstream-fair
> --add-module=/usr/src/redhat/BUILD/nginx-0.8.53/nginx-upload-progress-module
> --add-module=/usr/src/redhat/BUILD/nginx-0.8.53/mod_zip-1.1.6
> --add-module=/usr/src/redhat/BUILD/nginx-0.8.53/nginx_upload_module-2.2.0
> --add-module=/usr/src/redhat/BUILD/nginx-0.8.53/nginx_mod_h264_streaming-2.2.7
> --add-module=/usr/src/redhat/BUILD/nginx-0.8.53/nginx_http_push_module-0.692
> --add-module=/usr/src/redhat/BUILD/nginx-0.8.53/nginx_upstream_hash-0.3.1
> ------------
>
> Из сторонних модулей мы используем:
>  - nginx_upstream_hash-0.3.1
>  - *nginx_http_push_module<https://github.com/slact/nginx_http_push_module>
> * -0.692.
>
> --
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>
>


-- 
wbr, Kirill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20110325/3e39e8b7/attachment.html>


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