From: Ross J. Reedstrom <reedstrm@rice.edu>
To: Mahesh Guleria <mahesh@himline.com>
Cc: Subra Radhakrishnan <subra100@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Sorry, too many clients already
Date: Mon, 26 Mar 2001 11:35:25 -0600
Message-ID: <20010326113525.A3544@rice.edu> (raw)
In-Reply-To: <NEBBKAGAHJHBKBDHNAIOIEAPCCAA.mahesh@himline.com>
References: <20010323110054.11198.qmail@web2104.mail.yahoo.com>
<NEBBKAGAHJHBKBDHNAIOIEAPCCAA.mahesh@himline.com>
On Mon, Mar 26, 2001 at 12:00:03PM +0530, Mahesh Guleria wrote:
> Use these commands :
>
> ps -ef|grep post
> kill -9 [process id]
No, no, a thousand times, no! Haven't you seen this appended to
messages on the lists?
-----
TIP 4: Don't 'kill -9' the postmaster
-----
If you kill -9 the postmaster, various shared memory structures never
get cleaned up correctly, so you risk damaging the database.
What Subra is experiencing is the maximum simultaneous client limit,
which defaults to 32 7.X series (it was 64 in 6.X). You can affect this
with the -N parameter to postmaster, when it starts up. If you increase
it, you may need to increase -B (shared buffers), as well. Check the
pg_ctl man page. Each installation uses a slightly different way to
startup the postmaster, so you'll have to track that down yourself.
Ross
>
> Mahesh Guleria
>
> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Subra
> Radhakrishnan
> Sent: Friday, March 23, 2001 4:31 PM
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] Sorry, too many clients already
>
>
> Hi All,
>
> We are getting an error every now and then in
> PostgreSQL saying 'Sorry, too many
> clients already'. We have recently installed the
> database version 7.0.3. Calls to
> database are made from our application written in
> Java, JSP. Can anyone help
> me with this?
>
> Thanks,
>
> Subra
> _________________________________________________________________________
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
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: reedstrm@rice.edu, mahesh@himline.com, subra100@yahoo.com
Subject: Re: Sorry, too many clients already
In-Reply-To: <20010326113525.A3544@rice.edu>
References: <20010323110054.11198.qmail@web2104.mail.yahoo.com> <NEBBKAGAHJHBKBDHNAIOIEAPCCAA.mahesh@himline.com> <20010326113525.A3544@rice.edu>
* 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