Re: FW: max_connections and shared_buffers - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: FW: max_connections and shared_buffers
Date
Msg-id dcc563d10709022347j19305a58q9c9a2dc987768e5@mail.gmail.com
Whole thread Raw
In response to FW: max_connections and shared_buffers  ("Anoo Sivadasan Pillai" <aspillai@in.rm.com>)
List pgsql-admin
On 9/3/07, Anoo Sivadasan Pillai <aspillai@in.rm.com> wrote:
> Hi Scott,
>
> Sorry for the long mail and Thank you for the quick response,
> My problem is that our server shuts down unexpectedly, the settings are
> max_connections=1024,shared_buffers = 32MB for the machine. The
> following is the log snippet
> 2007-08-15 15:44:10 LOG:  could not receive data from client: No
> connection could be made because the target machine actively refused it.
> 2007-08-15 15:44:10 LOG:  unexpected EOF on client connection
> 2007-08-15 15:44:17 LOG:  received fast shutdown request
> 2007-08-15 15:44:17 LOG:  aborting any active transactions
> 2007-08-15 15:44:17 FATAL:  terminating connection due to administrator
> command
> 2007-08-15 15:44:17 FATAL:  the database system is shutting down
> 2007-08-15 15:44:17 LOG:  shutting down
>
> Any clues?

Sounds like you're being hit by the Out of Memory (oom) killer in your
kernel maybe?  how many connections do you have when this happens?

I think you might need to look at connection pooling.  1024
connections is a LOT of connections.  How much memory does your server
have, btw, and what version of pgsql and what os are you running this
on?

pgsql-admin by date:

Previous
From: "Anoo Sivadasan Pillai"
Date:
Subject: FW: max_connections and shared_buffers
Next
From: "Anoo Sivadasan Pillai"
Date:
Subject: Re: FW: max_connections and shared_buffers