Author: midon
Date: Thu Apr  9 21:30:03 2009
New Revision: 763815

URL: http://svn.apache.org/viewvc?rev=763815&view=rev
Log:
ODE-533: by default conn pool max size is the same as thread pool max size

Modified:
    
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java

Modified: 
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java?rev=763815&r1=763814&r2=763815&view=diff
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java
 (original)
+++ 
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java
 Thu Apr  9 21:30:03 2009
@@ -437,9 +437,10 @@
 
     private void initHttpConnectionManager() throws ServletException {
         httpConnectionManager = new MultiThreadedHttpConnectionManager();
-        // settings may be overridden from ode-axis2.properties using the same 
properties as HttpClient 
-        int max_per_host = 
Integer.parseInt(_odeConfig.getProperty(HttpConnectionManagerParams.MAX_HOST_CONNECTIONS,
 "2"));
-        int max_total = 
Integer.parseInt(_odeConfig.getProperty(HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS,
 "20"));
+        // settings may be overridden from ode-axis2.properties using the same 
properties as HttpClient
+        // /!\ If the size of the conn pool is smaller than the size of the 
thread pool, the thread pool might get starved.
+        int max_per_host = 
Integer.parseInt(_odeConfig.getProperty(HttpConnectionManagerParams.MAX_HOST_CONNECTIONS,
 ""+_odeConfig.getPoolMaxSize()));
+        int max_total = 
Integer.parseInt(_odeConfig.getProperty(HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS,
 ""+_odeConfig.getPoolMaxSize()));
         if(__log.isDebugEnabled()) {
             
__log.debug(HttpConnectionManagerParams.MAX_HOST_CONNECTIONS+"="+max_per_host);
             
__log.debug(HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS+"="+max_total);


Reply via email to