You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2007/03/31 21:55:21 UTC

svn commit: r524473 - /directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java

Author: elecharny
Date: Sat Mar 31 12:55:19 2007
New Revision: 524473

URL: http://svn.apache.org/viewvc?view=rev&rev=524473
Log:
Used another constructor for MINA sockectAcceptor, to be able to use processors efficiently. 
It solves a scaling pbs on multi-processors systems.

Modified:
    directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java

Modified: directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java?view=diff&rev=524473&r1=524472&r2=524473
==============================================================================
--- directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java (original)
+++ directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java Sat Mar 31 12:55:19 2007
@@ -114,7 +114,8 @@
         threadModel.setExecutor( threadPoolExecutor );
         
         udpAcceptor = new DatagramAcceptor();
-        tcpAcceptor = new SocketAcceptor();
+        tcpAcceptor = new SocketAcceptor(
+            Runtime.getRuntime().availableProcessors(), threadPoolExecutor );
 
         this.directoryService = service;
     }