Skip to content

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

Display the size of HashBlacklistedCache on PerformanceMemory page.

hermensdcbb4d0a6bfa
diff --git a/htroot/PerformanceMemory_p.html b/htroot/PerformanceMemory_p.html
index 3ce205726..a40874cd2 100644
--- a/htroot/PerformanceMemory_p.html
+++ b/htroot/PerformanceMemory_p.html
@@ -395,6 +395,10 @@ Increasing this cache may speed up crawling, but not much space is needed, so th
<td class="small">DNSNoCache</td>
<td class="small">#[namecache.noCache]#</td>
</tr>
+<tr class="TableCellLight">
+<td class="small">HashBlacklistedCache</td>
+<td class="small">#[blacklistcache.size]#</td>
+</tr>
</table>
</p>
diff --git a/htroot/PerformanceMemory_p.java b/htroot/PerformanceMemory_p.java
index ed8997f10..969818ff3 100644
--- a/htroot/PerformanceMemory_p.java
+++ b/htroot/PerformanceMemory_p.java
@@ -287,7 +287,8 @@ public class PerformanceMemory_p {
prop.put("namecache.hit",Long.toString(amount));
amount = httpc.nameCacheNoCachingListSize();
prop.put("namecache.noCache",Long.toString(amount));
-
+ amount = sb.urlBlacklist.blacklistCacheSize();
+ prop.put("blacklistcache.size",Long.toString(amount));
// return rewrite values for templates
return prop;
}
diff --git a/source/de/anomic/plasma/plasmaURLPattern.java b/source/de/anomic/plasma/plasmaURLPattern.java
index f8edb38e8..7c129e32f 100644
--- a/source/de/anomic/plasma/plasmaURLPattern.java
+++ b/source/de/anomic/plasma/plasmaURLPattern.java
@@ -90,6 +90,10 @@ public class plasmaURLPattern {
hostpaths.put(host.toLowerCase(), path);
}
+ public int blacklistCacheSize() {
+ return cachedUrlHashs.size();
+ }
+
public boolean hashInBlacklistedCache(String urlHash) {
return cachedUrlHashs.contains(urlHash);
}