pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Read Timeout
2+ messages / 2 participants
[nested] [flat]

* Read Timeout
@ 2009-11-11 13:48 Michael Mangeng <michael.mangeng@automationnext.com>
  2009-11-11 16:11 ` Re: Read Timeout Sadanori Ito <sadanori.ito@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Michael Mangeng @ 2009-11-11 13:48 UTC (permalink / raw)
  To: pgsql-jdbc

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)






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

* Re: Read Timeout
  2009-11-11 13:48 Read Timeout Michael Mangeng <michael.mangeng@automationnext.com>
@ 2009-11-11 16:11 ` Sadanori Ito <sadanori.ito@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Sadanori Ito @ 2009-11-11 16:11 UTC (permalink / raw)
  To: Michael Mangeng <michael.mangeng@automationnext.com>; +Cc: pgsql-jdbc

Michael Mangeng wrote:
 > 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?)

Try "socketTimeout" parameter, if you can use the current version
(8.4 Build 701) of the driver.

http://jdbc.postgresql.org/documentation/84/connect.html#connection-parameters

Regards,
Sadanori



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


end of thread, other threads:[~2009-11-11 16:11 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-11-11 13:48 Read Timeout Michael Mangeng <michael.mangeng@automationnext.com>
2009-11-11 16:11 ` Sadanori Ito <sadanori.ito@gmail.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