Setting large proxy_buffer_size

Maxim Dounin mdounin at mdounin.ru
Fri Dec 7 16:18:55 UTC 2012


Hello!

On Thu, Dec 06, 2012 at 02:06:26PM -0500, spacerobot wrote:

> Ran into an issue that I needed to set a larger proxy_buffer_size (e.g. to
> 128k). It works after increasing.
> 
> However my question is: what's the disadvantages of setting a large buffer
> size? If there is no disadvantage, why the default is only 8k? Is there a
> certain value that I certainly shouldn't set it larger than that?

Obvious disadvantage is that it needs more memory if set to a 
bigger value.  It's set to pagesize by default as it's an amount 
of memory which may be effeciently allocated, and sufficient for 
most uses (which doesn't try to abuse HTTP headers to transfer 
data).

-- 
Maxim Dounin
http://nginx.com/support.html



More information about the nginx mailing list