Skip to content

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

increased memory limit for emergency cache flush

orbiter82fb60a72001
diff --git a/source/de/anomic/kelondro/text/IndexCell.java b/source/de/anomic/kelondro/text/IndexCell.java
index 11d397cca..a41db0dd0 100644
--- a/source/de/anomic/kelondro/text/IndexCell.java
+++ b/source/de/anomic/kelondro/text/IndexCell.java
@@ -270,7 +270,7 @@ public final class IndexCell extends AbstractBufferedIndex implements BufferedIn
private synchronized void cleanCache() {
// dump the cache if necessary
- if (this.ram.size() > this.maxRamEntries || (this.ram.size() > 3000 && MemoryControl.available() < 50 * 1024 * 1024)) {
+ if (this.ram.size() > this.maxRamEntries || (this.ram.size() > 2000 && MemoryControl.available() < 100L * 1024L * 1024L)) {
try {
cacheDump();
} catch (IOException e) {