Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.executor.admin/src/org/eclipse/osee/executor/admin/internal/ExecutorAdminImpl.java')
-rw-r--r--plugins/org.eclipse.osee.executor.admin/src/org/eclipse/osee/executor/admin/internal/ExecutorAdminImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.executor.admin/src/org/eclipse/osee/executor/admin/internal/ExecutorAdminImpl.java b/plugins/org.eclipse.osee.executor.admin/src/org/eclipse/osee/executor/admin/internal/ExecutorAdminImpl.java
index 5d0a282b2f8..8b3e9449897 100644
--- a/plugins/org.eclipse.osee.executor.admin/src/org/eclipse/osee/executor/admin/internal/ExecutorAdminImpl.java
+++ b/plugins/org.eclipse.osee.executor.admin/src/org/eclipse/osee/executor/admin/internal/ExecutorAdminImpl.java
@@ -132,8 +132,9 @@ public class ExecutorAdminImpl implements ExecutorAdmin {
ExecutorThreadFactory threadFactory = new ExecutorThreadFactory(id, Thread.NORM_PRIORITY);
cache.put(id, threadFactory);
- int numberOfProcessor = Runtime.getRuntime().availableProcessors();
- return new ExecutorServiceImpl(getLogger(), id, numberOfProcessor, threadFactory, cache);
+ // TODO: Better way to control pool size per executor service
+ int corePoolSize = Math.min(4, Runtime.getRuntime().availableProcessors());
+ return new ExecutorServiceImpl(getLogger(), id, corePoolSize, threadFactory, cache);
}
private void shutdown(String id, ExecutorService executor) {

Back to the top