Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for missing object miss-cache flush value: the value is alway zero because there is no miss-cache flush see http://forum.yacy-websuche.de/viewtopic.php?f=6&t=288
orbiterdbd1eeead500
diff --git a/htroot/PerformanceMemory_p.html b/htroot/PerformanceMemory_p.htmlindex b9a915046..e13dc0ad8 100644--- a/htroot/PerformanceMemory_p.html+++ b/htroot/PerformanceMemory_p.html@@ -130,7 +130,7 @@<tr class="TableHeader" valign="bottom"><td></td><td colspan="9">Read Hit Cache</td>- <td colspan="9">Read Miss Cache</td>+ <td colspan="8">Read Miss Cache</td></tr><tr class="TableHeader" valign="bottom"><td>Table</td>@@ -151,7 +151,7 @@<td>Write Unique</td><td>Write Double</td><td>Deletes</td>- <td>Flushes</td>+ <!-- <td>Flushes</td> --></tr>#{ObjectList}#<tr class="TableCellLight">@@ -173,7 +173,7 @@<td align="right">#[objectMissCacheWriteUnique]#</td><td align="right">#[objectMissCacheWriteDouble]#</td><td align="right">#[objectMissCacheDeletes]#</td>- <td align="right">#[objectMissCacheFlushes]#</td>+ <!-- <td align="right">#[objectMissCacheFlushes]#</td> --></tr>#{/ObjectList}#<tr class="TableCellDark">diff --git a/htroot/PerformanceMemory_p.java b/htroot/PerformanceMemory_p.javaindex 030a7a74c..ad0f281e6 100644--- a/htroot/PerformanceMemory_p.java+++ b/htroot/PerformanceMemory_p.java@@ -194,7 +194,7 @@ public class PerformanceMemory_p {prop.put("ObjectList_" + c + "_objectMissCacheWriteUnique", map.get("objectMissCacheWriteUnique"));prop.put("ObjectList_" + c + "_objectMissCacheWriteDouble", map.get("objectMissCacheWriteDouble"));prop.put("ObjectList_" + c + "_objectMissCacheDeletes", map.get("objectMissCacheDeletes"));- prop.put("ObjectList_" + c + "_objectMissCacheFlushes", map.get("objectMissCacheFlushes"));+ //prop.put("ObjectList_" + c + "_objectMissCacheFlushes", map.get("objectMissCacheFlushes"));c++;}@@ -205,9 +205,9 @@ public class PerformanceMemory_p {prop.put("objectMissCacheTotalMem", totalmissmem / (1024 * 1024));// parse initialization memory settings- String Xmx = env.getConfig("javastart_Xmx", "Xmx64m").substring(3);+ String Xmx = env.getConfig("javastart_Xmx", "Xmx96m").substring(3);prop.put("Xmx", Xmx.substring(0, Xmx.length() - 1));- String Xms = env.getConfig("javastart_Xms", "Xms10m").substring(3);+ String Xms = env.getConfig("javastart_Xms", "Xms96m").substring(3);prop.put("Xms", Xms.substring(0, Xms.length() - 1));// other caching structuresdiff --git a/source/de/anomic/kelondro/kelondroCache.java b/source/de/anomic/kelondro/kelondroCache.javaindex bb5b4a9e3..05293398e 100644--- a/source/de/anomic/kelondro/kelondroCache.java+++ b/source/de/anomic/kelondro/kelondroCache.java@@ -61,7 +61,7 @@ public class kelondroCache implements kelondroIndex {private kelondroIndex index;private kelondroRow keyrow;private int readHit, readMiss, writeUnique, writeDouble, cacheDelete, cacheFlush;- private int hasnotHit, hasnotMiss, hasnotUnique, hasnotDouble, hasnotDelete, hasnotFlush;+ private int hasnotHit, hasnotMiss, hasnotUnique, hasnotDouble, hasnotDelete;private boolean read, write;public kelondroCache(kelondroIndex backupIndex, boolean read, boolean write) {@@ -90,7 +90,6 @@ public class kelondroCache implements kelondroIndex {this.hasnotUnique = 0;this.hasnotDouble = 0;this.hasnotDelete = 0;- this.hasnotFlush = 0;}public final int cacheObjectChunkSize() {@@ -154,7 +153,7 @@ public class kelondroCache implements kelondroIndex {map.put("objectMissCacheWriteUnique", Integer.toString(hasnotUnique));map.put("objectMissCacheWriteDouble", Integer.toString(hasnotDouble));map.put("objectMissCacheDeletes", Integer.toString(hasnotDelete));- map.put("objectMissCacheFlushes", Integer.toString(hasnotFlush));+ map.put("objectMissCacheFlushes", "0"); // a miss cache flush can only happen if we have a deletion cache (which we dont have)// future feature .. map.put("objectElderTimeRead", index.profile().)return map;@@ -456,32 +455,6 @@ public class kelondroCache implements kelondroIndex {// The write buffer does not work here, because it does not store dates.throw new UnsupportedOperationException("put with date is inefficient in kelondroCache");- /*- if (entryDate == null) return put(row);-- assert (row != null);- assert (row.columns() == row().columns());- //assert (!(serverLog.allZero(row.getColBytes(index.primarykey()))));- assert (writeBufferUnique == null);- assert (writeBufferDoubles == null);-- byte[] key = row.getColBytes(index.row().primaryKey);- checkHitSpace();-- // remove entry from miss- and hit-cache- if (readMissCache != null) {- this.readMissCache.remove(key);- this.hasnotDelete++;- }-- // the worst case: we must write to the backend directly- Entry entry = index.put(row);- if (readHitCache != null) {- kelondroRow.Entry dummy = readHitCache.put(row); // learn that entry- if (dummy == null) this.writeUnique++; else this.writeDouble++;- }- return entry;- */}public synchronized void addUnique(Entry row) throws IOException {