From: Andrew Hill <list@fornax.net>
To: pgsql-admin@postgresql.org
Subject: Freeing Connections
Date: Thu, 18 Oct 2001 10:42:53 +0930
Message-ID: <3BCE2C95.6020002@fornax.net> (raw)
Hi,
Sorry if this has been covered before, but I haven't been able to find
any information about it.
I'm running PostgreSQL 7.0.3 with the following command:
postmaster -i -D/var/pgsql/data -N 32 -B 64
Normally, 32 connections is heaps for what I need. However, I often get
connections that seem to be doing nothing. For example:
[bash]
\_ postmaster -i -D/var/pgsql/data -N 32 -B 64
\_ [postmaster]
\_ /var/pgsql/bin/postgres 202.174.32.67 postgres anb idle
\_ /var/pgsql/bin/postgres 202.174.32.68 postgres anb idle
\_ [postmaster]
\_ /var/pgsql/bin/postgres 203.34.190.137 postgres bmf idle
\_ [postmaster]
\_ [postmaster]
\_ [postmaster]
\_ [postmaster]
\_ /var/pgsql/bin/postgres 202.174.32.8 radius bmf idle
\_ /var/pgsql/bin/postgres 203.34.190.137 postgres bmf idle
\_ /var/pgsql/bin/postgres 202.174.32.66 postgres bmf idle
\_ /var/pgsql/bin/postgres 203.34.190.137 postgres bmf idle
\_ /var/pgsql/bin/postgres 203.34.190.137 postgres bmf idle
\_ /var/pgsql/bin/postgres localhost postgres bmf idle
\_ /var/pgsql/bin/postgres 202.174.32.66 postgres bmf idle
\_ logger -p local5.notice
The "idle" connections are from boxes that are using PHP's pg_pconnect
to connect to the database, so that's no problem. However, it the
[postmaster] entries that worry me - over time, these just increase in
number until I start getting connections refused.
Can anyone please help me with what these are, and how to stop them
accumulating?
TIA!
--
Andrew Hill
"RAID - Don't believe the hype." -- 2001-09-22
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: list@fornax.net
Subject: Re: Freeing Connections
In-Reply-To: <3BCE2C95.6020002@fornax.net>
References: <3BCE2C95.6020002@fornax.net>
* 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