Possible memory leak nginx 1.1.12 with pcre and jit enabled

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.

Thanks in advanced.
Kind Regards.

On Tuesday 24 January 2012 22:12:07 Daniel C. wrote:

./configure --with-pcre=…/pcre-8.21/ --with-pcre-jit
–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

2012/1/24 Valentin V. Bartenev [email protected]:

nginx 1.1.12
–without-http_upstream_ip_hash_module --without-http-cache
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.