Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEd1P-0004ZY-5p for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Dec 2016 14:16:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cEd1M-0005mJ-Vg for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Dec 2016 14:16:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cEd1K-0005lp-UB for pgsql-bugs@postgresql.org; Wed, 07 Dec 2016 14:16:31 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEd1H-0000RD-NF for pgsql-bugs@postgresql.org; Wed, 07 Dec 2016 14:16:29 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 16B0C5F7A4; Wed, 7 Dec 2016 09:15:26 -0500 (EST) Date: Wed, 7 Dec 2016 09:15:26 -0500 From: Stephen Frost To: akshay.ballarpure@tcs.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14453: Growing file descriptors on IDLE connections Message-ID: <20161207141525.GW23417@tamriel.snowman.net> References: <20161207110618.31169.97238@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jIdBwf7/i7YThJrI" Content-Disposition: inline In-Reply-To: <20161207110618.31169.97238@wrigleys.postgresql.org> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 09:13:05 up 151 days, 15:37, 30 users, load average: 0.00, 0.04, 0.05 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -4.9 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --jIdBwf7/i7YThJrI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Greetings, * akshay.ballarpure@tcs.com (akshay.ballarpure@tcs.com) wrote: > The following bug has been logged on the website: THis is not a bug. > Is there any way to clean up idle connections which are consuming a large > number of file descriptors ? Does it have any impact on psql server > performance ? Having lots of idle connections around can impact performance in some instances. PostrgeSQL intentionally caches the file descriptors of open files to avoid the overhead of opening them again but that generally isn't a performance issue. I would suggest you look into a connection pooler (eg: pgbouncer) to avoid having lots of idle connections to the database. Thanks! Stephen --jIdBwf7/i7YThJrI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYSBl9AAoJEO1sijiDR2RVLYkQAK1mhXGgZUwQMUL4lWh+D1OP zAT4yEvtjTyZ1CBdQCLi8eAmN4PCbja8vKAjFVY04WlChl7un4uglryqIrl07LFV zHHCDGP77HsSE2Q/PgU0KUex+JfRVLXjcWOSbzj8F9VVTQOcF8QEIQlQpAZ9aMLW e9y8wvAr0iHLujKkr/uJwCNH6ZOqCtdEOeCaCuLzi4QkJt226RF0Bk9g+dUrZgXT 2GVzL/X/8Y00hpojRMBLrRFmD06KZHVLzIvEK0YFP3O/N6GMv9R7CTpj9UlbDOK0 tsyEwMIy2LERCiMc9GGWrs4gAdNZrbFVnt6JgHslcKp9YpIFymnB5djrUO7swYVU ddIZK2YFqeM13FuC7M4IwH0Klf1rssRl0bpn4aaTtyoA5lwkuoBl0Flt1Vydm114 gfC+o1sGkzSg3OEFvKHwUlmOFg0uxjMa6JlES12j5RhUM2y64c1J2zEYh37r2oKN fgxlN47hEYA0ofW+ghB5Bp0bFhTxZf5mS+mv8NME3Yfoskq48ZX2HWHxCHCJ6seb +nTbgNUcpP3RdbeAdv2Y9o69p3eYz2skNNPw5l336GKcrPxUdWxcTUdmQ4lGRCqf YuLdMYgDoDgStuabXlY9tr/p7egGo3XZUy6NE8z1cxHa+FYNArQlU/4gKgnT+WBp 6NSwb33WRpN4MEWH9Gsr =Ry7B -----END PGP SIGNATURE----- --jIdBwf7/i7YThJrI--