pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Abraham, Danny <danny_abraham@bmc.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: too many clients already
Date: Thu, 2 Apr 2020 08:20:38 -0700
Message-ID: <d405eec7-c700-f41d-1d9f-4e5d179187fd@aklaver.com> (raw)
In-Reply-To: <c7e50c9443eb4ae8a2eec661c1b000f9@phx-exmbprd-01.adprod.bmc.com>
References: <c7e50c9443eb4ae8a2eec661c1b000f9@phx-exmbprd-01.adprod.bmc.com>

On 4/2/20 8:06 AM, Abraham, Danny wrote:
> Hi,
> 
> Will appreciate a hint here.
> 
> 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.

On the chance pg_stat_activity is lying to you what does:

ps ax | grep post

show for backends?

For example:

ps ax | grep post
  1217 ?        Ss     0:00 /usr/lib/postfix/bin//master -w
  1233 ?        S      0:00 /usr/local/pgsql12/bin/postmaster -D 
/usr/local/pgsql12/data
  1253 ?        Ss     0:00 postgres: logger
  1277 ?        Ss     0:00 postgres: checkpointer
  1278 ?        Ss     0:00 postgres: background writer
  1279 ?        Ss     0:00 postgres: walwriter
  1280 ?        Ss     0:00 postgres: autovacuum launcher
  1281 ?        Ss     0:00 postgres: stats collector
  1282 ?        Ss     0:00 postgres: logical replication launcher 
*4693 ?        Ss     0:00 postgres: aklaver task_manager [local] idle
*4907 ?        Ss     0:00 postgres: aklaver production [local] idle

> 
> Thanks
> 
> Danny
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (12+ messages)  latest in thread

Message-ID: <d405eec7-c700-f41d-1d9f-4e5d179187fd@aklaver.com>
Permalink:  ../d405eec7-c700-f41d-1d9f-4e5d179187fd@aklaver.com/
Also on:    postgresql.org/message-id/d405eec7-c700-f41d-1d9f-4e5d179187fd@aklaver.com

 · 

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: adrian.klaver@aklaver.com, danny_abraham@bmc.com
  Subject: Re: too many clients already
  In-Reply-To: <d405eec7-c700-f41d-1d9f-4e5d179187fd@aklaver.com>
  References: <c7e50c9443eb4ae8a2eec661c1b000f9@phx-exmbprd-01.adprod.bmc.com> <d405eec7-c700-f41d-1d9f-4e5d179187fd@aklaver.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