From fb94b47b1a6d6fa3bb2a1d1654af0195cacd441a Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Mon, 21 May 2012 00:19:03 +0200 Subject: [PATCH] changed queue sizes to have less memory occupied during indexing --- source/net/yacy/search/Switchboard.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java index 48461b4a4..de1ac8465 100644 --- a/source/net/yacy/search/Switchboard.java +++ b/source/net/yacy/search/Switchboard.java @@ -793,7 +793,7 @@ public final class Switchboard extends serverSwitch }, this, "storeDocumentIndex", - 2 * WorkflowProcessor.availableCPU, + 2, null, 1 /*Math.max(1, WorkflowProcessor.availableCPU / 2)*/); this.indexingAnalysisProcessor = @@ -805,7 +805,7 @@ public final class Switchboard extends serverSwitch }, this, "webStructureAnalysis", - 2 * WorkflowProcessor.availableCPU, + WorkflowProcessor.availableCPU + 1, this.indexingStorageProcessor, WorkflowProcessor.availableCPU); this.indexingCondensementProcessor = @@ -817,7 +817,7 @@ public final class Switchboard extends serverSwitch }, this, "condenseDocument", - 4 * WorkflowProcessor.availableCPU, + WorkflowProcessor.availableCPU + 1, this.indexingAnalysisProcessor, WorkflowProcessor.availableCPU); this.indexingDocumentProcessor = @@ -829,7 +829,7 @@ public final class Switchboard extends serverSwitch }, this, "parseDocument", - 4 * WorkflowProcessor.availableCPU, + Math.max(20, WorkflowProcessor.availableCPU * 2), // it may happen that this is filled with new files from the search process. That means there should be enough place for two result pages this.indexingCondensementProcessor, WorkflowProcessor.availableCPU);