Lots of buffering - is this normal?
is at rambler-co.ru
Tue Apr 22 09:08:04 MSD 2008
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;
fastcgi_buffers 32 8k;
> On 4/21/08, Igor Sysoev <is at rambler-co.ru> wrote:
> > 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: 184.108.40.206, 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 ?
> > --
> > Igor Sysoev
> > http://sysoev.ru/en/
More information about the nginx