Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
update of memory-protection values see http://www.yacy-forum.de/viewtopic.php?p=35539#35539
orbiter46367afaaa93
diff --git a/source/de/anomic/kelondro/kelondroCache.java b/source/de/anomic/kelondro/kelondroCache.javaindex 5c1f32bcb..30c817ea3 100644--- a/source/de/anomic/kelondro/kelondroCache.java+++ b/source/de/anomic/kelondro/kelondroCache.java@@ -50,8 +50,8 @@ public class kelondroCache implements kelondroIndex {// static object tracker; stores information about object cache usageprivate static final TreeMap objectTracker = new TreeMap();- private static long memStopGrow = 4000000; // a limit for the node cache to stop growing if less than this memory amount is available- private static long memStartShrink = 2000000; // a limit for the node cache to start with shrinking if less than this memory amount is available+ private static long memStopGrow = 10000000; // a limit for the node cache to stop growing if less than this memory amount is available+ private static long memStartShrink = 6000000; // a limit for the node cache to start with shrinking if less than this memory amount is available// class objectsprivate kelondroRowSet readHitCache;diff --git a/source/de/anomic/kelondro/kelondroRecords.java b/source/de/anomic/kelondro/kelondroRecords.javaindex e2ed97e21..f645244f7 100644--- a/source/de/anomic/kelondro/kelondroRecords.java+++ b/source/de/anomic/kelondro/kelondroRecords.java@@ -127,8 +127,8 @@ public class kelondroRecords {// static supervision objects: recognize and coordinate all activitesprivate static TreeMap recordTracker = new TreeMap(); // a String/filename - kelondroRecords mapping- private static long memStopGrow = 4000000; // a limit for the node cache to stop growing if less than this memory amount is available- private static long memStartShrink = 2000000; // a limit for the node cache to start with shrinking if less than this memory amount is available+ private static long memStopGrow = 10000000; // a limit for the node cache to stop growing if less than this memory amount is available+ private static long memStartShrink = 6000000; // a limit for the node cache to start with shrinking if less than this memory amount is available// values that are only present at run-timeprotected String filename; // the database's file namediff --git a/source/de/anomic/plasma/plasmaSearchEvent.java b/source/de/anomic/plasma/plasmaSearchEvent.javaindex f9163d12c..9d7e1e841 100644--- a/source/de/anomic/plasma/plasmaSearchEvent.java+++ b/source/de/anomic/plasma/plasmaSearchEvent.java@@ -407,7 +407,7 @@ public final class plasmaSearchEvent extends Thread implements Runnable {// start url-fetchlong postorderTime = profileLocal.getTargetTime(plasmaSearchTimingProfile.PROCESS_POSTSORT);- System.out.println("DEBUG: postorder-final (urlfetch) maxtime = " + postorderTime);+ //System.out.println("DEBUG: postorder-final (urlfetch) maxtime = " + postorderTime);long postorderLimitTime = (postorderTime < 0) ? Long.MAX_VALUE : (System.currentTimeMillis() + postorderTime);profileLocal.startTimer();plasmaSearchPostOrder acc = new plasmaSearchPostOrder(query, ranking);diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex 5b9879ce2..658869c8b 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -1065,11 +1065,12 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements serwordIndex.setInMaxWordCount(wordInCacheMaxCount);wordIndex.setWordFlushSize((int) getConfigLong("wordFlushSize", 1000));- // set a minimum amount of memory for the indexer thread- long memprereq = wordIndex.minMem();- //setConfig(INDEXER_MEMPREREQ, memprereq);- kelondroRecords.setCacheGrowStati(memprereq + 2 * 1024 * 1024, memprereq);- kelondroCache.setCacheGrowStati(memprereq + 2 * 1024 * 1024, memprereq);+ // set a maximum amount of memory for the caches+ long memprereq = Math.max(getConfigLong(INDEXER_MEMPREREQ, 0), wordIndex.minMem());+ // setConfig(INDEXER_MEMPREREQ, memprereq);+ //setThreadPerformance(INDEXER, getConfigLong(INDEXER_IDLESLEEP, 0), getConfigLong(INDEXER_BUSYSLEEP, 0), memprereq);+ kelondroRecords.setCacheGrowStati(memprereq + 4 * 1024 * 1024, memprereq + 2 * 1024 * 1024);+ kelondroCache.setCacheGrowStati(memprereq + 4 * 1024 * 1024, memprereq + 2 * 1024 * 1024);// make parserlog.logConfig("Starting Parser");@@ -1861,12 +1862,12 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements serif (yacyCore.newsPool.automaticProcess() > 0) hasDoneSomething = true;} catch (IOException e) {}- // set new memory limit for indexer thread+ // set a maximum amount of memory for the cacheslong memprereq = Math.max(getConfigLong(INDEXER_MEMPREREQ, 0), wordIndex.minMem());- //setConfig(INDEXER_MEMPREREQ, memprereq);+ // setConfig(INDEXER_MEMPREREQ, memprereq);//setThreadPerformance(INDEXER, getConfigLong(INDEXER_IDLESLEEP, 0), getConfigLong(INDEXER_BUSYSLEEP, 0), memprereq);- kelondroRecords.setCacheGrowStati(memprereq + 2 * 1024 * 1024, memprereq);- kelondroCache.setCacheGrowStati(memprereq + 2 * 1024 * 1024, memprereq);+ kelondroRecords.setCacheGrowStati(memprereq + 4 * 1024 * 1024, memprereq + 2 * 1024 * 1024);+ kelondroCache.setCacheGrowStati(memprereq + 4 * 1024 * 1024, memprereq + 2 * 1024 * 1024);// update the cluster setthis.clusterhashes = yacyCore.seedDB.clusterHashes(getConfig("cluster.peers.yacydomain", ""));diff --git a/yacy.init b/yacy.initindex a6cb52135..eae48cf34 100644--- a/yacy.init+++ b/yacy.init@@ -325,7 +325,7 @@ use_proxyAccounts=false# because the p2p-index-sharing function will use the http server for# data exchange.# example-#serverAccount=dicke:berta+#serverAccount=admin:mysecretpasswordserverAccount=serverAccountBase64MD5=@@ -334,7 +334,7 @@ serverAccountBase64MD5=# should be set to a secret. By default it is without a password# but you are encouraged to set it to another value on the page# http://localhost:8080/-#adminAccount=admin:anomic+#adminAccount=admin:mysecretpasswordadminAccount=adminAccountBase64MD5=@@ -395,7 +395,6 @@ peerCycle=2# - process any job only if we are online, which is technically only the case# if the proxy is used -> mode 1# - process jobs periodically, with periodes according to peerCycle -> mode 2-#onlineMode=1onlineMode=2# Debug mode for YACY network: this will trigger that also local ip's are@@ -615,7 +614,7 @@ javastart_priority=0# flushed to disc; this may last some minutes.wordCacheMaxCount = 20000wordCacheInitCount = 30000-wordFlushSize = 1000;+wordFlushSize = 500;# Specifies if yacy can be used as transparent http proxy.#@@ -635,7 +634,7 @@ isTransparentProxy=falseconnectionKeepAliveSupport=true# Specifies the timeout the proxy sould use-proxy.clientTimeout = 10000+proxy.clientTimeout = 30000# Specifies if the proxy should send the via header according to RFCproxy.sendViaHeader=true@@ -666,7 +665,7 @@ msgForwardingCmd=/usr/sbin/sendmailmsgForwardingTo=root@localhost#onlineCautionDelay: delay time after proxy usage before crawling is resumed-onlineCautionDelay=30000+onlineCautionDelay=10000# Some configuration values for the crawlercrawler.clientTimeout=9000