From 66d4e85c5d8c5fa2874c6b5c73cf936e51e8537c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 29 Oct 2013 01:28:06 +0000 Subject: lower client_body_buffer_size to 8K (from 114K) 8K is the default for nginx, too. This prevents Ruby/malloc from getting too fragmented with large buffers and being unable to release memory back to the OS. While we're at it, update the documentation to reflect we use this parameter to control read(2) sizes, too. --- Documentation/yahns_config.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Documentation') diff --git a/Documentation/yahns_config.txt b/Documentation/yahns_config.txt index db24cad..83a330e 100644 --- a/Documentation/yahns_config.txt +++ b/Documentation/yahns_config.txt @@ -181,9 +181,10 @@ Ruby it is running under. This controls the maximum size of a request body before it is buffered to the filesystem (instead of memory). This has no effect - if input_buffering is false. + if input_buffering is false. This also governs the size of an + individual read(2) system call when reading a request body. - Default: 114688 bytes (112 kilobytes) + Default: 8192 bytes (8 kilobytes) * client_header_buffer_size INTEGER -- cgit v1.2.3-24-ge0c7