On 1/23/2021 6:29 AM, Luke Oak wrote:
I use default settings to start solr , I set heap to 6G, I created 10
collections with 1node and 1 replica, however, there is not much data at all,
just 100 documents.
My server is 32 G memory and 4 core cpu, ssd drive 300g
It was ok when i created 5 collections. It got oom killed when 10 collections
are created. Please, no data in new collections.
What version of Solr? How is it installed and started? What OS? What
Java version?
Do you have the actual OutOfMemoryError text? If I remember correctly
from my own reading, there are eight possible causes for OOME, and not
all of them are related to memory. The actual exception, which will be
recorded in the main Solr logfile if it is even recorded (sometimes it's
not), will contain the reason for the error.
A 6GB heap is definitely enough for a handful of empty cores. So my
best guess is that another resource, possibly thread count or open
files, is running out.
Also I found that solr doesn’t do garbage collection when the 6G is used ( from
dashboard, jvm usage is reached 6 g)
Sorry to be pedantic, but Solr doesn't EVER do Garbage Collection. Java
does. And it is completely normal for the entire Java heap to be
consumed on occasion, no matter what's happening. Solr does not expose
any way to force a GC.
Thanks,
Shawn