Disable memory buffer for file uploads
fjctlzy at gmail.com
Wed Mar 23 06:43:08 MSK 2011
I have a question, will write to the disk much more slower than using memory? So my question is :
when users upload large files, should I use large memory for client_body_buffer_size or little memory.
when users upload small files, should i use large memory for client_body_buffer_size or little memory. And in this situation, when he finishes uploading, will the content be remove when the memory for client_body_buffer_size is full, and so that new uploaded files could use the memory.
On Mar 23, 2011, at 11:39 AM, Francis Daly wrote:
> 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.
> 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,
> Francis Daly francis at daoine.org
> nginx mailing list
> nginx at nginx.org
More information about the nginx