From: Michael Mangeng <michael.mangeng@automationnext.com>
To: pgsql-jdbc@postgresql.org
Subject: Read Timeout
Date: Wed, 11 Nov 2009 14:48:55 +0100
Message-ID: <0E6282E6-7F84-480A-906D-FE0C56F0DB5F@automationnext.com> (raw)
Hello all!
I've got an issue with the call to preparedStatement.executeBatch. The
performing thread is locked in a productive system for some hours in
SocketInputStream.read, as you can see in the stacktrace below. The
database server is currently reachable but it's possible that it had
been off for a few seconds (we're logging over the internet connection
to another building).
My question is weather there is a possibility to define a read timeout
interval somewhere to avoid this. (e.g. In the JDBC url. Somthing like
loginTimout?)
Stacktrace is below.
Thanks a lot and greetings,
Michael
java.net.SocketInputStream.socketRead0(null:-2)
java.net.SocketInputStream.read(null:-1)
org.postgresql.core.VisibleBufferedInputStream.readMore
(VisibleBufferedInputStream.java:135)
org.postgresql.core.VisibleBufferedInputStream.ensureBytes
(VisibleBufferedInputStream.java:104)
org.postgresql.core.VisibleBufferedInputStream.read
(VisibleBufferedInputStream.java:73)
org.postgresql.core.PGStream.ReceiveChar(PGStream.java:259)
org.postgresql.core.v3.QueryExecutorImpl.processResults
(QueryExecutorImpl.java:1166)
org.postgresql.core.v3.QueryExecutorImpl.execute
(QueryExecutorImpl.java:351)
org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch
(AbstractJdbc2Statement.java:2674)
org.apache.commons.dbcp.DelegatingStatement.executeBatch
(DelegatingStatement.java:297)
com.v8tech.pneuma.eventlogger.internal.NodeprocessingDataEntriesoggerImpl.commitBatch
(NodeEventLoggerImpl.java:462)
com.v8tech.pneuma.eventlogger.internal.NodeEventLoggerImpl.processDataEntries
(NodeEventLoggerImpl.java:378)
com.v8tech.pneuma.eventlogger.internal.NodeEventLoggerImpl.tick
(NodeEventLoggerImpl.java:502)
com.v8tech.components.ticker.Ticker$TickerRunnable$1.run(Ticker.java:
206)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(null:-1)
java.util.concurrent.ThreadPoolExecutor$Worker.run(null:-1)
java.lang.Thread.run(null:-1)
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: michael.mangeng@automationnext.com
Subject: Re: Read Timeout
In-Reply-To: <0E6282E6-7F84-480A-906D-FE0C56F0DB5F@automationnext.com>
References: <0E6282E6-7F84-480A-906D-FE0C56F0DB5F@automationnext.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