Re: LOG: could not fork new process for connection: Cannot allocate memory - Mailing list pgsql-general

From Ahsan Ali
Subject Re: LOG: could not fork new process for connection: Cannot allocate memory
Date
Msg-id CAGot2LWXVNuMVpA20fQH-hzbXDBQDeohHQbW=jxMwE2_zA+S+g@mail.gmail.com
Whole thread Raw
In response to Re: LOG: could not fork new process for connection: Cannot allocate memory  (John R Pierce <pierce@hogranch.com>)
Responses Re: LOG: could not fork new process for connection: Cannot allocate memory  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
yes it is older however we do apply security patches now a then. regarding max connection its the application design however it does not have that many active session. 

postgres=# select count(*) from pg_stat_activity;
 count 
-------
  1818

Please let me know if you like to see any other logs and stuff

Regards
Ali

On Thu, Aug 25, 2016 at 4:51 PM, John R Pierce <pierce@hogranch.com> wrote:
On 8/25/2016 3:54 PM, Ahsan Ali wrote:
Red Hat Enterprise Linux Server release 6.3 (Santiago)

that was released in June 2012, you're missing 4+ years of bug fixes, 6.8 is current.


max_connections = 3000

thats insanely high for most purposes unless you have several 100 CPU cores.

otherwise, hard to say whats failing, those log entries aren't giving much info.   How many connections are active (select count(*) from pg_stat_activity; ) when you get the error ?



-- 
john r pierce, recycling bits in santa cruz

pgsql-general by date:

Previous
From: Tatsuki Kadomoto
Date:
Subject: Re: incorrect checksum detected on "global/pg_filenode.map" when VACUUM FULL is executed
Next
From: Tom Lane
Date:
Subject: Re: Understanding Postgres Memory Usage