From: Guy Rouillier <guy.rouillier@gmail.com>
To: youssef.zrirak@yazaki-europe.com
To: 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: <em3bea6286-3c58-45a8-8db9-e61f3fc3868b@asus> (raw)
In-Reply-To: <15661-0c4d1f22bf318cb5@postgresql.org>
References: <15661-0c4d1f22bf318cb5@postgresql.org>
On 2/28/2019 3:42:19 AM, "PG Bug reporting form"
<noreply@postgresql.org> 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 server
>:Fatal: too many clients already )
>
>could you please support in this subject
>
>Many thanks
>
Check your postgresql.conf configuration file. Specifically, look at
the section headed "CONNECTIONS AND AUTHENTICATION". Default
max_connections = 100. You provide no information to go on regarding
your environment, other than your server being Windows Server 2012, so
we don't know what type of clients you are using. The default value is
typically enough; if you are exceeding that on a regular basis, chances
are your clients are failing to release their connections when finished.
You *could* just increase your max_connections value, but without
understanding your client environment, this is not a good general
solution. Each client connection consumes resources, so you don't want
to just blindly allow a large number of connections. Ideally, you'd
like your clients to connect just long enough to execute a business
transaction and then immediately disconnect; connection pools allow this
to be done efficiently.
--
Guy Rouillier
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: guy.rouillier@gmail.com, youssef.zrirak@yazaki-europe.com
Subject: Re: BUG #15661: Error connecting to the server
In-Reply-To: <em3bea6286-3c58-45a8-8db9-e61f3fc3868b@asus>
References: <15661-0c4d1f22bf318cb5@postgresql.org> <em3bea6286-3c58-45a8-8db9-e61f3fc3868b@asus>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox