Disable memory buffer for file uploads

Francis Daly francis at daoine.org
Wed Mar 23 06:39:04 MSK 2011


On Tue, Mar 22, 2011 at 08:17:28PM -0400, akaris wrote:

Hi there,

> My problem is this: when I upload a large (2GB, for exemple) file on my
> Web site, Nginx buffers the whole file in memory,

That shouldn't happen unless your client_body_buffer_size is really
really big.

http://wiki.nginx.org/HttpCoreModule#client_body_buffer_size

nginx will only buffer in memory up to the value of
client_body_buffer_size; beyond that, it will buffer to disk.

How do you determine that nginx buffers the whole file in memory?

All the best,

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list