On 2/16/2014 11:34 PM, Nguyen Manh Tien wrote:
> My solr got OOM recently after i upgraded from solr 4.0 to 4.6.1.
> I check heap dump and found that it has many SolrIndexSearcher (SIS)
> objects (24), i expect only 1 SIS because we have 1 core.
> 
> I make some experiment
> - Right after start solr, it has only 1 SolrIndexSearcher
> - *But after i index some docs and run softCommit or hardCommit with
> openSearcher=false, number of SolrIndexSearcher increase by 1*
> - When hard commit with openSearcher=true, nubmer of SolrIndexSearcher
> (SIS) doesn't increase but i foudn it log, it open new searcher, i guest
> old SIS closed.
> 
> I don't know why number of SIS increase like this and finally cause
> OutOfMemory, can SolrIndexSearcher be leak?

It's always possible that you've hit a bug that results in a memory
leak, but it is not likely.  I'm running version 4.6.1 in production
without any problems.  A lot of other people are doing so as well.  I
suspect that there's a misconfiguration, a buggy JVM, or something else
that's out of the ordinary.

We'll need answers to a bunch of questions: What filesystem and
operating system are you running on?  What vendor and version is your
JVM?  Can you use a file sharing site or a paste website to share your
full solrconfig.xml file?  What servlet container are you using to run
Solr?  Depending on what we learn from these answers, more questions
might be coming.

Are there any messages at WARN or ERROR in your Solr logfile?  Note that
I am not referring to the logging tab in the admin UI here - you'll need
to look at the actual logfile.

Thanks,
Shawn

Reply via email to