tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r1130636 - /tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
Date Thu, 02 Jun 2011 16:30:53 GMT
Author: fhanik
Date: Thu Jun  2 16:30:52 2011
New Revision: 1130636

URL: http://svn.apache.org/viewvc?rev=1130636&view=rev
Log:
More detailed information when waiting for a connection has timed out

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

Modified: tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java?rev=1130636&r1=1130635&r2=1130636&view=diff
==============================================================================
--- tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
(original)
+++ tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
Thu Jun  2 16:30:52 2011
@@ -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;



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message