fix for auto-configuration of crawler thread memory

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3131 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 18 years ago
parent 16f88c49d9
commit 036a0c828e

@ -1188,7 +1188,12 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
} catch (IOException e) {} } catch (IOException e) {}
// set new memory limit for indexer thread // 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; return hasDoneSomething;
} catch (InterruptedException e) { } catch (InterruptedException e) {

Loading…
Cancel
Save