Possible memory leak nginx 1.1.12 with pcre and jit enabled

Valentin V. Bartenev ne at vbart.ru
Tue Jan 24 19:17:40 UTC 2012


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?

 wbr, Valentin V. Bartenev



More information about the nginx mailing list