Received: from ece.rice.edu (ece.rice.edu [128.42.4.34]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9J3FcP20088 for ; Thu, 18 Oct 2001 23:15:38 -0400 (EDT) (envelope-from reedstrm@rice.edu) Received: from localhost (localhost [127.0.0.1]) by ece.rice.edu (Postfix) with ESMTP id 9BD8668A60 for ; Thu, 18 Oct 2001 22:15:32 -0500 (CDT) Received: from wallace.ece.rice.edu (wallace.ece.rice.edu [128.42.12.154]) by ece.rice.edu (Postfix) with ESMTP id E1F7B68A5B for ; Thu, 18 Oct 2001 22:15:31 -0500 (CDT) Received: from reedstrm by wallace.ece.rice.edu with local (Exim 3.22 #1 (Debian)) id 15uQ8B-00045o-00 for ; Thu, 18 Oct 2001 22:15:31 -0500 Date: Thu, 18 Oct 2001 22:15:31 -0500 From: "Ross J. Reedstrom" To: pgsql-admin@postgresql.org Subject: Re: Freeing Connections Message-ID: <20011018221531.A15435@rice.edu> Mail-Followup-To: "Ross J. Reedstrom" , pgsql-admin@postgresql.org References: <3BCE2C95.6020002@fornax.net> <24728.1003427733@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24728.1003427733@sss.pgh.pa.us> User-Agent: Mutt/1.3.18i X-Virus-Scanned: by AMaViS snapshot-20010714 X-Archive-Number: 200110/191 X-Sequence-Number: 2435 On Thu, Oct 18, 2001 at 01:55:33PM -0400, Tom Lane wrote: > Andrew Hill writes: > > Normally, 32 connections is heaps for what I need. However, I often get > > connections that seem to be doing nothing. For example: > > > [bash] > > \_ postmaster -i -D/var/pgsql/data -N 32 -B 64 > > \_ [postmaster] > > \_ /var/pgsql/bin/postgres 202.174.32.67 postgres anb idle > > \_ /var/pgsql/bin/postgres 202.174.32.68 postgres anb idle > > \_ [postmaster] > > \_ /var/pgsql/bin/postgres 203.34.190.137 postgres bmf idle > > \_ [postmaster] > > \_ [postmaster] > > \_ [postmaster] > > \_ [postmaster] > > \_ /var/pgsql/bin/postgres 202.174.32.8 radius bmf idle > > Curious. Can you attach to some of the unidentified processes with > a debugger, and get a stack traceback from 'em? Offhand I can't > think of a reason for 7.0 to have any subprocesses that haven't > changed their PS display. It would help to know what they are doing. Andrew doesn't mention his platform, but if it's linux, those could just be swapped out processes: since the execution state gets swapped, the kernel only has minimal info about the process, including the original name. I'm guessing that his PHP setup is configured for persistent connections with MAX_CON >32 and isn't reusing connections properly. ISTR some vesion of PHP with exactly that bug. Should be in the mailing list archives. Ross