activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r920838 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorManager.java
Date Tue, 09 Mar 2010 12:29:23 GMT
Author: dejanb
Date: Tue Mar  9 12:29:23 2010
New Revision: 920838

URL: http://svn.apache.org/viewvc?rev=920838&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2440 - limiting number of threads for the executor
pool

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorManager.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorManager.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorManager.java?rev=920838&r1=920837&r2=920838&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorManager.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorManager.java
Tue Mar  9 12:29:23 2010
@@ -45,7 +45,7 @@ public final class SelectorManager {
     private int maxChannelsPerWorker = 64;
     
     protected ExecutorService createDefaultExecutor() {
-        ThreadPoolExecutor rc = new ThreadPoolExecutor(0, Integer.MAX_VALUE, 10, TimeUnit.SECONDS,
new SynchronousQueue<Runnable>(), new ThreadFactory() {
+        ThreadPoolExecutor rc = new ThreadPoolExecutor(0, 200, 1, TimeUnit.SECONDS, new SynchronousQueue<Runnable>(),
new ThreadFactory() {
             public Thread newThread(Runnable runnable) {
                 return new Thread(runnable, "ActiveMQ NIO Worker");
             }



Mime
View raw message