Re: Ran out of connections

From: Roberto Mello <rmello(at)cc(dot)usu(dot)edu>
To: Mike Diehl <jdiehl(at)sandia(dot)gov>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Ran out of connections
Date: 2002-12-04 22:25:38
Message-ID: 20021204222538.GD30716@cc.usu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Dec 04, 2002 at 03:08:35PM -0700, Mike Diehl wrote:
> Hi all.
>
> Twice this week, I've come to work to find my Postgres server out of
> connections... effectively freezing my web server.
>
> Today, before I rebooted the entire system, I did a ps -auxw and kept the
> file to study. I didn't find too many clients running. But I did find a
> whole LOT of postgres processes running, idle. BTW, one of the postgres
> processes was doing a vacuum analyze. I'm running 7.2.
>
> Can anyone tell me how to fix this? The out put of the ps command can be
> seen at http://dominion.dyndns.org/~mdiehl/ps.txt

Are you using PHP by chance? I've seen this behavior under Apache+PHP
before. My "fix" (workaround rather) was to disable persistent
connections.

-Roberto

--
+----| Roberto Mello - http://www.brasileiro.net/ |------+
+ Computer Science Graduate Student, Utah State University +
+ USU Free Software & GNU/Linux Club - http://fslc.usu.edu/ +
:) :D :O :( :[ ;) 8) B) :> |I :P =) :S :B :] :\

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Steve Crawford 2002-12-04 22:29:25 Re: Ran out of connections
Previous Message Mike Diehl 2002-12-04 22:08:35 Ran out of connections