Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1D6E29FC28C for ; Fri, 8 Jun 2007 19:16:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 43497-03 for ; Fri, 8 Jun 2007 19:16:55 -0300 (ADT) X-Greylist: delayed 00:50:44.320748 by SQLgrey-1.7.4 Received: from pillette.com (adsl-67-119-5-202.dsl.snfc21.pacbell.net [67.119.5.202]) by postgresql.org (Postfix) with ESMTP id B85839FC090 for ; Fri, 8 Jun 2007 19:16:54 -0300 (ADT) Received: from dhcp203.pillette.com (dhcp203.pillette.com [192.168.1.203]) by pillette.com (8.11.6/8.11.6) with ESMTP id l58LQ0W03311; Fri, 8 Jun 2007 14:26:02 -0700 Date: Fri, 8 Jun 2007 14:50:23 -0700 From: Andrew Lazarus X-Mailer: The Bat! (v3.99.3) Home X-Priority: 3 (Normal) Message-ID: <1666453432.20070608145023@attglobal.net> To: "Srinivas Kotapally" CC: pgsql-jdbc@postgresql.org Subject: Re: Intermittent Connection problems using JDBC In-Reply-To: <028c01c7a952$43c19140$0401a8c0@srinilaptop> References: <028c01c7a952$43c19140$0401a8c0@srinilaptop> MIME-Version: 1.0 Content-Type: text/html; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.352 tagged_above=0 required=5 tests=BAYES_50=0.001, FORGED_RCVD_HELO=0.135, HTML_MESSAGE=0.001, HTML_TITLE_EMPTY=0.214, MIME_HTML_ONLY=0.001 X-Spam-Level: X-Archive-Number: 200706/40 X-Sequence-Number: 17102

Hello Srinivas,


Is it possible that the pool is exceeding max_connections as specified o= n the server postgresql.conf file?


Thursday, June 7, 2007, 3:21:58 PM, you wrote:


>

Hi All

 

I am connecting to my DB using a JDBC connection and= sometimes I get this error.  This is not consistent and does not happ= en all the time.  I have tried to use various methods to troubleshoot = this to no avail.  Can this occur if the connection to the database is= delayed?  I have noticed some network issues off and on in our networ= k.  What is the default connection timeout in pgsql-jdbc and would tha= t result in causing this error in the log OR is this an error that is gener= ated when the request reaches the DB host machine?  Please advise... w= e getting tripped by this issue!

 

CDBConnectionPool.newConnection() : SQLException=3D = org.postgresql.util.PSQLException: Connection refused. Check that the hostn= ame and port are correct and that the postmaster is accepting TCP/IP connec= tions.

 

Regards


Srini





-- 

Best regards,

 Andrew           &nbs= p;                mailto:drlaz@attglobal.net