lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Re: Memory Issue with SnapPuller
Date Thu, 20 Oct 2016 15:29:31 GMT
On 10/20/2016 8:44 AM, Jihwan Kim wrote:
> We are using Solr 4.10.4 and experiencing out of memory exception. It
> seems the problem is cause by the following code & scenario. 

When you get an OutOfMemoryError exception that tells you there's not
enough heap space, the place where the exception happens is frequently
unrelated to the actual source of the problem.  Also, unless the
programmer engages in extraordinary effort, encountering OOME will cause
program behavior to become completely unpredictable.  Most of Solr has
*NOT* had the benefit of extraordinary effort to handle OOME gracefully.

Before continuing with troubleshooting of SnapPuller, you're going to
need to fix the OOME error.  When you run out of memory, that is likely
to be the CAUSE of any errors you're seeing, not a symptom.

There are exactly two ways to deal with OOME:  Increase the max heap, or
take steps to reduce the amount of heap required.  Increasing the heap
is the easiest option, and typically the first step.  Sometimes it's the
ONLY option.

https://wiki.apache.org/solr/SolrPerformanceProblems#Java_Heap

Thanks,
Shawn


Mime
View raw message