directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r524473 - /directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java
Date Sat, 31 Mar 2007 19:55:21 GMT
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;
     }



Mime
View raw message