SvennD
a client request body is buffered to a temporary file
November 13, 2016

a client request body is buffered to a temporary file

Posted on November 13, 2016  •  1 minutes  • 164 words  •  Suggest Changes

A little cute harmless nginx [WARNING] yea, one of those. It means an uploaded file was larger then the allowed buffer (in memory) set by **client_body_buffer_size **which by default is 16kb (on x64 bit). So for any upload of image, you can expect this to be allot larger. (images can easely be 3-6mb a piece)  I decided to increase the value to 1mb, meaning most images will still fire this warning, but smaller images (web-ready) won’t. I also changed client_max_body_size which sets a maximum upload size (an http error 413 would be returned when attempted a larger upload)

client_body_buffer_size 1M;
client_max_body_size 10M;

So this warning is just a notice, that a write has been written to file system, which is a bit slower then to memory. (a lot slower) When you see allot of these popping up, it might be a good idea to increase this value, to not over use your hard drive / ssd, but at the cost of reserved memory. (RAM)

Support

If you enjoyed this website, consider buying me a Dr. Pepper

Buy me a Dr PepperBuy me a Dr Pepper