From 213c8d97f21f1eb80830bab2a1342986065630e3 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Sat, 25 Feb 2012 14:07:20 +0100 Subject: [PATCH] use less proccesses in process pool --- source/net/yacy/kelondro/blob/ArrayStack.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/yacy/kelondro/blob/ArrayStack.java b/source/net/yacy/kelondro/blob/ArrayStack.java index f93421f0e..6437b93e7 100644 --- a/source/net/yacy/kelondro/blob/ArrayStack.java +++ b/source/net/yacy/kelondro/blob/ArrayStack.java @@ -124,8 +124,8 @@ public class ArrayStack implements BLOB { // init the thread pool for the keeperOf executor service this.executor = new ThreadPoolExecutor( - Runtime.getRuntime().availableProcessors() + 1, - Runtime.getRuntime().availableProcessors() * 4, 100, + 1, + Runtime.getRuntime().availableProcessors(), 100, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(), new NamePrefixThreadFactory(prefix));