On Fri, Sep 30, 2011 at 10:56:41PM +0800, li zJay wrote:
Because the client bandwidth is usually slow, in this case, tons of upstream
content will be buffer in memory before sent out to client, and then the
swap will be used and the server is going down soon.
The limit on memory usage for proxy buffering is set with
proxy_buffers directive, 8 * pagesize by default. Nobody stops
you from setting it even lower if you are memory-constrained.
The “proxy_buffering off;” is needed when you want response to be
immediately passed to clients once it arrives. It’s critical for
streaming and similar workloads where you can’t afford delays.
But it’s not a switch to limit resource consumption. Instead, it
actually implies less effective resource usage: processing of
requests without buffering takes more CPU time and may cause
suboptimal network utilization.
On Thu, Sep 29, 2011 at 7:31 AM, mojiz [email protected] wrote:
nginx mailing list