Hello Gabriel,
Thanks for the valueable comment, its very logical.
But my application uses separate Data-sources to connect to the same DB, so they are using different pool.
For now I have asked my DB the "maximum connections allowed to the DB instance", also I guess it can be due to rigours testing performed so I have asked my testing team as well.
But the later point can be neglected since I was getting the same issue on Sunday when there as no testing performed.
The error i am getting is as below
[9/25/13 12:07:32:943 CEST] 00000021 FreePool E J2CA0045E: Connection not available while invoking method createOrWaitForConnection for resource jdbc/DS_CRPE_T.
[9/25/13 12:07:32:965 CEST] 00000021 JDBCException W org.hibernate.util.JDBCExceptionReporter logExceptions SQL Error: 0, SQLState: null
[9/25/13 12:07:32:971 CEST] 00000021 JDBCException E org.hibernate.util.JDBCExceptionReporter logExceptions Connection not available, Timed out waiting for 180000
These results in many webcontainer hung threads message as below
[9/24/13 17:31:52:412 CEST] 00000057 ThreadMonitor W WSVR0606W: Thread "WebContainer : 42" (00000057) was previously reported to be hung but has completed. It was active for approximately 1572481 milliseconds. There is/are 11 thread(s) in total in the server that still may be hung.
[9/24/13 17:31:52:414 CEST] 0000003a ThreadMonitor W WSVR0606W: Thread "WebContainer : 26" (0000003a) was previously reported to be hung but has completed. It was active for approximately 10630659 milliseconds. There is/are 10 thread(s) in total in the server that still may be hung.
On release of all the hung threads the application becomes accessible normal.
Today early morning it was working fine, then mid-day it stuck again to be back to normal now.
Thanks
Sumit Tambe