pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Markus Wollny <Markus.Wollny@computec.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: java.net.SocketException: Connection reset by peer: socket
Date: Fri, 03 Dec 2004 10:25:45 +1300
Message-ID: <41AF8859.2090702@opencloud.com> (raw)
In-Reply-To: <2266D0630E43BB4290742247C8910575069E449E@dozer.computec.de>
References: <2266D0630E43BB4290742247C8910575069E449E@dozer.computec.de>

Markus Wollny wrote:
> It seems
> that somewhere along the line, the Application Server just looses the
> connection to the database after about 2h17min total runtime of the
> batch.

> java.net.SocketException: Connection reset by peer: socket write error
> 	at java.net.SocketOutputStream.socketWrite0(Native Method)

Check for firewalls between the appserver and the database server. The 
error is a TCP-level connection error that means that the peer (the 
database server) unexpectedly disappeared on us, and we didn't see an 
orderly shutdown of the connection. If it always happens after a certain 
connection length, or after the connection has been idle for a certain 
period, it's likely that there is a stateful firewall in the way that is 
dropping the connection after that period.

Failing that, does the database side log anything about the disconnection?

-O



view thread (3+ messages)  latest in thread

Message-ID: <41AF8859.2090702@opencloud.com>
Permalink:  ../41AF8859.2090702@opencloud.com/
Also on:    postgresql.org/message-id/41AF8859.2090702@opencloud.com

 · 

reply

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: oliver@opencloud.com, Markus.Wollny@computec.de
  Subject: Re: java.net.SocketException: Connection reset by peer: socket
  In-Reply-To: <41AF8859.2090702@opencloud.com>
  References: <2266D0630E43BB4290742247C8910575069E449E@dozer.computec.de> <41AF8859.2090702@opencloud.com>

* 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