Re: postmaster processes - Mailing list pgsql-general

From Doug McNaught
Subject Re: postmaster processes
Date
Msg-id m3iso8ts20.fsf@varsoon.wireboard.com
Whole thread Raw
In response to postmaster processes  (Andy Harrison <ah11@mlz.us>)
Responses Re: postmaster processes  (Andy Harrison <ah11@mlz.us>)
List pgsql-general
Andy Harrison <ah11@mlz.us> writes:

> Could anyone explain about the max_connections in postgres?
>
> We ran into the connection limit on one of our production servers.
> One reason is that we have more apps that use postgres running on it
> (RT3 and Webcollab were added not long ago).  Webcollab, for
> instance, seems to keep 7 postmaster processes all to itself.  Is
> this normal?  Does postgres work similarly to how apache handles
> spawning spare servers?

No, it doesn't.  If a PG backend is hanging around, it means an
application is keeping it open.  Most likely the app has a connection
pooling library that hangs onto connections rather than incur the
overhead of creating new ones for every request.

> I notice also on my test server, that 7 postmaster processes for
> webcollab are running, even though I'm the only one who has used it,
> and not all that heavily, and they haven't been touched for two
> days.

See above.  The app is in control--see if it has settings to control
the connection pool.

-Doug

pgsql-general by date:

Previous
From: "Andrew L. Gould"
Date:
Subject: FYI: Avoiding write conflict errors in MS Access clients
Next
From: Diogo Biazus
Date:
Subject: Re: French translation