Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2012-03-13 19:49:56 -0400
committerRyan D. Brooks2012-03-13 19:49:56 -0400
commit7b3fc3dc2c69bc298ec9ccf1b24a115fdf83da84 (patch)
tree67ddbbc44168bcbefca969cab92595781c8d12fc
parent5aa3555e80356c14c352040479649221fd74e121 (diff)
downloadorg.eclipse.osee-7b3fc3dc2c69bc298ec9ccf1b24a115fdf83da84.tar.gz
org.eclipse.osee-7b3fc3dc2c69bc298ec9ccf1b24a115fdf83da84.tar.xz
org.eclipse.osee-7b3fc3dc2c69bc298ec9ccf1b24a115fdf83da84.zip
feature[ats_VVMH0]: Reduce executor admin thread pool size
-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