Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jo2wQ-0000Br-Pd for pgsql-general@arkaria.postgresql.org; Wed, 24 Jun 2020 10:47:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jo2wP-0006v7-L7 for pgsql-general@arkaria.postgresql.org; Wed, 24 Jun 2020 10:47:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jo2wP-0006v0-DF for pgsql-general@lists.postgresql.org; Wed, 24 Jun 2020 10:47:41 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jo2wN-0006VB-3t for pgsql-general@lists.postgresql.org; Wed, 24 Jun 2020 10:47:40 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id E52323306; Wed, 24 Jun 2020 12:47:36 +0200 (CEST) Date: Wed, 24 Jun 2020 12:47:36 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Persistent Connections Message-ID: <20200624104736.GB417@hjp.at> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9zSXsLTf0vkW971A" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --9zSXsLTf0vkW971A Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-06-23 16:29:46 -0400, Bee.Lists wrote: > I have an issue with a server (v10) that=E2=80=99s seeing increasing > connections until it=E2=80=99s maxxed-out. =20 >=20 > max_connections for my 4-core server is set to 12. =20 The default is 100. What was your reason for reducing it to such a low value? > I=E2=80=99ve installed pg_stat_activity and pg_stat_statements. >=20 > I access this server through a web app, So that's probably a handful connections already. > and another client on two machines. Maybe two or more (depending on what the non-specified client does). > I also send queries through SSH on the LAN. And maybe some more connections.=20 I can see that this could easily reach 12 connections. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --9zSXsLTf0vkW971A Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl7zL0QACgkQ8g5IURL+ KF1+nw/+N91HzXYpIOv+dp75p58PVUwtGwqia2OjuG+qORSOL9b8THrWc0Mql3Sb 5m2Tv2FDskAXarie8pdJC58c2HtLyEeO87/1u/kLpOkvtZ8ABIqu07No5KSTSkQk nF2Pjn940zQPmrIf1eb4lZeFCxE/qGq2VwZ9caW87zSNWl//jtjoK+arcmoxJWPl G9N1uP2kCz6w0wB+RE/+dP+OkQ60alyEUrwPFnw/rE2WCJ5tmzIMAQyjhRzQLIbJ O6MtSwVNt0UlphO7lxnHGtZnNadtQXQ8kGd8n3byibtL9901SrWnKWUCMPy6Fkt4 a9pZKJtof1bHme1pJKkwGnvzYcU9UVDWb1Y1V2Ae0B7bmEeVEFvDgLqUg9Xesvti HC2ybAbWSS5CZVNCm0muVhjfG6klKj/mvthD8g+tOJ8Un/ByzZnmVcHTgHSNylMf oXn/UGslRbiz+2ZsaUjwnyCTRjDpjxyI+IuFuljtiBFeJNvd6jXBGBEVuJkx6p7o e3CxLs5G10zP+yW09F7zzegqnu/P9xtLMk+dnZoyU3BOP7sJ+ssi4apP1h+QH5j5 bNr7p7gsLa6PN4eGvIxNUJLj6sfRWgnI6w2B9/i/4+Rtn1DfIRufc8QbnqjHiYfw FYZuw1HlYFybwhy9M8pu5AmGYKNN3bWXtfP/LjqTKxuaCNj1Htw= =PoKi -----END PGP SIGNATURE----- --9zSXsLTf0vkW971A--