Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 0D9999FB5DD for ; Mon, 30 Jul 2007 19:20:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 28698-03 for ; Mon, 30 Jul 2007 19:20:04 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.186]) by postgresql.org (Postfix) with ESMTP id 362559FB513 for ; Mon, 30 Jul 2007 19:20:09 -0300 (ADT) Received: by rv-out-0910.google.com with SMTP id f1so376947rvb for ; Mon, 30 Jul 2007 15:20:07 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CaeNlB7NeBH2V418vRfFYl2z9HERZCHq93gam37/QHmXX2cRRhwKmLMoXtqPa+A7sLMP+4KStwxftt9tVYX0hXpWNVQ5WO0ZrsqAAhBL0Uzx7Vriz8XDYIMmO/0iTQ+uFaRiILcsnxyBPhRo1WGUd/Ug4X4VD/5vTCNVF3iVpEs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=L4pCodGRsC9N5hg3eYDhwecz+ZJ1KqOKXvo9D2YnBSQc/fu3XMfxMClk5G2m0UhEbgS++eJfyd8zCINayC3EJjlXJPmRU2IoSwM4n1ph62kuCpUvQ+SUgpiIot7F090KbYmLWQUP9IT6yD2RE0uTldnDGSeJj/lDL5ONa1zshIM= Received: by 10.141.99.4 with SMTP id b4mr1476713rvm.1185834007615; Mon, 30 Jul 2007 15:20:07 -0700 (PDT) Received: by 10.141.162.12 with HTTP; Mon, 30 Jul 2007 15:20:04 -0700 (PDT) Message-ID: Date: Mon, 30 Jul 2007 17:20:07 -0500 From: "Scott Marlowe" To: "Jon Horsman" Subject: Re: Connection Limit Cc: "sql pgsql" In-Reply-To: <4f4c2a010707301429s76fb80abnf7c4a50c304647b7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4f4c2a010707301429s76fb80abnf7c4a50c304647b7@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/189 X-Sequence-Number: 28924 On 7/30/07, Jon Horsman wrote: > Hello, > > I have a server running postgres 7.4.13 and am starting to see errors > "FATAL: connection limit exceeded for non-superusers". > > I'm not sure which one of my applications are hogging all of the > connections, is there a way debug this somehow? try netstat -an|grep 5432 assuming you're running pgsql on port 5432. The nice thing about this trick is that since postgresql uses /tmp/.s.PGSQL.5432 for local connections, you'll see those too.