Re: Max connections reached without max connections reached

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Max connections reached without max connections reached
Дата
Msg-id 67613.1637709271@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Max connections reached without max connections reached  (James Sewell <james.sewell@jirotech.com>)
Ответы Re: Max connections reached without max connections reached
Список pgsql-general
James Sewell <james.sewell@jirotech.com> writes:
> If I measure from `ps  -ef | grep postgres` and look at the connections
> then I can see that with the startup connections I am hitting this limit.
> So client processes which are listed to the OS as "startup" ARE counted
> towards the 597 connections, but are NOT reported in pg_stat_activity

So I guess the question becomes why are they spending so much time in
the startup state.  That should take mere milliseconds, unless the
clients are being slow to handle the authentication exchange?

I'm also wondering a bit about whether they're being blocked on a lock,
eg. due to something taking an exclusive lock on pg_authid or pg_database.
pg_locks might be interesting to check.

            regards, tom lane



В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Max connections reached without max connections reached
Следующее
От: James Sewell
Дата:
Сообщение: Re: Max connections reached without max connections reached