tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Layman <>
Subject RE: Broken pipe error
Date Fri, 23 Feb 2001 12:43:21 GMT

	This seems really strange.  What it sounds like to me it the JDBC
connects one and gets a "Connection reset by peer" error.  Then the second
(anre presumably more) connections are successful.  If this is the case I
would check that your drivers and database match up (in other words, not
using an old dirver with a new database or vice versa - this may not be
applicable to the Oracle thin drivers, I don't know) and also check that you
are using the correct protocol.  It really shounds like a problem for you,
your DBA, and Oracle, though.


-----Original Message-----
From: Xavier Escandell []
Sent: Friday, February 23, 2001 6:34 AM
Subject: Re: Broken pipe error

Thanks for the anwser, but:
- The servlet is not garbage collected. When I check it in the mornig, after
night of inactivity, the servlet is active.
- Yesterday, I included a connection pooling class. Thus, the servlet
the connection.But I get a "connection reset by peer" error, when trying
access. The second access works fine.

Any idea?


Randy Layman wrote:

>         The answer is no - Tomcat knows nothing about your socket
> connections and therefore can't close them.  A couple of things come to
> - first the Oracle drivers might be releasing the connection, check their
> documentation about this.  Also, what is the behavior if your servlet is
> garbage collected?  Could it be that your servlet is being garbage
> and therefore you are somehow half-way closing the connection?
>         Randy
> -----Original Message-----
> From: Xavier Escandell []
> Sent: Thursday, February 22, 2001 8:01 AM
> To:
> Subject: Broken pipe error
> Hi:
> I get "broken pipe error" when trying to re-execute a servlet after
> several hours of innactivity. Then I must re-start Tomcat to get all
> running again.
> The servlet is connected to a database using oracle thin driver, these
> connection is still active.
> So my question is:
> It is possible that the socket between Tomcat and database is being
> closed by Tomcat?
> If the answer is yes, how can I configure these timeout.
> Regards.
> Xavier Escandell.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, email:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, email:

To unsubscribe, e-mail:
For additional commands, email:

View raw message