1. 程式人生 > >a client request body is buffered to a temporary

a client request body is buffered to a temporary

log 影響 增加 需要 request cli 6.2 pos con

error: 2018/09/27 11:29:25 [warn] 4677#0: *9932666337 a client request body is buffered to a temporary file /data/apps/openresty//nginx/client_body_temp/0000565910, client: 100.116.251.28, server: driver.lenth.com.cn, request: "POST /api/v1/driver/log HTTP/1.1", host: "driver.lenth.com.cn"

這個需要設置增加client_body_buffer_size的大小。緩沖區設置小了,Nginx會把內容寫到硬盤,這樣會影響性能。於是在nginx.conf中增加如下fastcgi buffers參數設置:

client_body_buffer_size 128k;

這個值默認是16k(64位平臺)

a client request body is buffered to a temporary