From: Roberto Mello <rmello@cc.usu.edu>
To: Mike Diehl <jdiehl@sandia.gov>
Cc: pgsql-sql@postgresql.org
Subject: Re: Ran out of connections
Date: Wed, 4 Dec 2002 15:25:38 -0700
Message-ID: <20021204222538.GD30716@cc.usu.edu> (raw)
In-Reply-To: <20021204220457.94E2778E6@dominion.dyndns.org>
References: <20021204220457.94E2778E6@dominion.dyndns.org>
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 :] :\
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-sql@postgresql.org
Cc: rmello@cc.usu.edu, jdiehl@sandia.gov
Subject: Re: Ran out of connections
In-Reply-To: <20021204222538.GD30716@cc.usu.edu>
* 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