Re: Thread stucked at (java.net.SocketInputStream.socketRead0(Native Method))

2014-11-22 Thread Ameer Mawia
On Sat, Nov 22, 2014 at 4:03 PM, Dhaval Jaiswal wrote: > Is your postgresql server responsive? > Yes, there is no error logged in db server and server is very much > responsive. > > > Have you ever been able to get a valid connection during the lifetime of > the application? > Yes > > Was it work

Re: Thread stucked at (java.net.SocketInputStream.socketRead0(Native Method))

2014-11-22 Thread Dhaval Jaiswal
Is your postgresql server responsive? Yes, there is no error logged in db server and server is very much responsive. Have you ever been able to get a valid connection during the lifetime of the application? Yes Was it working for sometime, and then you suddenly start getting this issue...? Yes.

Re: Thread stucked at (java.net.SocketInputStream.socketRead0(Native Method))

2014-11-22 Thread Ameer Mawia
Jaiswal, This issue is of connection between your host and postgresql server, you are trying to connect and has nothing to do with Tomcat per say. To debug the issue, you will have to answer few more question: Is your postgresql server responsive? Have you ever been able to get a valid connection

Re: Thread stucked at (java.net.SocketInputStream.socketRead0(Native Method))

2014-11-21 Thread Dhaval Jaiswal
yes. the thread is stucked and started increasing load of the server. My configuration is as below. Query is fetching one row only. On Sat, Nov 22, 2014 at 1:29 AM, Ameer Mawia wrote: > Jaiswal, what your exact question is? > > Obviously in your application, you need a DB connec

Re: Thread stucked at (java.net.SocketInputStream.socketRead0(Native Method))

2014-11-21 Thread Ameer Mawia
Jaiswal, what your exact question is? Obviously in your application, you need a DB connection and if this is thread which is stuck, stack trace tells that tomcat dbcp, is trying to get you a connection, but stuck while reading the result of validate query which it had run before returning you a va

Re: Thread stucked at (java.net.SocketInputStream.socketRead0(Native Method))

2014-11-21 Thread Dhaval Jaiswal
Following thread stuck and increased the load. java.net.SocketInputStream.read(SocketInputStream.java:129) org.postgresql.core.VisibleBufferedInputStream.readMore(VisibleBufferedInputStream.java:145) org.postgresql.core.VisibleBufferedInputStream.ensureBytes(VisibleBufferedInputStream.java:1

Thread stucked at (java.net.SocketInputStream.socketRead0(Native Method))

2014-11-21 Thread Dhaval Jaiswal
Below thread stucked and increased the load. java.net.SocketInputStream.read(SocketInputStream.java:129) org.postgresql.core.VisibleBufferedInputStream.readMore(VisibleBufferedInputStream.java:145) org.postgresql.core.VisibleBufferedInputStream.ensureBytes(VisibleBufferedInputStream.java:114