Skip to content

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

decreased the responseHeaderDB database which is now flushed more frequently. This will preserve more documents in the cache in case of a crash.

Michael Peter Christen1a8c64117f81
diff --git a/source/net/yacy/crawler/data/Cache.java b/source/net/yacy/crawler/data/Cache.java
index 05bc2b2fc..ec08d3c68 100644
--- a/source/net/yacy/crawler/data/Cache.java
+++ b/source/net/yacy/crawler/data/Cache.java
@@ -83,7 +83,7 @@ public final class Cache {
// open the response header database
final File dbfile = new File(cachePath, RESPONSE_HEADER_DB_NAME);
try {
- responseHeaderDB = new MapHeap(dbfile, Word.commonHashLength, Base64Order.enhancedCoder, 1024 * 1024, 100, ' ');
+ responseHeaderDB = new MapHeap(dbfile, Word.commonHashLength, Base64Order.enhancedCoder, 2048, 100, ' ');
} catch (final IOException e) {
ConcurrentLog.logException(e);
}