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 1jo9c4-0004fu-6A for pgsql-general@arkaria.postgresql.org; Wed, 24 Jun 2020 17:55:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jo9c3-0001Iy-45 for pgsql-general@arkaria.postgresql.org; Wed, 24 Jun 2020 17:55:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jo9c2-0001Ir-SV for pgsql-general@lists.postgresql.org; Wed, 24 Jun 2020 17:55:06 +0000 Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jo9bz-0000lt-T0 for pgsql-general@lists.postgresql.org; Wed, 24 Jun 2020 17:55:06 +0000 Received: by mail-qk1-x736.google.com with SMTP id e13so2667074qkg.5 for ; Wed, 24 Jun 2020 10:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=gnrXVvNj04PdX87uLslfr7v0XAoH4pZxPmrJSc/7Qx0=; b=VOFn+vXOB7xR/SZYeyWIzSE6rr/U13btq3QRlWabQk/bvmEs+3RsUnsnVJKtQDZB8x PXAJx9iMQWr9AtiorXT24rmy8Vw+0in0BXkBSbbvkQKRO0iXEGM6+74G2BNrRCRlS517 IyXkiFHYQ+RzIwiTG8MacVEajKrjD+h4gS48vrUGCJZzjMRuKZywxAqDJQ3+tlvEWwc5 OYAnP3XWT/Wad4JNnirLQdoSeZ5CXqofBgXOdHaTnkBFLj+m7lwxngNv0rKmOSrstuiV rPFpKYzHIl/BD2vduJfs++b86ihbd+F84iV3zlaacs3jZUCIc3XfsIiix4Y/gi4+Cnh0 hNzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=gnrXVvNj04PdX87uLslfr7v0XAoH4pZxPmrJSc/7Qx0=; b=pZFV2VoE7jvs9jyJZogd9gXt2V08Y1mov5w9a5ke+aV/ZJGsOgI3CZTDU4gax4549B uVs0YGBPZseGI5QMYITwErQ+soh87YuDi01oWc45KYkXKR6MliZSZXiLs+qUQXNPc7+Z 0NL+xOOAnTW1ph/spGVgjgpNBNw6tKLYat1gB5EvrddP9bayfQqLoinViheVyk8xauy0 2mBDswBe2dml2p3Bjes83yfAz8VbKv0Hs8Qb4lOTe7zsF/B21sgK1v7r/a630EdkJ/Cc pEnA5ZPLh8AKadf8zSKIiomYkDFMYE38LJ2cDStUcW0EaFcy7ygCdG36aeHWND+H9K2q y4jA== X-Gm-Message-State: AOAM531mzocardUjODtbRSs+8inTGIzaGbxFyEvWF7fVT4VZgMLQIT7Y Wfky/Ty1vWf/eoXCmB9MIK98RLsd8Bo= X-Google-Smtp-Source: ABdhPJzYOyVsx9JXh12OXK0Olv3P+FBdRR35/6ut5JSrpCmIc6tMNiwE/99v0eAdiLY2GA2CcieKLg== X-Received: by 2002:a37:64cd:: with SMTP id y196mr1976573qkb.26.1593021302472; Wed, 24 Jun 2020 10:55:02 -0700 (PDT) Received: from [192.168.1.4] (pints.com. [206.248.184.17]) by smtp.gmail.com with ESMTPSA id q32sm4496682qte.31.2020.06.24.10.55.00 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Wed, 24 Jun 2020 10:55:01 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Persistent Connections From: "Bee.Lists" In-Reply-To: <20200624104736.GB417@hjp.at> Date: Wed, 24 Jun 2020 13:55:00 -0400 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20200624104736.GB417@hjp.at> To: "Peter J. Holzer" X-Mailer: Apple Mail (2.3124) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Jun 24, 2020, at 6:47 AM, Peter J. Holzer wrote: >=20 > The default is 100. What was your reason for reducing it to such a low > value? =E2=80=9CPostgreSQL 9 High Availability=E2=80=9D recommended core count = * 3. =20 >=20 >> I=E2=80=99ve installed pg_stat_activity and pg_stat_statements. >>=20 >> I access this server through a web app, >=20 > So that's probably a handful connections already. Looks like 5 queries. =20 As a comparison I have 37 queries asking for last login of a single = user. No errors.=20 (I increased the max_connections yesterday) >> and another client on two machines. >=20 > Maybe two or more (depending on what the non-specified client does). I=E2=80=99m running crons on two machines, Postico, web apps on both = machines. >> I also send queries through SSH on the LAN. >=20 > And maybe some more connections.=20 Yep. > I can see that this could easily reach 12 connections. Yep. But I can=E2=80=99t see all this going over 12 when connections = close. Hence the confusion and issue. =20 At least it=E2=80=99s a good thing I=E2=80=99m finding it=E2=80=99s not = the gem alone. =20 Cheers, Bee