# Setting large proxy\_buffer\_size

**URL:** <https://www.ruby-forum.com/t/setting-large-proxy-buffer-size/225003>\
**Category:** NGINX\
**Created:** [December 6, 2012, 8:06pm UTC](https://www.ruby-forum.com/t/setting-large-proxy-buffer-size/225003 "2012-12-06T20:06:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [December 6, 2012, 8:06pm UTC](https://www.ruby-forum.com/t/setting-large-proxy-buffer-size/225003/1 "2012-12-06T20:06:55Z")

</div>

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?

Thanks!

Posted at Nginx Forum:

> **[Setting large proxy\_buffer\_size](https://forum.nginx.org/read.php?2,233654,233654#msg-233654)**
>
> 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...

---

<div class="post-metadata">

**Author:** ![spacerobot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@spacerobot](https://www.ruby-forum.com/u/spacerobot)\
**Post date:** [December 7, 2012, 5:19pm UTC](https://www.ruby-forum.com/t/setting-large-proxy-buffer-size/225003/2 "2012-12-07T17:19:36Z")

</div>

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 D.

> **[F5 NGINX: Built for cloud-native apps. Ready for AI traffic.](https://www.f5.com/products/nginx)**
>
> Deliver modern applications with NGINX. Explore high-performance load balancing, API gateways, and web server solutions trusted by top global enterprises.
