no memory при постановке на comet-канал
johnbat26 на gmail.com
johnbat26 на gmail.com
Чт Окт 28 18:47:31 MSD 2010
Привет всем.
Мы используем comet модуль: nginx_http_push_module-0.692
До определенного момента все идет хорошо.
Потом начинает валиться ошибка:
2010/10/28 18:31:03 [crit] 19884#0: ngx_slab_alloc() failed: no memory
2010/10/28 18:31:03 [crit] 19882#0: ngx_slab_alloc() failed: no memory
2010/10/28 18:31:03 [crit] 19882#0: ngx_slab_alloc() failed: no memory
2010/10/28 18:31:03 [crit] 19883#0: ngx_slab_alloc() failed: no memory
2010/10/28 18:31:03 [crit] 19883#0: ngx_slab_alloc() failed: no memory
2010/10/28 18:31:04 [crit] 19882#0: ngx_slab_alloc() failed: no memory
2010/10/28 18:31:04 [crit] 19882#0: ngx_slab_alloc() failed: no memory
2010/10/28 18:31:04 [crit] 19883#0: ngx_slab_alloc() failed: no memory
2010/10/28 18:31:04 [crit] 19883#0: ngx_slab_alloc() failed: no memory
2010/10/28 18:31:04 [crit] 19883#0: ngx_slab_alloc() failed: no memory
2010/10/28 18:31:04 [crit] 19883#0: ngx_slab_alloc() failed: no memory
2010/10/28 18:31:05 [crit] 19878#0: ngx_slab_alloc() failed: no memory
2010/10/28 18:31:05 [crit] 19878#0: ngx_slab_alloc() failed: no memory
2010/10/28 18:31:05 [crit] 19883#0: ngx_slab_alloc() failed: no memory
2010/10/28 18:31:05 [crit] 19883#0: ngx_slab_alloc() failed: no memory
Что и где надо подкрутить чтобы памяти хватало?
При постановке на канал, возвращается ошибка 500.
Весь остальной функционал работает нормально.
------------------
nginx -V
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
--------------
sysctl.conf:
Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1
# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1
# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536
# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456
# For NGINX
net.ipv4.ip_local_port_range = 1025 65535
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 3
--
Best Regards, Eugene Batogov
Подробная информация о списке рассылки nginx-ru