diff --git a/htroot/PerformanceQueues_p.html b/htroot/PerformanceQueues_p.html index 86a2c82ee..ea34bf6bc 100644 --- a/htroot/PerformanceQueues_p.html +++ b/htroot/PerformanceQueues_p.html @@ -120,8 +120,11 @@ Maximum number of words in cache: - - + + + + + This is is the number of word indexes that shall be held in the @@ -131,9 +134,10 @@ Initial space of words in cache: - - + + + - This is is the init size of space for words in cache. diff --git a/htroot/PerformanceQueues_p.java b/htroot/PerformanceQueues_p.java index 4464233ca..b8e6aef55 100644 --- a/htroot/PerformanceQueues_p.java +++ b/htroot/PerformanceQueues_p.java @@ -171,9 +171,13 @@ public class PerformanceQueues_p { prop.put("table", c); if ((post != null) && (post.containsKey("cacheSizeSubmit"))) { - int wordCacheMaxCount = post.getInt("wordCacheMaxCount", 20000); - switchboard.setConfig("wordCacheMaxCount", Integer.toString(wordCacheMaxCount)); - switchboard.wordIndex.setMaxWordCount(wordCacheMaxCount); + int wordOutCacheMaxCount = post.getInt("wordOutCacheMaxCount", 20000); + switchboard.setConfig("wordCacheMaxCount", Integer.toString(wordOutCacheMaxCount)); + switchboard.wordIndex.setMaxWordCount(wordOutCacheMaxCount); + + int wordInCacheMaxCount = post.getInt("wordInCacheMaxCount", 1000); + switchboard.setConfig("indexDistribution.dhtReceiptLimit", Integer.toString(wordInCacheMaxCount)); + switchboard.wordIndex.setInMaxWordCount(wordInCacheMaxCount); int wordCacheInitCount = post.getInt("wordCacheInitCount", 30000); switchboard.setConfig("wordCacheInitCount", Integer.toString(wordCacheInitCount)); @@ -268,7 +272,8 @@ public class PerformanceQueues_p { prop.put("minAgeOfWCache", "" + (switchboard.wordIndex.minAgeOfDHTOutCache() / 1000 / 60)); // minutes prop.put("minAgeOfKCache", "" + (switchboard.wordIndex.minAgeOfDHTInCache() / 1000 / 60)); // minutes prop.put("maxWaitingWordFlush", switchboard.getConfig("maxWaitingWordFlush", "180")); - prop.put("wordCacheMaxCount", switchboard.getConfigLong("wordCacheMaxCount", 20000)); + prop.put("wordOutCacheMaxCount", switchboard.getConfigLong("wordCacheMaxCount", 20000)); + prop.put("wordInCacheMaxCount", switchboard.getConfigLong("indexDistribution.dhtReceiptLimit", 1000)); prop.put("wordCacheInitCount", switchboard.getConfigLong("wordCacheInitCount", 30000)); prop.put("wordFlushIdleDivisor", switchboard.getConfigLong("wordFlushIdleDivisor", 420)); prop.put("wordFlushBusyDivisor", switchboard.getConfigLong("wordFlushBusyDivisor", 5000));