Re: why will nginx's map directive eat all ram?

2013-08-04 Thread Payne Chu
Thanks Valentin, The issue fixed Posted at Nginx Forum: http://forum.nginx.org/read.php?2,241478,241566#msg-241566 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: why will nginx's map directive eat all ram?

2013-08-03 Thread Payne Chu
Finally I can reproduce even in the Homebrew version. It will only leak when I use relative path. and all version also can reproduce. b4 I test Homebrew version with full path not relative path that's the differentXD~ map $pid $public_root { default public; } <-- this one relative path lea

Re: why will nginx's map directive eat all ram?

2013-08-03 Thread Payne Chu
https://groups.google.com/forum/#!topic/openresty-en/ArNhoL7Ol2U here is the reply from OpenResty's agentzh. seems the leak come from nginx 1.4.1's core. Maybe Homebrew have some patch fixed this issue ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,241478,241502#msg-241502

Re: why will nginx's map directive eat all ram?

2013-08-02 Thread Payne Chu
here it is nginx version: ngx_openresty/1.4.1.1 TLS SNI support enabled configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-I/usr/local/Cellar/pcre/8.33/include -I/usr/local/Cellar/luajit/2.02/luajit2.0/include' --add-module=../ngx_devel_kit-0.2.18 --add-module=../echo-nginx-m

why will nginx's map directive eat all ram?

2013-08-02 Thread Payne Chu
recently I try to use map directive to make my nginx.conf DRY. like below `map $pid $public_root { default public; }` and in one of server directive I put below `root $public_root;` I try to `ab` test with retrieve a static html. the nginx will eat all ram. if I reset back to `root public;` it