lighty should buffer responses (after it grows above certain size) on disk
Hi, nginx <http://nginx.net/> provides the ability to specify how much of the request/response is buffered in memory and request/responses larger than that are buffered on filesystems
This would be useful for large POST requests (file-uploads) from slow clients or slow backends becayse lighty would manage the client handling and the backend would slurp the large request from the relatively quick connection between it and lighty
When you configure nginx, it defaults to providing the following parameters
nginx http client request body temporary files: $prefix/client_body_temp
nginx http proxy temporary files: $prefix/proxy_temp
This replaces buffering entire response in memory which might lead to
huge memory footprint and possibly to memory exhaustion.
use tempfiles of fixed size so disk space is freed as each file sent
update callers of http_chunk_append_mem() and http_chunk_append_buffer()
to handle failures when writing to tempfile.
"memory fragmentation leads to high memory usage after peaks"
"Random crashing on FreeBSD 6.1"
"lighty should buffer responses (after it grows above certain size) on disk"
"Memory usage increases when proxy+ssl+large file"
"lighttpd+fastcgi memory problem"
"Excessive Memory usage with streamed files from PHP"
Updated by gstrauss about 3 years ago
- Description updated (diff)
- Status changed from New to Patch Pending
- Assignee deleted (
- Target version set to 1.4.40
New: asynchronous, bidirectional streaming support for request and response
Submitted pull request: https://github.com/lighttpd/lighttpd1.4/pull/66
included in the pull request is buffering large responses to temporary files instead of keeping it all in memory
Also available in: Atom