Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 83B789FBEE1 for ; Fri, 8 Jun 2007 18:46:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 93984-02 for ; Fri, 8 Jun 2007 18:46:22 -0300 (ADT) X-Greylist: delayed 23:18:07.62485 by SQLgrey-1.7.5 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by postgresql.org (Postfix) with ESMTP id 3BA129FC2F2 for ; Fri, 8 Jun 2007 18:46:26 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c36so592075ana for ; Fri, 08 Jun 2007 14:46:25 -0700 (PDT) Received: by 10.100.144.11 with SMTP id r11mr2044637and.1181339185134; Fri, 08 Jun 2007 14:46:25 -0700 (PDT) Received: from srinilaptop ( [70.20.198.26]) by mx.google.com with ESMTP id c14sm4766068ana.2007.06.08.14.46.23 (version=SSLv3 cipher=RC4-MD5); Fri, 08 Jun 2007 14:46:24 -0700 (PDT) Reply-To: From: "Srinivas Kotapally" To: "'Andrew Lazarus'" Cc: References: <028c01c7a952$43c19140$0401a8c0@srinilaptop> <1666453432.20070608145023@attglobal.net> Subject: Re: Intermittent Connection problems using JDBC Date: Fri, 8 Jun 2007 17:46:21 -0400 Organization: Coriendo LLC Message-ID: <037101c7aa16$749a4c20$0401a8c0@srinilaptop> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0372_01C7A9F4.ED88AC20" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AceqE6Cq3xKTLeF8Q7GGau15okPXowAAr0uQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 In-Reply-To: <1666453432.20070608145023@attglobal.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/39 X-Sequence-Number: 17101 This is a multi-part message in MIME format. ------=_NextPart_000_0372_01C7A9F4.ED88AC20 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit No, the error in that case is different. It is "Too many connections..." _____ From: Andrew Lazarus [mailto:drlaz@attglobal.net] Sent: Friday, June 08, 2007 5:50 PM To: Srinivas Kotapally Cc: pgsql-jdbc@postgresql.org Subject: Re: [JDBC] Intermittent Connection problems using JDBC Hello Srinivas, Is it possible that the pool is exceeding max_connections as specified on 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 happen 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 network. What is the default connection timeout in pgsql-jdbc and would that result in causing this error in the log OR is this an error that is generated when the request reaches the DB host machine? Please advise... we getting tripped by this issue! CDBConnectionPool.newConnection() : SQLException= org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. Regards Srini -- Best regards, Andrew mailto:drlaz@attglobal.net ------=_NextPart_000_0372_01C7A9F4.ED88AC20 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
No, the = error in that=20 case is different.  It is "Too many = connections..."


From: Andrew Lazarus=20 [mailto:drlaz@attglobal.net]
Sent: Friday, June 08, 2007 5:50 = PM
To: Srinivas Kotapally
Cc:=20 pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Intermittent = Connection=20 problems using JDBC

Hello Srinivas,


Is it possible that the pool is exceeding max_connections as = specified on the=20 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=20 sometimes I get this error.  This is not consistent and does = not=20 happen all the time.  I have tried to use various methods to=20 troubleshoot this to no avail.  Can this occur if the = connection to=20 the database is delayed?  I have noticed some network issues = off and=20 on in our network.  What is the default connection timeout in = pgsql-jdbc and would that result in causing this error in the log = OR is=20 this an error that is generated when the request reaches the DB = host=20 machine?  Please advise... we getting tripped by this=20 issue!

 

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

 

Regards


Srini





-- 

Best regards,

 Andrew           =  =20                mailto:drlaz@attglobal.net

------=_NextPart_000_0372_01C7A9F4.ED88AC20--