You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "av_work@yahoo.com" <av...@yahoo.com> on 2007/05/22 21:30:53 UTC
Heap Out of Memory Error
Hi,
I am running Solr within the Jetty using start.jar. I am indexing about 200,000 documents. Sometimes out of the blue, the Solr instance cannot process any more requests and returns "heap out of memory" error.
This happens more often when I issue queries against the index that is being updated.
Is there some configuration setting I need to change?
Also, the server itself has plenty of RAM even when this error appears. So it appears Java is running out of its heap memory while there is still enough of RAM available for other processes.
Thanks,
Av
____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/
RE: Heap Out of Memory Error
Posted by Daniel Pitts <Da...@cnet.com>.
> -----Original Message-----
> From: av_work@yahoo.com [mailto:av_work@yahoo.com]
> Sent: Tuesday, May 22, 2007 12:31 PM
>
> Hi,
>
> I am running Solr within the Jetty using start.jar. I am
> indexing about 200,000 documents. Sometimes out of the blue,
> the Solr instance cannot process any more requests and
> returns "heap out of memory" error.
>
> This happens more often when I issue queries against the
> index that is being updated.
>
> Is there some configuration setting I need to change?
>
> Also, the server itself has plenty of RAM even when this
> error appears. So it appears Java is running out of its heap
> memory while there is still enough of RAM available for other
> processes.
>
> Thanks,
> Av
This seems like the java heap size is set too low. Wherever you start
the JVM, you can pass in -Xmx512m -Xms256m. Adjusting the values as
necessary.