You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2008/06/30 20:13:08 UTC

svn commit: r672853 - /httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/tsccm/ConnPoolByRoute.java

Author: olegk
Date: Mon Jun 30 11:13:07 2008
New Revision: 672853

URL: http://svn.apache.org/viewvc?rev=672853&view=rev
Log:
Added debug logs about ConnPoolByRoute internal state

Modified:
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/tsccm/ConnPoolByRoute.java

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/tsccm/ConnPoolByRoute.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/tsccm/ConnPoolByRoute.java?rev=672853&r1=672852&r2=672853&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/tsccm/ConnPoolByRoute.java (original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/tsccm/ConnPoolByRoute.java Mon Jun 30 11:13:07 2008
@@ -286,6 +286,12 @@
                         ("Connection pool shut down.");
                 }
 
+                if (LOG.isDebugEnabled()) {
+                    LOG.debug("Total connections kept alive: " + freeConnections.size()); 
+                    LOG.debug("Total issued connections: " + issuedConnections.size()); 
+                    LOG.debug("Total allocated connection: " + numConnections + " out of " + maxTotalConnections);
+                }
+                
                 // the cases to check for:
                 // - have a free connection for that route
                 // - allowed to create a free connection for that route
@@ -301,6 +307,7 @@
                 
                 if (LOG.isDebugEnabled()) {
                     LOG.debug("Available capacity: " + rospl.getCapacity() 
+                            + " out of " + rospl.getMaxEntries()
                             + " [" + route + "][" + state + "]");
                 }
                 
@@ -423,6 +430,7 @@
         try {
             boolean done = false;
             while(!done) {
+
                 entry = rospl.allocEntry(state);
     
                 if (entry != null) {