Lots of buffering - is this normal?

Should I be worried that it buffers even on smaller requests?

2008/04/21 09:16:33 [warn] 16705#0: *1111856 an upstream response is
buffered to a temporary file /var/lib/nginx/fastcgi/4/00/0000000004
while reading upstream, client: 1.2.70.157, server: domain.com,
request: “GET /foo.php HTTP/1.0”, upstream:
“fastcgi://127.0.0.1:11011”, host: “domain.com”, referrer:
http://domain.com/foo.php

On Mon, Apr 21, 2008 at 09:18:26AM -0700, mike wrote:

Should I be worried that it buffers even on smaller requests?

2008/04/21 09:16:33 [warn] 16705#0: *1111856 an upstream response is
buffered to a temporary file /var/lib/nginx/fastcgi/4/00/0000000004
while reading upstream, client: 1.2.70.157, server: domain.com,
request: “GET /foo.php HTTP/1.0”, upstream:
“fastcgi://127.0.0.1:11011”, host: “domain.com”, referrer:
http://domain.com/foo.php

Yes. What are your fastcgi_buffer_size and fastcgi_buffers settings ?

The defaults. I don’t have them defined in my config.

Could I improve this?

On Mon, Apr 21, 2008 at 01:23:34PM -0700, mike wrote:

The defaults. I don’t have them defined in my config.

Could I improve this?

The default values are:

fastcgi_buffer_size 4k; # 8k on 64-bit
fastcgi_buffers 8 4k; # 8 8K on 64-bit

So, depending on platform your /foo.php response is bigger than 36K or
72K.

You may increase number of buffers:
fastcgi_buffers 32 4k;

or

fastcgi_buffers 32 8k;

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs