Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Plain View
Solr, mail # user - Out of memory, not during import or updates of the index


+
Steve Fatula 2011-11-09, 20:33
+
Otis Gospodnetic 2011-11-09, 20:51
+
Steve Fatula 2011-11-09, 21:02
+
Andre Bois-Crettez 2011-11-10, 13:02
+
Steve Fatula 2011-11-10, 20:09
+
Mark Miller 2011-11-10, 21:00
+
Steve Fatula 2011-11-10, 23:39
Copy link to this message
-
Re: Out of memory, not during import or updates of the index
Paul Libbrecht 2011-11-10, 13:19
Steve,

do you have any custom code in your Solr?
We had out-of-memory errors just because of that, I was using one method to obtain the request which was leaking... had not read javadoc carefully enough. Since then, no leak.

What do you do after the OoME?

paul
Le 9 nov. 2011 à 21:33, Steve Fatula a écrit :

> We get at rare times out of memory errors during the day. I know one reason for this is data imports, none are going on. I see in the wiki, document adds have some quirks, not doing that. I don't know to to expect for memory use though.
>
> We had Solr running under Tomcat set to 2G ram. I presume cache size has an effect on memory, that's set to 30,000 for filter, document and queryResult. Have experimented with different sizes for a while, these limits are all lower than we used to have them set to. So, hoping there no sort of memory leak involved.
>
> In any case, some of the messages are:
>
> Exception in thread "http-8080-21" java.lang.OutOfMemoryError: Java heap space
>
>
> Some look like this:
>
> Exception in thread "http-8080-22" java.lang.NullPointerException
>         at java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:273)
> ...
>
> I presume the null pointer is a result of being out of memory.
>
> Should Solr possibly need more than 2GB? What else can we tune that might reduce memory usage?
+
Steve Fatula 2011-11-10, 20:00