X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0E0413A5452 for ; Thu, 2 Dec 2004 21:20:11 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 12624-08 for ; Thu, 2 Dec 2004 21:20:02 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id AA5393A4C7D for ; Thu, 2 Dec 2004 21:20:03 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CZyMp-0005Ou-00; Fri, 03 Dec 2004 10:19:59 +1300 Message-ID: <41AF8859.2090702@opencloud.com> Date: Fri, 03 Dec 2004 10:25:45 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.9 (X11/20041130) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Markus Wollny Cc: pgsql-jdbc@postgresql.org Subject: Re: java.net.SocketException: Connection reset by peer: socket References: <2266D0630E43BB4290742247C8910575069E449E@dozer.computec.de> In-Reply-To: <2266D0630E43BB4290742247C8910575069E449E@dozer.computec.de> X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/8 X-Sequence-Number: 11674 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