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
Subject Author Posted

why will nginx's map directive eat all ram?

Payne Chu August 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 Chu August 02, 2013 10:08PM

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

Payne Chu August 03, 2013 04:42AM

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

Payne Chu August 03, 2013 05:57AM

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

Valentin V. Bartenev August 03, 2013 06:10AM

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

Valentin V. Bartenev August 03, 2013 06:16AM

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

Valentin V. Bartenev August 03, 2013 08:40PM

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

Payne Chu August 04, 2013 11:17PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 260
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready