pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Abraham, Danny <danny_abraham@bmc.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: too many clients already
Date: Thu, 02 Apr 2020 11:51:55 -0400
Message-ID: <17877.1585842715@sss.pgh.pa.us> (raw)
In-Reply-To: <c7e50c9443eb4ae8a2eec661c1b000f9@phx-exmbprd-01.adprod.bmc.com>
References: <c7e50c9443eb4ae8a2eec661c1b000f9@phx-exmbprd-01.adprod.bmc.com>

"Abraham, Danny" <danny_abraham@bmc.com> writes:
> Running on a big and stressed AIX platform and receiving lots of "CDTFATAL:  sorry, too many clients already"
> and transient difficulty to log in.
> Happens on all PG versions (Tested 9.5,10.4,11.5)
> Big installation: max_connections is 1200,  shared_buffers is 2GB 
> But .. select count(*) from pg_stat_activity   is only 66.

I'd be suspicious that there are a lot of clients stuck in connection
startup (likely the authentication phase); those connections aren't going
to show in pg_stat_activity until they finish connecting.  The "ps"
suggestion Adrian gave you would not show them either, because they're
not going to say "idle".

Enabling log_connections and watching the postmaster log would help
prove or disprove that theory.

			regards, tom lane





view thread (12+ messages)  latest in thread

Message-ID: <17877.1585842715@sss.pgh.pa.us>
Permalink:  ../17877.1585842715@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17877.1585842715@sss.pgh.pa.us

 · 

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 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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, danny_abraham@bmc.com
  Subject: Re: too many clients already
  In-Reply-To: <17877.1585842715@sss.pgh.pa.us>
  References: <c7e50c9443eb4ae8a2eec661c1b000f9@phx-exmbprd-01.adprod.bmc.com> <17877.1585842715@sss.pgh.pa.us>

* 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