PostgreSQL(v9.6.5) not releasing old/inactive IDLE connections

From: Md Arqum Farooqui <Md(dot)Farooqui(at)india(dot)nec(dot)com>
To: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: PostgreSQL(v9.6.5) not releasing old/inactive IDLE connections
Date: 2021-12-08 06:45:38
Message-ID: OS3PR01MB581659FF3F8020F174751B4BA76F9@OS3PR01MB5816.jpnprd01.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

I'm facing "Too many clients already" error frequently with my PostgreSQL (v9.6.5) container (i.e. being used along with CKAN application i.e. A open source data management system<https://ckan.org/> ), I have observed that PostgreSQL is not releasing IDLE connections from their end. I have set "max_connetions = 100" in postgresql.

Please provide your suggestions on below queries:

1. Why PostgreSQL is not releasing IDLE connection? (If we leave the setup then postgres keep IDLE connection even for 1 month, after that I have to restart the Postgres)
2. Is there any parameter or any solution by which i can remove unused old IDLE connection regularly?

Thanks and Regards,
Arqum farooqui

________________________________
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NEC Corporation India Private Limited or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NEC Corporation India Private Limited or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ron 2021-12-08 07:23:32 Re: PostgreSQL(v9.6.5) not releasing old/inactive IDLE connections
Previous Message Scott Ribe 2021-12-07 15:06:37 Re: Pg_dump