Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix for auto-configuration of crawler thread memory

orbiter036a0c828e58
diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java
index f3ab267da..90f7fe44a 100644
--- a/source/de/anomic/plasma/plasmaSwitchboard.java
+++ b/source/de/anomic/plasma/plasmaSwitchboard.java
@@ -1188,7 +1188,12 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
} catch (IOException e) {}
// set new memory limit for indexer thread
- setConfig("80_indexing_memprereq", Math.max(getConfigLong("80_indexing_memprereq", 0), wordIndex.minMem()));
+ long memprereq = Math.max(getConfigLong("80_indexing_memprereq", 0), wordIndex.minMem());
+ setConfig("80_indexing_memprereq", memprereq);
+ setThreadPerformance("80_indexing",
+ getConfigLong("80_indexing_idlesleep", 0),
+ getConfigLong("80_indexing_busysleep", 0),
+ memprereq);
return hasDoneSomething;
} catch (InterruptedException e) {