pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Erik Jones <erik@myemma.com>
To: Adrian Moisey <adrian@careerjunction.co.za>
Cc: pgsql-performance@postgresql.org
Subject: Re: connections slowing everything down?
Date: Mon, 21 Apr 2008 09:04:28 -0500
Message-ID: <C14C8588-A291-47EF-87EC-AD7FECA0DF8D@myemma.com> (raw)
In-Reply-To: <480C6367.3000508@careerjunction.co.za>
References: <480C6367.3000508@careerjunction.co.za>


On Apr 21, 2008, at 4:50 AM, Adrian Moisey wrote:

> Hi
>
> # ps -ef | grep idle | wc -l
> 87
> # ps -ef | grep SELECT | wc -l
> 5
>
>
> I have 2 web servers which connect to PGPool which connects to our  
> postgres db.  I have noticed that idle connections seem to take up  
> CPU and RAM (according to top).  Could this in any way cause things  
> to slow down?

Dependant on how much memory you have in your system, yes.  You can  
fix the constant use of memory by idle connections by adjusting the  
child_life_time setting in your pgpool.conf file.  The default if 5  
minutes which a bit long.  Try dropping that down to 20 or 30 seconds.

Erik Jones

DBA | Emma®
erik@myemma.com
800.595.4401 or 615.292.5888
615.292.0777 (fax)

Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com






view thread (5+ messages)  latest in thread

Message-ID: <C14C8588-A291-47EF-87EC-AD7FECA0DF8D@myemma.com>
Permalink:  ../C14C8588-A291-47EF-87EC-AD7FECA0DF8D@myemma.com/
Also on:    postgresql.org/message-id/C14C8588-A291-47EF-87EC-AD7FECA0DF8D@myemma.com

 · 

reply

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-performance@postgresql.org
  Cc: erik@myemma.com, adrian@careerjunction.co.za
  Subject: Re: connections slowing everything down?
  In-Reply-To: <C14C8588-A291-47EF-87EC-AD7FECA0DF8D@myemma.com>
  References: <480C6367.3000508@careerjunction.co.za> <C14C8588-A291-47EF-87EC-AD7FECA0DF8D@myemma.com>

* 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