Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzb6V-0002cM-3f for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Mar 2019 05:53:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gzb6S-0003Mi-L4 for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Mar 2019 05:53:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzb6S-0003Mb-Cn for pgsql-bugs@lists.postgresql.org; Fri, 01 Mar 2019 05:53:00 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzb6C-0002BE-FC for pgsql-bugs@lists.postgresql.org; Fri, 01 Mar 2019 05:52:59 +0000 Received: by mail-qk1-x735.google.com with SMTP id r21so13597282qkl.11 for ; Thu, 28 Feb 2019 21:52:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:reply-to :user-agent:mime-version; bh=fIDLQAkbpf7yhiUBtLdLLIj4qAUcNR6S6cLmmfyf2nk=; b=j8tw+Mi7rjyJaKZJjMDvTthMZf7a7F556CYDCFQGMoR0+97sN7G3S1Xm1dxvKQtmEE DGH24Dhy1oFvrpJ86zNrHVeutxjUqzd/nHV3IFEmxz1vBSBc+Ze1cIxEp2w+h68kCgXz GFMdHqweBz8lFDTXlRcN42XAJWCGGz7E9WXYkvOonjONqTZjcVcqhft2dHu080MOlKib ODD1+l+GzGEU6ESQawsUNLgo+kr0U7N+surUIEk9F58BqswYYTqTTyiGc6GJ0GdlIeD6 2eOA/pWyVHBKInmN9FgQ0w561C+IkVl73tkZjCkrCzN0f5z+jmVyPtogzfPhb9IsKXWv PWMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:reply-to:user-agent:mime-version; bh=fIDLQAkbpf7yhiUBtLdLLIj4qAUcNR6S6cLmmfyf2nk=; b=O1vO67c16UmZ8J0c2ODUup2VlaEK44fXmfI4yuPw/a7U/b0hXJOy3G/4SA8Fjf6R+Z xhASrYbwww6Fmo/8ic9qZ4Ct8YDGKiQHofYD+6G6/4j2j5HsjDVjJ2x4EyVKQoG8gD4m 2UDuwF0vhf2hqbyWZ8l/nn9yZfO7RGDtI2rbUBfwUw7glDn6b+2cNFTgl6YNDLGKpi8k 3Yw1qULT84rQQCQTnuzySZ396f9NeloOX3y/9icNK+9jnVrvKv0IYsBap7ZCJwWenTdj wm05C2prV38mEhlPGIXhmZv1XmM3By31zCTRLE+uTJsGpLwpI/L8a5J/Us99M3ctMHi4 NvIg== X-Gm-Message-State: APjAAAXmW/tMlsO5kGMxJV93KPctTYWiWOGHlMXJzezJlv6na+J8LW9y AlxqF26zW+iLuVzmul7UQvo= X-Google-Smtp-Source: APXvYqyHsu0KTs2XvZZt/xfNS+Oj9DMzOM+hCJxxNbVRZpKVmQnGAsOL6y47M8JB2nYIbSbBK84y6w== X-Received: by 2002:a37:634b:: with SMTP id x72mr2580240qkb.151.1551419562562; Thu, 28 Feb 2019 21:52:42 -0800 (PST) Received: from [192.168.2.50] (pool-71-246-251-133.washdc.fios.verizon.net. [71.246.251.133]) by smtp.gmail.com with ESMTPSA id d55sm14241816qtb.93.2019.02.28.21.52.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Feb 2019 21:52:42 -0800 (PST) From: "Guy Rouillier" To: youssef.zrirak@yazaki-europe.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15661: Error connecting to the server Date: Fri, 01 Mar 2019 05:52:38 +0000 Message-Id: In-Reply-To: <15661-0c4d1f22bf318cb5@postgresql.org> References: <15661-0c4d1f22bf318cb5@postgresql.org> Reply-To: "Guy Rouillier" User-Agent: eM_Client/7.2.34711.0 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------=_MB7DA023FB-AE25-4D95-860D-1C5C19AF6A0D" X-Antivirus: Avast (VPS 190228-6, 02/28/2019), Outbound message X-Antivirus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --------=_MB7DA023FB-AE25-4D95-860D-1C5C19AF6A0D Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2/28/2019 3:42:19 AM, "PG Bug reporting form"=20 wrote: >The following bug has been logged on the website: > >Bug reference: 15661 >Logged by: ZRIRAK YOUSSEF >Email address: youssef.zrirak@yazaki-europe.com >PostgreSQL version: 9.4.0 >Operating system: windows server 2012 R2 >Description: > >Hello >we had faced many type this type of message ( Error connecting to the serv= er >:Fatal: too many clients already ) > >could you please support in this subject > >Many thanks > Check your postgresql.conf configuration file. Specifically, look at=20 the section headed "CONNECTIONS AND AUTHENTICATION". Default=20 max_connections =3D 100. You provide no information to go on regarding=20 your environment, other than your server being Windows Server 2012, so=20 we don't know what type of clients you are using. The default value is=20 typically enough; if you are exceeding that on a regular basis, chances=20 are your clients are failing to release their connections when finished.=20 You *could* just increase your max_connections value, but without=20 understanding your client environment, this is not a good general=20 solution. Each client connection consumes resources, so you don't want=20 to just blindly allow a large number of connections. Ideally, you'd=20 like your clients to connect just long enough to execute a business=20 transaction and then immediately disconnect; connection pools allow this=20 to be done efficiently. -- Guy Rouillier > --------=_MB7DA023FB-AE25-4D95-860D-1C5C19AF6A0D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On 2/28/2019 3:42:19 AM, "PG Bug reporting form" <norep= ly@postgresql.org> wrote:

The following bug has been logged on the website:=
=C2=A0
Bug reference: 15661
Logged by: ZRIRAK YOUSSEF
Email address: youssef.zrirak@yazaki-europe.= com
PostgreSQL version: 9.4.0
Operating system: windows server 2012 R2
Description:
=C2=A0
Hello
we had faced many type this type of message ( Err= or connecting to the server
:Fatal: too many clients already )
=C2=A0
could you please support in this subject
=C2=A0
Many thanks
=C2=A0
Check your postgresql.conf configuration file. =C2=A0Specifically, loo= k at the section headed "CONNECTIONS AND AUTHENTICATION". =C2=A0Default max= _connections =3D 100. =C2=A0You provide no information to go on regarding y= our environment, other than your server being Windows Server 2012, so we do= n't know what type of clients you are using. =C2=A0The default value is typ= ically enough; if you are exceeding that on a regular basis, chances are yo= ur clients are failing to release their connections when finished. =C2=A0Yo= u *could* just increase your max_connections value, but without understandi= ng your client environment, this is not a good general solution. =C2=A0Each = client connection consumes resources, so you don't want to just blindly al= low a large number of connections. =C2=A0Ideally, you'd like your clients t= o connect just long enough to execute a business transaction and then immed= iately disconnect; connection pools allow this to be done efficiently.

--
Guy Rouillier=



--------=_MB7DA023FB-AE25-4D95-860D-1C5C19AF6A0D--