More detailed information when waiting for a connection has timed out
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 2 Jun 2011 16:30:52 +0000 (16:30 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 2 Jun 2011 16:30:52 +0000 (16:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1130636 13f79535-47bb-0310-9956-ffa450edef68

modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java

index 8177991..ff5ce92 100644 (file)
@@ -627,7 +627,7 @@ public class ConnectionPool {
                 if ((System.currentTimeMillis() - now) >= maxWait) {
                     throw new SQLException("[" + Thread.currentThread().getName()+"] " +
                         "Timeout: Pool empty. Unable to fetch a connection in " + (maxWait / 1000) +
-                        " seconds, none available["+busy.size()+" in use].");
+                        " seconds, none available[size:"+size.get() +"; busy:"+busy.size()+"; idle:"+idle.size()+"; lastwait:"+timetowait+"].");
                 } else {
                     //no timeout, lets try again
                     continue;