lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Benjamen" <>
Subject SEVERE: java.lang.OutOfMemoryError: Java heap space
Date Mon, 28 Jan 2008 22:44:25 GMT
We're now running several solr instances on quad-cores and getting fairly good RPS even on

the largest index (26MM documents) after implementing faceted queries. Things are looking
except for this OutOfMemoryError which occurs every 2 hrs at peak. 
Note: I have browsed, searched the forums for this error and followed the most common advice
increasing the memory allocation for the JVM:
/usr/bin/java  -DSTOP.PORT=8805 -DSTOP.KEY=solrstop -Xmx3584M -Xms1024M -jar start.jar
I have also reduced the autowarmcounts to 100 from 2000. Still, after running a couple of
hrs or
so solr/ping returns 500 error with (see below)  the error in the log. We're running on jetty
the index size is 3.7Gb with 26MM documents. I don't see this error in other solr instances
have an index of 1.3Gb and 8MM docs (those simply hang, which is another topic, but it's more
I could allocate more physical memory, but I can't seem to increase the -Xmx option to 3800
I get 
an error : "Could not reserve enough space for object heap", even though I have more than
4Gb free.
(We're running on Intel quad core 64bit) When I try strace I'm seeing mmap2 errors.
So, question which comes to mind - can this problem be solved otherwise? I'm sure others have
larger indexes than this. What other settings can I tweak to get rid of this error... I'm
currently running 
a healthcheck and simply restart the solr instance when I get a 500 error on the solr/ping.
But this is 
ugly and bad for cache... Any ideas?

Thanks in advance!
Jan 24, 2008 3:25:44 PM org.apache.solr.core.SolrException log
SEVERE: java.lang.OutOfMemoryError: Java heap space
        at org.apache.solr.util.OpenBitSet.clone(
        at org.apache.solr.request.StandardRequestHandler.handleRequestBody(
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(
        at org.apache.solr.core.SolrCore.execute(
        at org.apache.solr.servlet.SolrDispatchFilter.execute(
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
        at org.mortbay.jetty.servlet.ServletHandler.handle(
        at org.mortbay.jetty.servlet.SessionHandler.handle(
        at org.mortbay.jetty.handler.ContextHandler.handle(
        at org.mortbay.jetty.webapp.WebAppContext.handle(
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(
        at org.mortbay.jetty.handler.HandlerCollection.handle(
        at org.mortbay.jetty.handler.HandlerWrapper.handle(
        at org.mortbay.jetty.Server.handle(
        at org.mortbay.jetty.HttpConnection.handleRequest(
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
        at org.mortbay.jetty.HttpParser.parseNext(
        at org.mortbay.jetty.HttpParser.parseAvailable(
        at org.mortbay.jetty.HttpConnection.handle(
        at org.mortbay.thread.BoundedThreadPool$


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message