mirror of https://github.com/apache/lucene.git
SOLR-2036: don't automatically use ram estimator from stats page
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@984589 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
92f4310c11
commit
80659afa98
|
@ -401,6 +401,9 @@ Bug Fixes
|
|||
by making SolreCore close the UpdateHandler before closing the
|
||||
SearchExecutor. (NarasimhaRaju, hossman)
|
||||
|
||||
* SOLR-2036: Avoid expensive fieldCache ram estimation for the
|
||||
admin stats page. (yonik)
|
||||
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
|
|
@ -64,16 +64,18 @@ public class SolrFieldCacheMBean implements SolrInfoMBean {
|
|||
stats.add("entry#" + i, e.toString());
|
||||
}
|
||||
|
||||
Insanity[] insanity = checker.checkSanity(entries);
|
||||
Insanity[] insanity = checker.check(entries);
|
||||
|
||||
stats.add("insanity_count", insanity.length);
|
||||
for (int i = 0; i < insanity.length; i++) {
|
||||
|
||||
/** RAM estimation is both CPU and memory intensive... we don't want to do it unless asked.
|
||||
// we only estimate the size of insane entries
|
||||
for (CacheEntry e : insanity[i].getCacheEntries()) {
|
||||
// don't re-estimate if we've already done it.
|
||||
if (null == e.getEstimatedSize()) e.estimateSize();
|
||||
}
|
||||
**/
|
||||
|
||||
stats.add("insanity#" + i, insanity[i].toString());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue