Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1930B4767BE for ; Wed, 4 Dec 2002 19:27:17 -0500 (EST) Received: from polaris.pinpointresearch.com (66-7-238-176.cust.telepacific.net [66.7.238.176]) by postgresql.org (Postfix) with ESMTP id 001D847693C for ; Wed, 4 Dec 2002 19:25:52 -0500 (EST) Received: from there (66-7-238-179.cust.telepacific.net [66.7.238.179]) by polaris.pinpointresearch.com (Postfix) with SMTP id B8C4A103C6; Wed, 4 Dec 2002 16:25:55 -0800 (PST) Content-Type: text/plain; charset="iso-8859-1" From: Steve Crawford Organization: Pinpoint Research To: Mike Diehl , "Roberto Mello" Subject: Re: Ran out of connections Date: Wed, 4 Dec 2002 16:25:55 -0800 X-Mailer: KMail [version 1.3.1] Cc: pgsql-sql@postgresql.org References: <20021204220457.94E2778E6@dominion.dyndns.org> <20021204222538.GD30716@cc.usu.edu> <20021204234919.CA46678E6@dominion.dyndns.org> In-Reply-To: <20021204234919.CA46678E6@dominion.dyndns.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20021205002555.B8C4A103C6@polaris.pinpointresearch.com> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/62 X-Sequence-Number: 10650 Doing anything unusual? Forking processes, opening multiple connections within a single CGI? Have you seen any evidence that a process that opens a connection is failing to complete normally? -Steve On Wednesday 04 December 2002 3:52 pm, Mike Diehl wrote: > On Wednesday 04 December 2002 03:25 pm, Roberto Mello wrote: > > On Wed, Dec 04, 2002 at 03:08:35PM -0700, Mike Diehl wrote: > > > 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. > > Nope. I'm using Perl and cgi. I've got some perl that runs via cron, and > some more that runs via apache. I'm not even using ModPerl. > > It did occur to me that since some of my scripts communicate with other > devices, that I may have some IO blocking, or zombies, but the ps output > didn't indicate that. I can't see that many scripts running. Usually, I > see one postgres process for each script/cgi that is running. Not in this > case.