why will nginx's map directive eat all ram?

Valentin V. Bartenev vbart at nginx.com
Sun Aug 4 00:39:38 UTC 2013


On Saturday 03 August 2013 13:57:52 Payne Chu wrote:
> 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
> different....XD~
> 
> map $pid $public_root { default public; }     <-- this one relative path
> leak happened
> map $pid $public_root { default /usr/local/Cellar/nginx/1.4.1/public; } <-
> this one full path without leak..
> 

Please, try this patch: http://pp.nginx.com/vbart/patches/fix_memleak.txt
It fixes the leak.

  wbr, Valentin V. Bartenev

--
http://nginx.org/en/donation.html



More information about the nginx mailing list