Author: norman
Date: Thu Oct 13 06:16:56 2011
New Revision: 1182677

URL: http://svn.apache.org/viewvc?rev=1182677&view=rev
Log:
Set the maxExecutionHandler to 16. See JAMES-1333

Modified:
    
james/server/trunk/protocols-library/src/main/java/org/apache/james/protocols/lib/netty/AbstractConfigurableAsyncServer.java

Modified: 
james/server/trunk/protocols-library/src/main/java/org/apache/james/protocols/lib/netty/AbstractConfigurableAsyncServer.java
URL: 
http://svn.apache.org/viewvc/james/server/trunk/protocols-library/src/main/java/org/apache/james/protocols/lib/netty/AbstractConfigurableAsyncServer.java?rev=1182677&r1=1182676&r2=1182677&view=diff
==============================================================================
--- 
james/server/trunk/protocols-library/src/main/java/org/apache/james/protocols/lib/netty/AbstractConfigurableAsyncServer.java
 (original)
+++ 
james/server/trunk/protocols-library/src/main/java/org/apache/james/protocols/lib/netty/AbstractConfigurableAsyncServer.java
 Thu Oct 13 06:16:56 2011
@@ -58,10 +58,10 @@ import org.slf4j.Logger;
  */
 public abstract class AbstractConfigurableAsyncServer extends 
AbstractAsyncServer implements LogEnabled, Configurable, ServerMBean {
     /** The default value for the connection backlog. */
-    private static final int DEFAULT_BACKLOG = 200;
+    public static final int DEFAULT_BACKLOG = 200;
 
     /** The default value for the connection timeout. */
-    private static final int DEFAULT_TIMEOUT = 5 * 60;
+    public static final int DEFAULT_TIMEOUT = 5 * 60;
 
     /** The name of the parameter defining the connection timeout. */
     private static final String TIMEOUT_NAME = "connectiontimeout";
@@ -72,6 +72,8 @@ public abstract class AbstractConfigurab
     /** The name of the parameter defining the service hello name. */
     public static final String HELLO_NAME = "helloName";
 
+    public static final int DEFAULT_MAX_EXECUTOR_COUNT = 16;
+    
     // By default, use the Sun X509 algorithm that comes with the Sun JCE
     // provider for SSL
     // certificates
@@ -114,6 +116,7 @@ public abstract class AbstractConfigurab
     private MBeanServer mbeanServer;
 
     
+    
     @Resource(name = "filesystem")
     public final void setFileSystem(FileSystem filesystem) {
         this.fileSystem = filesystem;
@@ -193,7 +196,7 @@ public abstract class AbstractConfigurab
         int ioWorker = config.getInt("ioWorkerCount", DEFAULT_IO_WORKER_COUNT);
         setIoWorkerCount(ioWorker);
 
-        maxExecutorThreads = config.getInt("maxExecutorCount", 50);
+        maxExecutorThreads = config.getInt("maxExecutorCount", 
DEFAULT_MAX_EXECUTOR_COUNT);
 
         
         configureHelloName(config);



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to