activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [1/2] activemq-artemis git commit: ARTEMIS-439 Set default global thread pool based on cores
Date Tue, 15 Mar 2016 19:08:31 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master 45d119400 -> ca19abb4f


ARTEMIS-439 Set default global thread pool based on cores


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/e9992bc5
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/e9992bc5
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/e9992bc5

Branch: refs/heads/master
Commit: e9992bc59ff4c379a21245f0b56901e4fbc15348
Parents: 45d1194
Author: Martyn Taylor <mtaylor@redhat.com>
Authored: Tue Mar 15 15:20:21 2016 +0000
Committer: Martyn Taylor <mtaylor@redhat.com>
Committed: Tue Mar 15 15:20:21 2016 +0000

----------------------------------------------------------------------
 .../apache/activemq/artemis/api/core/client/ActiveMQClient.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/e9992bc5/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/client/ActiveMQClient.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/client/ActiveMQClient.java
b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/client/ActiveMQClient.java
index 11918e1..b4c83f1 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/client/ActiveMQClient.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/client/ActiveMQClient.java
@@ -118,7 +118,7 @@ public final class ActiveMQClient {
 
    public static final int DEFAULT_THREAD_POOL_MAX_SIZE = -1;
 
-   public static final int DEFAULT_GLOBAL_THREAD_POOL_MAX_SIZE = 500;
+   public static final int DEFAULT_GLOBAL_THREAD_POOL_MAX_SIZE = 8 * Runtime.getRuntime().availableProcessors();
 
    public static final int DEFAULT_SCHEDULED_THREAD_POOL_MAX_SIZE = 5;
 


Mime
View raw message