pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ben Borger <spd@platinumsystems.net>
To: pgsql-interfaces@postgresql.org
Subject: Apache child processes making multiple persistent database connections via Apache::DBI
Date: Fri, 31 Jan 2003 18:47:20 -0600
Message-ID: <b1f5hd$e0d$1@news.hub.org> (raw)

Hello,

Is it normal for Apache child threads to be opening more than one persistent
database connection to Postgres?  DBI 1.19, Apache::DBI 0.88

In Apache's configuration I have the maximum threads limited to 12, and
Postgres is set to allow a maximum of 32 connections.  No other apps or
users.  Periodically I receive an error that there are too many connections
to the database already and the connect attempt is refused.  Does this infer
a programming problem or Apache/Postgresql configuration problem, or is it
normal, in which case what is the recommended ratio of threads to database
connections?

Thanks!







view thread (2+ messages)  latest in thread

Message-ID: <b1f5hd$e0d$1@news.hub.org>
Permalink:  ../b1f5hd$e0d$1@news.hub.org/
Also on:    postgresql.org/message-id/b1f5hd$e0d$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: spd@platinumsystems.net
  Subject: Re: Apache child processes making multiple persistent database connections via Apache::DBI
  In-Reply-To: <b1f5hd$e0d$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox