atom feed3 messages in ru.sysoev.nginxRe: Possible memory leak nginx 1.1.12...
FromSent OnAttachments
Daniel CarrilloJan 24, 2012 10:11 am 
Valentin V. BartenevJan 24, 2012 11:17 am 
Daniel CarrilloJan 27, 2012 3:33 am 
Subject:Re: Possible memory leak nginx 1.1.12 with pcre and jit enabled
From:Daniel Carrillo (dani@gmail.com)
Date:Jan 27, 2012 3:33:17 am
List:ru.sysoev.nginx

2012/1/24 Valentin V. Bartenev <ne@vbart.ru>:

On Tuesday 24 January 2012 22:12:07 Daniel Carrillo wrote:

Hi all.

I compiled nginx against pcre 8.21 and jit enabled. With this scenario in a few days the nginx processes are using more than 100MiB of RAM each. The same scenario with nginx 1.1.12 compiled against the system pcre library and jit disable (not available) the nginx processes are not consuming more than 13MiB each (as expected).

CentOS 6.x nginx 1.1.12 ./configure --with-pcre=../pcre-8.21/ --with-pcre-jit --with-http_stub_status_module --with-http_ssl_module --without-select_module --without-http_ssi_module --without-http_userid_module --without-poll_module --without-http_ssi_module --without-http_autoindex_module --without-http_geo_module --without-http_map_module --without-http_split_clients_module --without-http_referer_module --without-http_uwsgi_module --without-http_scgi_module --without-http_memcached_module --without-http_limit_conn_module --without-http_limit_req_module --without-http_browser_module --without-http_upstream_ip_hash_module --without-http-cache --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module

I'm not sure if the memory leak is related to nginx, pcre, configuration or a mix. Please let me know if more information is needed, configuration files, etc.

Yes, please, provide your nginx config.

Which version is your system PCRE library? Does it leak when the "pcre_jit" directive is switched off?

Just for update. I sent my configuration privately to Valentin, and he found a memory leak, he wrote a patch that works as expected, so I think that will be fixed in 1.1.14.

Thanks so much to Valentin.

Kind regards.