On 10/23/2019 4:09 AM, Vignan Malyala wrote:
*Solr prod stopped yesterday. How to prevent this.*
Solr heap info is : -Xms20g -Xmx20g
JVM Heap info. : -Xms528m -Xmx8g
There is no such thing as a Solr heap separate from the JVM heap. There
are multiple environment variables that can specify the heap size ...
only one of those settings is actually going to take effect. I have not
done any investigation to determine which one it will be.
Physical Ram - 32GB
Solr version - 6.6.1
Swap memory - 8g
*hc_err_pid.log got created with following info in it:*
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 16106127360 bytes for
committing reserved memory.
This sounds like there is insufficient memory available when running
Solr for the system to start Java with the configured settings. Based
on this number, which is about 16GB, I'm betting that the heap size
which took effect is the 20GB one, or maybe it got set to 16GB by
another setting that you did not mention above.
Your information says that there is 32GB total memory ... maybe there
are other programs that are using up some of that memory before Solr
attempts to start, and there is not enough memory left for Solr.
Thanks,
Shawn