Re: Backends staying around

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "Raymond O'Donnell" <rod(at)iol(dot)ie>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Backends staying around
Date: 2001-12-04 13:00:54
Message-ID: 20011205000054.B28487@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Dec 04, 2001 at 12:15:33PM -0000, Raymond O'Donnell wrote:
> Hi all,
>
> How long are backends supposed to hang around after a query is
> executed? We're running into trouble because they're not going
> away - this evening there were the full default complement of 32
> sitting there, and the machine was refusing any more connections.
> I've increased -N to 64 and -B to 128 after reading the FAQ, but
> obvously I'd prefer if they quietly died after handling requests.

Well, the backends die when the client closes the connection. Perhaps you
should check on the number of open TCP connections to the backend and find
the process that is neglecting to close it's connection.

> We are running Postgres 7.0.2, accessed from an NT4 server via
> ADO 2.5 from IIS 4 (how's that for a mouthful of acronyms...?).

Maybe you have some form of persistant connections? At least in unix, a
socket is closed automatically when all processes owning the endpoint die
off or close it.

HTH,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org>
http://svana.org/kleptog/
> Terrorists can only take my life. Only my government can take my freedom.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message James Thornton 2001-12-04 13:29:23 Re: update returns 1, but no changes have been made
Previous Message Raymond O'Donnell 2001-12-04 12:15:33 Backends staying around