Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 174B047674F for ; Wed, 4 Dec 2002 17:27:45 -0500 (EST) Received: from brasileiro.net (slxwy.dorms.usu.edu [129.123.227.56]) by postgresql.org (Postfix) with ESMTP id 23EE44763EA for ; Wed, 4 Dec 2002 17:25:24 -0500 (EST) Received: from roberto by brasileiro.net with local (Exim 3.35 #1 (Debian)) id 18Jhxa-0008Ev-00; Wed, 04 Dec 2002 15:25:38 -0700 Date: Wed, 4 Dec 2002 15:25:38 -0700 From: Roberto Mello To: Mike Diehl Cc: pgsql-sql@postgresql.org Subject: Re: Ran out of connections Message-ID: <20021204222538.GD30716@cc.usu.edu> References: <20021204220457.94E2778E6@dominion.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20021204220457.94E2778E6@dominion.dyndns.org> User-Agent: Mutt/1.4i X-message-flag: Please consider using an e-mail program other than Outlook. It's insecure. X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/57 X-Sequence-Number: 10645 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 :] :\