Your cache sizes are still much too large. I wouldn't expect the changes you outlined to change anything. And your autowarm sizes are still far too big. The default sizes are 512 and 0 for size and autowarm counts. Try those. In fact, Solr will happily function (admittedly with slower queries) if the cache sizes are 0 so a quick experiment would be to set them to, say, 128 and 16 and see if the problem goes away.
Here's a test. Look at the admin cache pages, you can find the cache statistics, including the number of entries in each. My bet is that you'll see one of them get to size X (say 5,000) and soon after hit your OOM. I've seen this exact scenario play out a little differently. The caches were very large but during the day indexing happened often enough to invalidate them so they never grew. Then at night the indexing would stop but queries kept happening and the caches grew and BOOM, OOM errors. Best Erick On Thu, Jun 6, 2013 at 6:55 AM, Varsha Rani <varsha.ya...@orkash.com> wrote: > Hi Stavros, > > I checked it with batchSize=-1, But still the same issue. > > > As my single mlt query is : > > > > http://machine_ip:8983/solr/News/mlt?q=field1:34358471&qt=/mlt&mlt.match.include=true&mlt=true&mlt.mindf=1&mlt.mintf=1&mlt.minwl=3&mlt.boost=true&fq=cat:"News" > AND date:[1362222644000 TO 1362827444000] AND -category:"General" > &mlt.qf=field2^2&mlt.fl=field3&mlt.count=30&start=0&fl=field1,field2,field3,field4,field5,field6,field7,field8,field9,field10&sort=score > desc&rows=50&wt=xml&version=2.2 > > Exception i faced is : > > > org.apache.solr.client.solrj.SolrServerException: Error executing query > at > org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:96) > at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:113) > at org.orkash.automatic.mltdetector.main(mltdetector.java:212) > Caused by: org.apache.solr.common.SolrException: Error in > xpath:/config/luceneMatchVersion for solrconfig.xml > org.apache.solr.common.SolrException: Error in > xpath:/config/luceneMatchVersion for solrconfig.xml at > org.apache.solr.core.Config.getNode(Config.java:197) at > org.apache.solr.core.Config.getVal(Config.java:202) at > org.apache.solr.core.Config.getLuceneVersion(Config.java:271) at > org.apache.solr.search.SolrQueryParser.<init>(SolrQueryParser.java:70) at > org.apache.solr.search.SolrQueryParser.<init>(SolrQueryParser.java:66) at > org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:68) > at > org.apache.solr.search.QParser.getQuery(QParser.java:143) at > org.apache.solr.handler.MoreLikeThisHandler.handleRequestBody(MoreLikeThisHandler.java:95) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1298) at > org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:340) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) > at > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) > at > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:326) at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) > at > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) > at org.mortbay.jetty.HttpParser.parseNext(HttpPa > > Error in xpath:/config/luceneMatchVersion for solrconfig.xml > org.apache.solr.common.SolrException: Error in > xpath:/config/luceneMatchVersion for solrconfig.xml at > org.apache.solr.core.Config.getNode(Config.java:197) at > org.apache.solr.core.Config.getVal(Config.java:202) at > org.apache.solr.core.Config.getLuceneVersion(Config.java:271) at > org.apache.solr.search.SolrQueryParser.<init>(SolrQueryParser.java:70) at > org.apache.solr.search.SolrQueryParser.<init>(SolrQueryParser.java:66) at > org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:68) > at > org.apache.solr.search.QParser.getQuery(QParser.java:143) at > org.apache.solr.handler.MoreLikeThisHandler.handleRequestBody(MoreLikeThisHandler.java:95) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1298) at > org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:340) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) > at > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) > at > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:326) at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) > at > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) > at org.mortbay.jetty.HttpParser.parseNext(HttpPa > > request: > http://machine_ip:8983/solr/News/mlt?q=field1:34358471&qt=/mlt&mlt.match.include=true&mlt=true&mlt.mindf=1&mlt.mintf=1&mlt.minwl=3&mlt.boost=true&fq=cat:"News" > AND date:[1362222644000 TO 1362827444000] AND -category:"General" > &mlt.qf=field2^2&mlt.fl=field3&mlt.count=30&start=0&fl=field1,field2,field3,field4,field5,field6,field7,field8,field9,field10&sort=score > desc&rows=50&wt=xml&version=2.2 > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:425) > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:242) > at > org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:90) > ... 2 more > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Heap-space-problem-with-mlt-query-tp4068278p4068555.html > Sent from the Solr - User mailing list archive at Nabble.com.