ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

no memory при постановке на comet -канал


  • To: nginx-ru@xxxxxxxxx
  • Subject: no memory при постановке на comet -канал
  • From: johnbat26@xxxxxxxxx
  • Date: Thu, 28 Oct 2010 18:47:31 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=fKQp08bHkrFBhDoFCGQyV1F1wBkMLxNHTuP35+PRwiY=; b=VBVXM2gcjdPYlZNySzy+IhuDniwlljpFS6hQR/2eceXoZtGj3jT6zYwiKcUFFL/4vy Hvxoi88d5N+pLRwlZqPapyC78WxDhM5NjOuGX1s4Kjy2dyeHKQ2E51qSh704S7JqLrCS MsGBCLIYraRbQ/vRENGG+eUlGASEzncR9TsiY=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=gbpcV2bSU/DSKKoNEAEcnbFfSZmwLpp4xMIM1+Ywvvf6CtSTDpPtbWp85gyHusc8qk ZdFPk45OnvgkeSGNMVPj228sS9n1sYc+OAMk7BdddNYkSpOQ8QwjeJMd880+NHQnvrrq bv2KWD2Ftpbb3DL9qoZMEuMkra0auszpcHKNc=
  • In-reply-to: <3881f301c3c63be7df2f31042448be2f.NginxMailingListRussian@xxxxxxxxxxxxxxx>
  • Organization: CTI
  • References: <3881f301c3c63be7df2f31042448be2f.NginxMailingListRussian@xxxxxxxxxxxxxxx>

Привет всем.
Мы используем 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 mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.