lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Pitts" <Daniel.Pi...@cnet.com>
Subject RE: Heap Out of Memory Error
Date Tue, 22 May 2007 19:48:23 GMT
> -----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.

Mime
View raw message