On 10/23/2019 9:08 AM, Vignan Malyala wrote:
Ok. I have around 500 cores in my solr. So, how much heap I should allocate
in solr and jvm?
(Currently as I see, in solr.in.sh shows heap as  - Xms 20g -Xmx 20g.
And my system jvm heap shows -Xms 528m -Xmx 8g. I've re-checked it.)

We have no way of knowing how big a heap you need.

https://lucidworks.com/post/sizing-hardware-in-the-abstract-why-we-dont-have-a-definitive-answer/

We can make an educated guess with certain information that has not been provided, but it would only be a guess, and might be wrong.

As I said before, there is only one heap for a Java program. There is no distinction between Java heap, Solr heap, system heap, or a heap with any other name. If you have multiple entries in the commandline for -Xmx or -Xms, only one of them is going to take effect, and I do not know which one.

The error message you're getting in Java's error file means that there wasn't enough memory available for Java to allocate what it wanted to allocate, so Java crashed. This is a problem at the Java level, Solr is not involved.

Thanks,
Shawn

Reply via email to