Re: Strange connection limit problem

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Ict Security <ict(dot)security(dot)job(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Strange connection limit problem
Date: 2019-06-07 13:24:13
Message-ID: 95e40c9e072e56605f5a909ce27960ed6990d64a.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ict Security wrote:
> i have two identical Postgresql 9.6.1 and i need, to test an
> application, to reach connection above 1024.
>
> I setup 2400 as max_connections

Ugh. Don't. Use a connection pool.

> I raised file-max kernel limit to 65535
> I increased shared_buffers
> I also increased the value in semaphores in both
> And i added this in limits.conf:
> * - nofile 999999
>
> But - and it is really strange - in machine nr. 1 i can start
> thousands of connections while in machine nr. 2 after 1024 connections
> Postgres does not accept anything else.

What is the error message in the log?

What do you see in /proc/12345/limits and /proc/12345/cgroup
(assuming that your postmaster PID is 12345)?

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Giuseppe Sacco 2019-06-07 13:28:20 Re: Strange connection limit problem
Previous Message Lu, Dan 2019-06-07 12:45:36 RE: Postgres 10.7 Systemd Startup Issue