pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Intermittent Connection problems using JDBC
3+ messages / 2 participants
[nested] [flat]

* Intermittent Connection problems using JDBC
@ 2007-06-07 22:21 Srinivas Kotapally <ksrinivas@coriendo.com>
  2007-06-08 21:50 ` Re: Intermittent Connection problems using JDBC Andrew Lazarus <drlaz@attglobal.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Srinivas Kotapally @ 2007-06-07 22:21 UTC (permalink / raw)
  To: pgsql-jdbc

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

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Intermittent Connection problems using JDBC
  2007-06-07 22:21 Intermittent Connection problems using JDBC Srinivas Kotapally <ksrinivas@coriendo.com>
@ 2007-06-08 21:50 ` Andrew Lazarus <drlaz@attglobal.net>
  2007-06-08 21:46   ` Re: Intermittent Connection problems using JDBC Srinivas Kotapally <ksrinivas@coriendo.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Andrew Lazarus @ 2007-06-08 21:50 UTC (permalink / raw)
  To: Srinivas Kotapally <ksrinivas@coriendo.com>; +Cc: pgsql-jdbc

<!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>&gt;</span></p>
</td>
<td width=734 style="background-color: #ffffff;">
<p><span class=rvts7>Hi All</span></p>
<p><span class=rvts8>&nbsp;</span></p>
<p><span class=rvts7>I am connecting to my DB using a JDBC connection and sometimes I get this error. &nbsp;This is not consistent and does not happen all the time. &nbsp;I have tried to use various methods to troubleshoot this to no avail. &nbsp;Can this occur if the connection to the database is delayed? &nbsp;I have noticed some network issues off and on in our network. &nbsp;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? &nbsp;Please advise... we getting tripped by this issue!</span></p>
<p><span class=rvts8>&nbsp;</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>&nbsp;</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>--&nbsp;</span></p>
<p><span class=rvts9>Best regards,</span></p>
<p><span class=rvts9>&nbsp;Andrew &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><a class=rvts10 href="mailto:drlaz@attglobal.net">mailto:drlaz@attglobal.net</a></p>

</body></html>




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Intermittent Connection problems using JDBC
  2007-06-07 22:21 Intermittent Connection problems using JDBC Srinivas Kotapally <ksrinivas@coriendo.com>
  2007-06-08 21:50 ` Re: Intermittent Connection problems using JDBC Andrew Lazarus <drlaz@attglobal.net>
@ 2007-06-08 21:46   ` Srinivas Kotapally <ksrinivas@coriendo.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Srinivas Kotapally @ 2007-06-08 21:46 UTC (permalink / raw)
  To: 'Andrew Lazarus' <drlaz@attglobal.net>; +Cc: pgsql-jdbc

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

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-06-08 21:50 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-06-07 22:21 Intermittent Connection problems using JDBC Srinivas Kotapally <ksrinivas@coriendo.com>
2007-06-08 21:50 ` Andrew Lazarus <drlaz@attglobal.net>
2007-06-08 21:46   ` Srinivas Kotapally <ksrinivas@coriendo.com>

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