Welcome! Log In Create A New Profile

Advanced

Re: Disable memory buffer for file uploads

March 22, 2011 11:44PM
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.
>
> 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@daoine.org
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Disable memory buffer for file uploads

akaris March 22, 2011 08:17PM

Re: Disable memory buffer for file uploads

Francis Daly March 22, 2011 11:40PM

Re: Disable memory buffer for file uploads

fjctlzy March 22, 2011 11:44PM

Re: Disable memory buffer for file uploads

Francis Daly March 23, 2011 06:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready