Welcome! Log In Create A New Profile

Advanced

why will nginx's map directive eat all ram?

August 02, 2013 08:30AM
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 will maintain the ram in low evel.

so we should avoid to use map directive ?

My Env: MACOSX 10.8.4, Nginx 1.4.1
SubjectAuthorPosted

why will nginx's map directive eat all ram?

Payne ChuAugust 02, 2013 08:30AM

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

Валентин БартеневAugust 02, 2013 11:06AM

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

Payne ChuAugust 02, 2013 10:08PM

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

Payne ChuAugust 03, 2013 04:42AM

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

Payne ChuAugust 03, 2013 05:57AM

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

Valentin V. BartenevAugust 03, 2013 06:10AM

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

Valentin V. BartenevAugust 03, 2013 06:16AM

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

Valentin V. BartenevAugust 03, 2013 08:40PM

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

Payne ChuAugust 04, 2013 11:17PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready