pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Bryan Buecking <buecking@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: CPU bound at 99%
Date: Tue, 22 Apr 2008 08:41:09 -0700
Message-ID: <20080422084109.18e4282e@commandprompt.com> (raw)
In-Reply-To: <20080422153045.GB5961@starling-software.com>
References: <20080422153045.GB5961@starling-software.com>

On Wed, 23 Apr 2008 00:31:01 +0900
Bryan Buecking <buecking@gmail.com> wrote:

> at any given time there is about 5-6 postgres in startup 
> (ps auxwww | grep postgres | grep startup | wc -l)
> 
> about 2300 connections in idle 
> (ps auxwww | grep postgres | idle)
> 
> and loads of "FATAL: sorry, too many clients already" being logged.
> 
> The server that connects to the db is an apache server using
> persistent connections. MaxClients is 2048 thus the high number of
> connections needed. Application was written in PHP using the Pear DB
> class.

Sounds like your pooler isn't reusing connections properly.

Sincerely,

Joshua D. Drake


-- 
The PostgreSQL Company since 1997: http://www.commandprompt.com/ 
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate





view thread (14+ messages)  latest in thread

Message-ID: <20080422084109.18e4282e@commandprompt.com>
Permalink:  ../20080422084109.18e4282e@commandprompt.com/
Also on:    postgresql.org/message-id/20080422084109.18e4282e@commandprompt.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jd@commandprompt.com, buecking@gmail.com
  Subject: Re: CPU bound at 99%
  In-Reply-To: <20080422084109.18e4282e@commandprompt.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