From: Gourish Singbal <gourish@gmail.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Help with connections
Date: Thu, 12 May 2005 20:55:35 +0530
Message-ID: <674d1f8a05051208252c67f6f6@mail.gmail.com> (raw)
Guys i need some help.
Initially the connections to the database were 3 as seen using
netstat -a -n | grep "ESTAB" | grep <ip>
and ps -ef | grep postgres
After some time the connections suddenly incresed to 53 using the
above commands.
if i do
/usr/local/pgsql/bin/psql -d <database> -c "select
c.relname,d.datname,transaction,pid,mode,granted from pg_locks
l,pg_class c,pg_database d where l.relation=c.oid and
l.database=d.oid";
i get only
relname | datname | transaction | pid | mode
| granted
--------------------+----------------+-------------+-------+-----------------+---------
pg_class | rpt_production | | 25903 | AccessShareLock | t
pg_locks | rpt_production | | 25903 | AccessShareLock | t
pg_class_oid_index | rpt_production | | 25903 | AccessShareLock | t
That means there were no tables accessed at this particular time. But
why is the connections to database showing 53 ?.
The Applicatoin is closing the connections. After about 30 -40 secs
the connections drop to 4 or 5 agian.
Please advice the max number of conenctions are 100 in the conf file
.. how about increasing to 200 ?.
--
Best,
Gourish Singbal
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: gourish@gmail.com
Subject: Re: Help with connections
In-Reply-To: <674d1f8a05051208252c67f6f6@mail.gmail.com>
References: <674d1f8a05051208252c67f6f6@mail.gmail.com>
* 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