Re: CPU bound at 99% - Mailing list pgsql-performance

From Joshua D. Drake
Subject Re: CPU bound at 99%
Date
Msg-id [email protected]
Whole thread Raw
In response to CPU bound at 99%  (Bryan Buecking <[email protected]>)
Responses Re: CPU bound at 99%
List pgsql-performance
On Wed, 23 Apr 2008 00:31:01 +0900
Bryan Buecking <[email protected]> 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



pgsql-performance by date:

Previous
From: Bryan Buecking
Date:
Subject: CPU bound at 99%
Next
From: Erik Jones
Date:
Subject: Re: CPU bound at 99%