mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2440 - limiting number of threads for the executor pool
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@920838 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3cbe3f1f92
commit
83604eee1d
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue