I am using SOLR version 6.6.0 and the heap size is set to 512 MB, I believe which is default. We do have almost 10 million documents in the index, we do perform frequent updates (we are doing soft commit on every update: heap issue was seen with and without soft commit) to the index and obviously search heavily. We have experienced Heap space out of memory exception twice so far in the whole year span since we started using SOLR. Since we are just using default value for heap size, I am thinking to increase it and I do know that high heap size can slow down the performance due to GC pauses. As we can't really come up with an ideal number that can work with any scenario, I want to increase it to just 1gb only.
I did some reading around this, in which I learned that there can be lot of parameters that contribute to this issue and there is no perfect way to address this. And also read that increasing heap size above 2gb is where we definitely be in the danger zone, since I am thinking to increase it to just 1gb and if I monitor the consumption on a daily basis for a while, I should be good and resolve the heap memory issue. Is that a safe assumption ?? Does anyone has experienced similar issue ?? Any thoughts or suggestions ?? Below are heap usages if it helps. Usage was almost 490 mb, which makes me feel with the load we have 512 mb is not enough and should be good if I increase it to 1gb. [cid:image002.png@01D54174.BF7511F0] [cid:image001.png@01D54174.6D329160] Thanks