А Ð¼Ð¾Ð¶ÐµÑ‚е Ð¿Ð¾ÐºÐ°Ð·Ð°Ñ‚ÑŒ ÐºÐ¾Ð½Ñ„иг?<br><br><div class="gmail_quote">2011/3/25 Eugene Batogov <span dir="ltr">&lt;<a href="mailto:johnbat26@gmail.com">johnbat26@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Приветствую Ð²ÑÐµÑ….<br>Возникли Ð´Ð²Ðµ Ð¸Ð½Ñ‚ересные Ð¿Ñ€Ð¾Ð±Ð»ÐµÐ¼Ñ‹, Ð° Ñ‚очнее Ð·Ð°Ð¿Ð¸ÑÐ¸ Ð² nginx.log:<br>...<br>2011/03/18 17:34:46 [alert] 6431#0: ngx_slab_free(): chunk is already free<br>2011/03/18 17:34:46 [alert] 6429#0: ngx_slab_free(): chunk is already free<br>

2011/03/18 17:34:46 [alert] 6429#0: ngx_slab_free(): chunk is already free<br>2011/03/18 17:35:16 [alert] 6429#0: ngx_slab_free(): chunk is already free<br>2011/03/18 17:35:16 [alert] 6429#0: ngx_slab_free(): chunk is already free<br>

2011/03/18 17:35:46 [alert] 6433#0: ngx_slab_free(): chunk is already free<br>2011/03/18 17:35:46 [alert] 6433#0: ngx_slab_free(): chunk is already free<br>2011/03/18 17:36:16 [crit] 6436#0: ngx_slab_alloc() failed: no memory<br>

2011/03/18 17:36:16 [crit] 6436#0: ngx_slab_alloc() failed: no memory<br>2011/03/18 17:36:16 [crit] 6433#0: ngx_slab_alloc() failed: no memory<br>2011/03/18 17:36:16 [crit] 6433#0: ngx_slab_alloc() failed: no memory<br>2011/03/18 17:36:16 [crit] 6433#0: ngx_slab_alloc() failed: no memory<br>

2011/03/18 17:36:16 [crit] 6433#0: ngx_slab_alloc() failed: no memory<br>2011/03/18 17:36:16 [crit] 6429#0: ngx_slab_alloc() failed: no memory<br>2011/03/18 17:36:16 [crit] 6429#0: ngx_slab_alloc() failed: no memory<br>....<br>

Почему Ð¿Ð¾ÑÐ²Ð»ÑÑŽÑ‚ся ÑÑ‚и ÑÐ¾Ð¾Ð±Ñ‰ÐµÐ½Ð¸Ñ?<br>Кто Ð¸Ñ… Ð¸Ð½Ð¸Ñ†Ð¸Ð°Ñ‚ор?<br><br>и Ð²Ñ‚орая:<br>...<br>2011/03/18 17:30:16 [emerg] 6428#0: malloc() 3053187144 bytes failed (12: Cannot allocate memory)<br>...<br>Под Ñ‡Ñ‚о nginx Ð²Ñ‹Ð´ÐµÐ»ÑÐµÑ‚ Ñ‚ак Ð¼Ð½Ð¾Ð³Ð¾ Ð¿Ð°Ð¼ÑÑ‚и?<br>

Как ÑÑ‚о Ð¼Ð¾Ð¶Ð½Ð¾ ÑƒÐ·Ð½Ð°Ñ‚ÑŒ?<br><br>--------<br>И ÐµÑ‰Ðµ Ð²Ð¾Ð¿Ñ€Ð¾Ñ: Ð¼Ð¾Ð¶Ð½Ð¾ Ð»Ð¸ Ð² Linux x86 ÑƒÐ²ÐµÐ»Ð¸Ñ‡Ð¸Ñ‚ÑŒ Ñ€Ð°Ð·Ð¼ÐµÑ€ Ð¿Ð°Ð¼ÑÑ‚и Ð²Ñ‹Ð´ÐµÐ»ÑÐµÐ¼Ð¾Ð³Ð¾ ÑÐ´Ñ€Ñƒ ?<br>Просто, ÐµÑÐ»Ð¸ Ð¸ÑÐ¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÑŒ http_push (a.k.a comet) Ñ‚о Ð¿Ð°Ð¼ÑÑ‚и Ð´Ð»Ñ ÑÐ¾ÐºÐµÑ‚ов Ð¼Ð¾Ð¶ÐµÑ‚ Ð½Ðµ Ñ…ватить Ð¿Ñ€Ð¸ &gt;50K ÑÐ¾ÐµÐ´Ð¸Ð½ÐµÐ½Ð¸Ð¹.<br>

А Ð½Ð° 64-bit ÐºÐ°ÐºÐ¾Ð¹ Ñ€Ð°Ð·Ð¼ÐµÑ€ Ð¿Ð°Ð¼ÑÑ‚и Ð´Ð»Ñ ÑÐ´Ñ€Ð° Ð¿Ð¾ ÑƒÐ¼Ð¾Ð»Ñ‡Ð°Ð½Ð¸ÑŽ?<br><br>И ÐµÑ‰Ðµ Ð²Ð¾Ð·Ð½Ð¸ÐºÐ»Ð° Ð¿Ñ€Ð¾Ð±Ð»ÐµÐ¼Ð° Ñ Ð¾ÑÑ‚ановом nginx Ð¿Ð¾ÑÐ»Ðµ Ð¸ÑÐ¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ nginx_http_push_module.<br>Он Ð¾Ñ‡ÐµÐ½ÑŒ Ð´Ð¾Ð»Ð³Ð¾ Ð¾ÑÑ‚анавливается, Ñ‚акое Ð¾Ñ‰ÑƒÑ‰ÐµÐ½Ð¸Ðµ, Ñ‡Ñ‚о Ð¶Ð´ÐµÑ‚ Ð¾ÐºÐ¾Ð½Ñ‡Ð°Ð½Ð¸Ñ Ñ‚аймаутов.<br>

<br>Наш sysctl.conf Ð¿Ñ€Ð¸ÐºÑ€ÐµÐ¿Ð»ÐµÐ½ Ðº Ð¿Ð¸ÑÑŒÐ¼Ñƒ.<br><br>--------------<br>Наши Ð¾ÐºÑ€ÑƒÐ¶ÐµÐ½Ð¸Ñ:<br>-----------<br clear="all">nginx version: nginx/0.7.65<br>built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)<br>TLS SNI support disabled<br>

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=&#39;-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables&#39; --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<br>

-----------<br>nginx version: nginx/0.8.53<br>built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)<br>TLS SNI support disabled<br>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=&#39;-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables&#39; --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<br>

------------<br><br>Из ÑÑ‚оронних Ð¼Ð¾Ð´ÑƒÐ»ÐµÐ¹ Ð¼Ñ‹ Ð¸ÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÐµÐ¼:<br> - nginx_upstream_hash-0.3.1<br> - <b><a href="https://github.com/slact/nginx_http_push_module" target="_blank">nginx_http_push_module</a></b> -0.692.<br><font color="#888888"><br>
-- <br><br>
</font><br>_______________________________________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx-ru" target="_blank">http://nginx.org/mailman/listinfo/nginx-ru</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div>wbr, Kirill</div><br>