Wait for getting connection infinitely

47 views
Skip to first unread message

yone

unread,
Nov 20, 2016, 9:35:59 PM11/20/16
to H2 Database
Hi.

UnfortunaIy my system was stoped 3 times recently.
The cause looks all threads waited for getting H2 tcp connection infinitely.

I want to know
1. Is there any workaround?
2. Is it possible to change SocketInputStream to some other compoenent?
    It looks there are some hangup issue in SocketInputStream...

Our system environment are following
 - windows:7 Pro 64bit
 - java :1.8.0_45
 - h2 : 1.3.176


- Stack trace
  at java.net.SocketInputStream.socketRead0(Native Method)   <- wait for inifinitely in here
  at java.net.SocketInputStream.socketRead(Unknown Source)
  at java.net.SocketInputStream.read(Unknown Source)
  at java.net.SocketInputStream.read(Unknown Source)
  at java.io.BufferedInputStream.fill(Unknown Source)
  at java.io.BufferedInputStream.read(Unknown Source)
  - locked <3185fb39> (a java.io.BufferedInputStream)
  at java.io.DataInputStream.readInt(Unknown Source)
  at org.h2.value.Transfer.readInt(Transfer.java:157)
  at org.h2.engine.SessionRemote.done(SessionRemote.java:599)
  at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:129)
  at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:430)
  at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:311)
  at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:107)
  at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:91)
  at org.h2.Driver.connect(Driver.java:74)
  at org.h2.jdbcx.JdbcD  ataSource.getJdbcConnection(JdbcDataSource.java:191)
  at org.h2.jdbcx.JdbcD  ataSource.getXAConnection(JdbcDataSource.java:354)
  at org.h2.jdbcx.JdbcD  ataSource.getPooledConnection(JdbcDataSource.java:386)
  at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:228)
  at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:200)

Best Regards

Thomas Mueller Graf

unread,
Nov 24, 2016, 12:01:57 PM11/24/16
to h2-da...@googlegroups.com
I'm sorry there is not enough data to reproduce or analyze this.
What I would check is that you use the same version of H2 on the client and on the server.

> UnfortunaIy my system was stoped 3 times recently.

I don't know what "stoped" means.
--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscribe@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Thomas Mueller Graf

unread,
Nov 24, 2016, 12:04:09 PM11/24/16
to h2-da...@googlegroups.com
I'm sorry there is not enough data to reproduce or analyze this.
What I would check is that you use the same version of H2 on the client and on the server.

> UnfortunaIy my system was stoped 3 times recently.

I don't know what "stoped" means.


On Monday, November 21, 2016, yone <yone...@gmail.com> wrote:
--

yone

unread,
Nov 24, 2016, 9:18:04 PM11/24/16
to H2 Database
Hi Thomas.
Thank you for reply.

>What I would check is that you use the same version of H2 on the client and on the server.
Both client and server use V1.3.176.
When this issue occurred, the server OS was just shutting down.

>I don't know what "stoped" means.
Sorry, It's typo. THe correct spell is "stopped".
My system hung up in getting connection pool.

If you need more information, let me know.
Reply all
Reply to author
Forward
0 new messages