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 Oleg Burlaca <ol...@burlaca.com> on 2010/03/12 19:17:05 UTC
java.lang.OutOfMemoryError, VM may need to be forcibly terminated
Hello,
I've searched the list for this kind of error but never find one that is
similar to my case:
Java HotSpot(TM) Client VM warning:
Exception java.lang.OutOfMemoryError occurred dispatching signal
SIGTERM to handler- the VM may need to be forcibly terminated
I use the latest stable SOLR 1.4 and start it with Jetty from the
/example/ folder.
Sometimes SOLR dies without writing to the stderrout.log
(I use the script from http://wiki.apache.org/solr/SolrJetty)
The messages above appears in the standard error stream instead of the
log file. (i.e. it appears directly in the SSH window).
I've set:
<New class="org.mortbay.thread.BoundedThreadPool">
<Set name="minThreads">2</Set>
<Set name="lowThreads">2</Set>
<Set name="maxThreads">2</Set>
</New>
Is there a way to solve this? SOLR is on a VPS with 512MB of RAM.
Regards,
Oleg Burlaca
Re: java.lang.OutOfMemoryError, VM may need to be forcibly terminated
Posted by Tom Hill <so...@worldware.com>.
Hi -
The best way is probably to add more ram. :-)
That error apparently results from running out of perm gen space, and with
512m, you may not have much perm gen space.
Options for increasing this can be found
http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp
But, if you don't have enough memory, that's just going to move the problem.
You can watch memory usage with jconsole, or get more detail with something
like yourkit.
Tom
On Fri, Mar 12, 2010 at 10:17 AM, Oleg Burlaca <ol...@burlaca.com> wrote:
> Hello,
>
> I've searched the list for this kind of error but never find one that is
> similar to my case:
>
> Java HotSpot(TM) Client VM warning:
> Exception java.lang.OutOfMemoryError occurred dispatching signal
> SIGTERM to handler- the VM may need to be forcibly terminated
>
>
> I use the latest stable SOLR 1.4 and start it with Jetty from the /example/
> folder.
>
> Sometimes SOLR dies without writing to the stderrout.log
> (I use the script from http://wiki.apache.org/solr/SolrJetty)
>
> The messages above appears in the standard error stream instead of the log
> file. (i.e. it appears directly in the SSH window).
>
> I've set:
> <New class="org.mortbay.thread.BoundedThreadPool">
> <Set name="minThreads">2</Set>
> <Set name="lowThreads">2</Set>
> <Set name="maxThreads">2</Set>
> </New>
>
> Is there a way to solve this? SOLR is on a VPS with 512MB of RAM.
>
> Regards,
> Oleg Burlaca
>