nginx buffer
1.错误日志:warn:an upstream response is buffered to a temporary file
解决办法:增加fastcgi_buffers 8 4K; fastcgi_buffer_size 4K;
2. a client request body is buffered to a temporary file
解决办法:增加client_max_body_size 2050m; client_body_buffer_size 1024k;
Nginx 的 buffer 机制:
对于来自 FastCGI Server 的 Response,Nginx 将其缓冲到内存中,然后依次发送到客户端浏览器。缓冲区的大小由 fastcgi_buffers 和 fastcgi_buffer_size 两个值控制。