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 1nori7-0005bt-D5 for pgsql-performance@arkaria.postgresql.org; Wed, 11 May 2022 19:09:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nori5-00031i-AP for pgsql-performance@arkaria.postgresql.org; Wed, 11 May 2022 19:09:21 +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 1nori4-00031Y-R9 for pgsql-performance@lists.postgresql.org; Wed, 11 May 2022 19:09:20 +0000 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1norhz-000537-3N for pgsql-performance@postgresql.org; Wed, 11 May 2022 19:09:19 +0000 Received: by mail-qt1-x82c.google.com with SMTP id k2so2755146qtp.1 for ; Wed, 11 May 2022 12:09:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=YKb+oh5sPNq7OQuLkecQdvekiwpGiz7/A7na7L6I1Q8=; b=FqmZyWDKTYsN7jsS8yKozyS222Zf0YNJB3JnR0Ber8AO64AB7uL36GZREKx5iYtjMq +Gdemw1wqLeuMa4l9jPVg3YzTH9BHXhYMskH/N/f7+9UART0DG7jFGd6BqMtH/fDTiru WPG/Bp5wnh4zWxoS7h4tn4Md9YQb7k/JgkvgS36tuMbHD4wVFskqYncNOKLu1KUs7Ldg SIKQLGD7u4X9ANvMEDvvThzfY+68DF/sZDwmxHD+DXeb2zMGf55hNZ0m6JL0pHLXBk3c Ik4HdIOfuriTf/zOlZPkGbeynEmnmLodT15U4mDulOSDGonWQdWRQRLKGmObcfFEgwhq gjxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YKb+oh5sPNq7OQuLkecQdvekiwpGiz7/A7na7L6I1Q8=; b=XYhXZq84RBuQU8C1izdhb8sfFIAUoiJRjGrIK9m8l4ZMbDi1r2+u17MI9PZWtkK6tt PHnOhUroypSWezRRXeejYN0MpySXSNc8/YbBhCmTKv2zveX0dx29G+YM+olOw/ejXxw8 fjHNLQU7TxXu+0sK0AtHB5oTkNLaSl+qbzn+wjk+2pqVZuU05HwHSx4x9n5ZKvtO7m7g uZY2VRuKAZVKpoGv+ygCiY0NTU/lJ6DhKA+lYY1fDwvaBwqawV+9u9/9pJYq89Y0aFFp GIQEEC0qEUHX74JHT8w2rHuR/wgTA2uRzzR39umt2wPkLoCLUwLEOOtWPwDRbLGb7i8c NB2w== X-Gm-Message-State: AOAM533F0T0uixg6xZRql93zQqI+PvDRmWH+x3fEkFoUVpDAKn1DKZPV xuK+hxj8MHdAJD7z3ZiFzcOFcQ== X-Google-Smtp-Source: ABdhPJzWtX+PiIfqKpgoQij6DrJMyhIfkFqXtGpHoXnQMk2bkTPwo6JdOA2eGhcV5Rc1qQPHRqgBTA== X-Received: by 2002:ac8:5705:0:b0:2f3:eafd:826a with SMTP id 5-20020ac85705000000b002f3eafd826amr7406511qtw.193.1652296153693; Wed, 11 May 2022 12:09:13 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id o16-20020a05620a22d000b0069fc13ce1e7sm1622636qki.24.2022.05.11.12.09.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 May 2022 12:09:13 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 2964A800910; Wed, 11 May 2022 14:09:12 -0500 (CDT) Date: Wed, 11 May 2022 14:09:12 -0500 From: Justin Pryzby To: Sudhir Guna Cc: pgsql-performance@postgresql.org Subject: Re: DB connection issue suggestions Message-ID: <20220511190911.GO19626@telsasoft.com> References: <20220510181540.GC19626@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, May 11, 2022 at 09:52:10AM +0800, Sudhir Guna wrote: > Hi Justin, > > Thank you for reviewing. > > I have tried to run the below query and could see only less than 5 > connections active when I get this error. The total rows I see is only 10 > including idle and active sessions for this output. That doesn't sound right. Are you sure you're connecting to the correct instance ? Are there really only 5 postgres processes on the server, and fewer than 5 connections to its network port or socket ? You didn't provide any other info like what OS this is. -- Justin