Re: connections slowing everything down?

From: Erik Jones <erik(at)myemma(dot)com>
To: Adrian Moisey <adrian(at)careerjunction(dot)co(dot)za>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: connections slowing everything down?
Date: 2008-04-21 14:04:28
Message-ID: C14C8588-A291-47EF-87EC-AD7FECA0DF8D@myemma.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


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(at)myemma(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Adrian Moisey 2008-04-21 14:15:42 Re: connections slowing everything down?
Previous Message Viktor Rosenfeld 2008-04-21 11:07:22 Performance of the Materialize operator in a query plan