Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
increased delay for cacheScan start and slowed down scan process to provide more time to other tasks
orbiter4ff3d219e845
diff --git a/.classpath b/.classpathindex d33dff45f..6ca39b8fc 100644--- a/.classpath+++ b/.classpath@@ -1,29 +1,33 @@-<?xml version="1.0" encoding="UTF-8"?>-<classpath>-<classpathentry kind="src" path="source"/>-<classpathentry excluding="env/|htdocsdefault/|proxymsg/|yacy/" kind="src" path="htroot"/>-<classpathentry kind="src" path="htroot/htdocsdefault"/>-<classpathentry kind="src" path="htroot/yacy"/>-<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>-<classpathentry kind="lib" path="lib/commons-collections.jar"/>-<classpathentry kind="lib" path="lib/commons-pool-1.2.jar"/>-<classpathentry kind="lib" path="libx/axis.jar"/>-<classpathentry kind="lib" path="libx/axis-ant.jar"/>-<classpathentry kind="lib" path="libx/bzip2.jar"/>-<classpathentry kind="lib" path="libx/commons-discovery.jar"/>-<classpathentry kind="lib" path="libx/commons-logging.jar"/>-<classpathentry kind="lib" path="libx/informa-0.6.0.jar"/>-<classpathentry kind="lib" path="libx/jakarta-oro-2.0.7.jar"/>-<classpathentry kind="lib" path="libx/jaxrpc.jar"/>-<classpathentry kind="lib" path="libx/jdom.jar"/>-<classpathentry kind="lib" path="libx/jmimemagic-0.0.4a.jar"/>-<classpathentry kind="lib" path="libx/jsch-0.1.21.jar"/>-<classpathentry kind="lib" path="libx/log4j-1.2.9.jar"/>-<classpathentry kind="lib" path="libx/PDFBox-0.7.2.jar"/>-<classpathentry kind="lib" path="libx/saaj.jar"/>-<classpathentry kind="lib" path="libx/tar.jar"/>-<classpathentry kind="lib" path="libx/tm-extractors-0.4.jar"/>-<classpathentry kind="lib" path="libx/wsdl4j.jar"/>-<classpathentry kind="lib" path="libx/xerces.jar"/>-<classpathentry kind="output" path="gen"/>-</classpath>+<?xml version="1.0" encoding="UTF-8"?>+<classpath>+ <classpathentry kind="src" path="source"/>+ <classpathentry excluding="env/|htdocsdefault/|proxymsg/|yacy/" kind="src" path="htroot"/>+ <classpathentry kind="src" path="htroot/htdocsdefault"/>+ <classpathentry kind="src" path="htroot/yacy"/>+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>+ <classpathentry kind="lib" path="lib/commons-collections.jar"/>+ <classpathentry kind="lib" path="lib/commons-pool-1.2.jar"/>+ <classpathentry kind="lib" path="libx/axis.jar"/>+ <classpathentry kind="lib" path="libx/axis-ant.jar"/>+ <classpathentry kind="lib" path="libx/bzip2.jar"/>+ <classpathentry kind="lib" path="libx/commons-discovery.jar"/>+ <classpathentry kind="lib" path="libx/commons-logging.jar"/>+ <classpathentry kind="lib" path="libx/informa-0.6.0.jar"/>+ <classpathentry kind="lib" path="libx/jakarta-oro-2.0.7.jar"/>+ <classpathentry kind="lib" path="libx/jaxrpc.jar"/>+ <classpathentry kind="lib" path="libx/jdom.jar"/>+ <classpathentry kind="lib" path="libx/jmimemagic-0.0.4a.jar"/>+ <classpathentry kind="lib" path="libx/jsch-0.1.21.jar"/>+ <classpathentry kind="lib" path="libx/log4j-1.2.9.jar"/>+ <classpathentry kind="lib" path="libx/PDFBox-0.7.2.jar"/>+ <classpathentry kind="lib" path="libx/saaj.jar"/>+ <classpathentry kind="lib" path="libx/tar.jar"/>+ <classpathentry kind="lib" path="libx/tm-extractors-0.4.jar"/>+ <classpathentry kind="lib" path="libx/wsdl4j.jar"/>+ <classpathentry kind="lib" path="libx/xerces.jar"/>+ <classpathentry kind="lib" path="libx/odf_utils_05_11_10.jar"/>+ <classpathentry kind="lib" path="libx/jrpm-head.jar"/>+ <classpathentry kind="lib" path="libx/jrpm-SNAPSHOT.jar"/>+ <classpathentry kind="lib" path="libx/commons-codec-1.3.jar"/>+ <classpathentry kind="output" path="gen"/>+</classpath>diff --git a/source/de/anomic/plasma/plasmaHTCache.java b/source/de/anomic/plasma/plasmaHTCache.javaindex 381624b9a..dfaf2284a 100644--- a/source/de/anomic/plasma/plasmaHTCache.java+++ b/source/de/anomic/plasma/plasmaHTCache.java@@ -130,7 +130,7 @@ public final class plasmaHTCache {// start the cache startup thread// this will collect information about the current cache size and elements- serverInstantThread.oneTimeJob(this, "cacheScan", this.log, 5000);+ serverInstantThread.oneTimeJob(this, "cacheScan", this.log, 120000);}public int size() {@@ -307,7 +307,7 @@ public final class plasmaHTCache {}public void cacheScan() {- //log.logSystem("STARTING CACHE SCANNING");+ log.logConfig("STARTING HTCACHE SCANNING");kelondroMScoreCluster doms = new kelondroMScoreCluster();int c = 0;enumerateFiles ef = new enumerateFiles(this.cachePath, true, false, true, true);@@ -320,6 +320,7 @@ public final class plasmaHTCache {doms.incScore(dom(f));this.currCacheSize += f.length();this.cacheAge.put(ageString(d, f), f);+ try {Thread.sleep(10);} catch (InterruptedException e) {}}//System.out.println("%" + (String) cacheAge.firstKey() + "=" + cacheAge.get(cacheAge.firstKey()));long ageHours = 0;@@ -334,6 +335,7 @@ public final class plasmaHTCache {((ageHours < 24) ? (ageHours + " HOURS") : ((ageHours / 24) + " DAYS")) + " OLD");cleanup();+ log.logConfig("STARTING DNS PREFETCH");// start to prefetch ip's from dnsString dom;long start = System.currentTimeMillis();