On 8/8/2021 11:43 PM, Satya Nand wrote:
We are facing a strange issue in our solr system. Most of the days it keeps
running fine but once or twice in a month, we face OutofMemory on solr
servers.
We are using Leader-Follower architecture, one Leader and 4 followers.
Strangely we get OutofMemory error on all follower servers.
Before the OutOfMemory this exception is found on all servers.
Do you have the actual OutOfMemoryError exception? Can we see that?
There are several resources other than heap memory that will result in
OOME if they are exhausted. It's important to be investigating the
correct resource.
<filterCache class="solr.FastLRUCache" size="4000" initialSize="2000"
autowarmCount="100" /> <queryResultCache class="solr.LRUCache" size="30000"
initialSize="1000" autowarmCount="100" /> <documentCache class=
"solr.LRUCache" size="25000" initialSize="512" autowarmCount="512" />
If you have five million documents (including those documents that have
been deleted) in a core, then each filterCache entry for that core will
be 625000 bytes, plus some unknown amount of overhead to manage the
entry. Four thousand of them will consume 2.5 billion bytes. If you
have multiple cores each with many documents, the amount of memory
required for the filterCache could get VERY big.
Until we can see the actual OOME exception, we won't know what resource
you need to investigate. It is frequently NOT memory.
Thanks,
Shawn