From: Andrew Lazarus <drlaz@attglobal.net>
To: Srinivas Kotapally <ksrinivas@coriendo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Intermittent Connection problems using JDBC
Date: Fri, 8 Jun 2007 14:50:23 -0700
Message-ID: <1666453432.20070608145023@attglobal.net> (raw)
In-Reply-To: <028c01c7a952$43c19140$0401a8c0@srinilaptop>
References: <028c01c7a952$43c19140$0401a8c0@srinilaptop>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title></title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
margin: 5px 5px 5px 5px;
background-color: #ffffff;
}
/* ========== Text Styles ========== */
hr { color: #000000}
body, table /* Normal text */
{
font-size: 9pt;
font-family: 'Courier New';
font-style: normal;
font-weight: normal;
color: #000000;
text-decoration: none;
}
span.rvts1 /* Heading */
{
font-size: 10pt;
font-family: 'Arial';
font-weight: bold;
color: #0000ff;
}
span.rvts2 /* Subheading */
{
font-size: 10pt;
font-family: 'Arial';
font-weight: bold;
color: #000080;
}
span.rvts3 /* Keywords */
{
font-size: 10pt;
font-family: 'Arial';
font-style: italic;
color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
font-size: 10pt;
font-family: 'Arial';
color: #008000;
text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
font-size: 10pt;
font-family: 'Arial';
color: #008000;
text-decoration: underline;
}
span.rvts6
{
font-family: 'tahoma';
font-weight: bold;
color: #ffffff;
background-color: #0000ff;
}
span.rvts7
{
font-size: 7pt;
font-family: 'arial';
}
span.rvts8
{
font-family: 'tahoma';
}
span.rvts9
{
font-size: 7pt;
font-family: 'arial';
font-style: italic;
color: #c0c0c0;
}
a.rvts10, span.rvts10
{
font-size: 7pt;
font-family: 'arial';
color: #0000ff;
text-decoration: underline;
}
/* ========== Para Styles ========== */
p,ul,ol /* Paragraph Style */
{
text-align: left;
text-indent: 0px;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
text-align: center;
}
--></style>
</head>
<body>
<p>Hello Srinivas,</p>
<p><br></p>
<p>Is it possible that the pool is exceeding max_connections as specified on the server postgresql.conf file?</p>
<p><br></p>
<p>Thursday, June 7, 2007, 3:21:58 PM, you wrote:</p>
<p><br></p>
<div><table border=0 cellpadding=1 cellspacing=2>
<tr valign=top>
<td width=12 style="background-color: #0000ff;">
<p><span class=rvts6>></span></p>
</td>
<td width=734 style="background-color: #ffffff;">
<p><span class=rvts7>Hi All</span></p>
<p><span class=rvts8> </span></p>
<p><span class=rvts7>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!</span></p>
<p><span class=rvts8> </span></p>
<p><span class=rvts7>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.</span></p>
<p><span class=rvts8> </span></p>
<p><span class=rvts7>Regards</span></p>
<p><br></p>
<p><span class=rvts7>Srini</span></p>
</td>
</tr>
</table>
</div>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><span class=rvts9>-- </span></p>
<p><span class=rvts9>Best regards,</span></p>
<p><span class=rvts9> Andrew </span><a class=rvts10 href="mailto:drlaz@attglobal.net">mailto:drlaz@attglobal.net</a></p>
</body></html>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: drlaz@attglobal.net, ksrinivas@coriendo.com
Subject: Re: Intermittent Connection problems using JDBC
In-Reply-To: <1666453432.20070608145023@attglobal.net>
References: <028c01c7a952$43c19140$0401a8c0@srinilaptop> <1666453432.20070608145023@attglobal.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox