【发布时间】:2018-12-13 22:43:39
【问题描述】:
我正在尝试了解 SOLR 中缓存的 JMX 数据 -
据我了解,'size' 属性表示缓存的大小(以 KB 为单位)[参考本文档 - https://lucene.apache.org/solr/guide/7_0/performance-statistics-reference.html#statistics-for-caches]。
{
"CACHE.searcher.documentCache":{
"lookups":0,
"hits":0,
"cumulative_evictions":0,
"size":30,
"hitratio":0.0,
"evictions":0,
"cumulative_lookups":370080,
"cumulative_hitratio":0.09,
"warmupTime":0,
"inserts":30,
"cumulative_inserts":337571,
"cumulative_hits":32509}}
并且在配置中,size参数是可以缓存的最大文档数[引用这个-https://lucene.apache.org/solr/guide/7_0/query-settings-in-solrconfig.html#documentcache]。
<documentCache class="solr.LRUCache"
size="15000"
initialSize="512"
autowarmCount="100"/>
这两个假设都是真的吗?
另外,为什么我当前的搜索器 documentCache 大小这么小?我可以看到有很多插页,但尺寸只有 30。为什么?
【问题讨论】: