Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qmHyU-006R7v-EL for pgsql-bugs@arkaria.postgresql.org; Fri, 29 Sep 2023 18:12:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qmHyT-003QPg-2W for pgsql-bugs@arkaria.postgresql.org; Fri, 29 Sep 2023 18:12:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qmHyS-003QNj-Bz for pgsql-bugs@lists.postgresql.org; Fri, 29 Sep 2023 18:12:24 +0000 Received: from mail-yb1-xb2b.google.com ([2607:f8b0:4864:20::b2b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qmHyP-007K6S-O1 for pgsql-bugs@lists.postgresql.org; Fri, 29 Sep 2023 18:12:23 +0000 Received: by mail-yb1-xb2b.google.com with SMTP id 3f1490d57ef6-d852b28ec3bso15556365276.2 for ; Fri, 29 Sep 2023 11:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joeconway.com; s=google; t=1696011141; x=1696615941; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:subject:from:references:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=wu6voXW325xYEW58OXvW6udDP1LZMmJWRNq3Oku0iRM=; b=dr8P4xEkAuYxwBd2xpfeWb9b6V8Z34r5tsI3oqqT1g1L5I0K6IuM7Zd1lfrAVt28w7 0c/FKQ4r8md1Vq+rgPz5QMi54T3E+f9nCWKSsm6oR65h8NC+cpmKlwO+ziITV+AAPNGb jPe15gjpVwCrjwYdfSpDzyMqBFyN+1TwAdcmp1jonuXBOlqpUPGouEJ3DxU6C1kfK/Wt bTlYzfqxugY46YRk22ME17xOHjNGzJ3QLH3NZIUNOEBo0TlBgn8Z06Ia4fBD8ocVFRsh av38sYifn630k33YqiohY1xXl0urTueHj9DaYzBRo3IUxCzmE0hqKEv+L86S8ELbAbJD 4e6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696011141; x=1696615941; h=content-transfer-encoding:in-reply-to:subject:from:references:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wu6voXW325xYEW58OXvW6udDP1LZMmJWRNq3Oku0iRM=; b=vp10McwgjjylaQmiiNQ5X7JQe6iwdSd3pEesBDtYtWK17niKV1iF6eIf+gYU9wtXSn w5KF62486rWRPUrWb8amXbRcBsn4ZWeRk0bpNqe+3Pz+p/+efhcXkJL7+8d3XC9HWWXP A8hL0yquJVJKx6tFErWEFsGiXcvlWGDO2Bhgw5xBUh7NRNa4e2tAPVDq4tryULF6JsLT laHpgjXeMZKETOxoH34ga7AWXKHvrU6SrZSVVF54UV9hrHGkmXmk/zfrrrpxaqDjnXBn T+joZenHGVg9A5TZZ2gAKEJHf12nvLCXJbuVX5kmnDV8FEqJAp+Yfq6DdbS3dqaGlW2u PDWg== X-Gm-Message-State: AOJu0YwiYfOhcAWPsBv0GvrDvoZkiY5vnhwb9/F1DfNRP0rm1+51kjoS jxS/0EY4pD3fI+MS4MTkAwG8+U7qIh368uzYXPk= X-Google-Smtp-Source: AGHT+IHYMlGgXL4hAwXf5nHoYHD4ta/gto1aJC0aURiG2MBWFK/CJn5V9KsVHGRW+t71QAME2cvmnw== X-Received: by 2002:a5b:8cd:0:b0:d86:e26f:79de with SMTP id w13-20020a5b08cd000000b00d86e26f79demr4325665ybq.51.1696011140840; Fri, 29 Sep 2023 11:12:20 -0700 (PDT) Received: from [192.168.4.41] ([172.56.73.0]) by smtp.gmail.com with ESMTPSA id v77-20020a252f50000000b00d89b8bf0147sm2488446ybv.15.2023.09.29.11.12.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Sep 2023 11:12:20 -0700 (PDT) Message-ID: Date: Fri, 29 Sep 2023 14:12:19 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US To: ravi.s.agrawal23@gmail.com, pgsql-bugs@lists.postgresql.org References: <18141-198c521115e07b7c@postgresql.org> From: Joe Conway Subject: Re: BUG #18141: sorry, too many clients error occurring very frequently In-Reply-To: <18141-198c521115e07b7c@postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/29/23 10:31, PG Bug reporting form wrote: > We have updated PostgresSQL from version 13.4 to 13.11 and observing 'sorry, > too many clients' error very frequently. > Connection count is shooting up on performing basic operations and crossing > the max_connections value. This has not been observed previously on Postgres > v13.4 > We need to understand if this issue is caused due to the change in version. > Is there any history of known incidents facing this issue with the specific > version of PostgreSQL. Question -- are you using pg_stat_statements? If so, please try disabling it and see if the issue goes away. Also was is your work_mem setting? Does raising it help? -- Joe Conway PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com