Java Heap Space

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Java Heap Space

Vallejos, Andrew

My 0.95 development rat mine keeps returning the following error when trying to do a quick search:

 

SEVERE: Servlet.service() for servlet action threw exception

java.lang.OutOfMemoryError: Java heap space

        at org.apache.lucene.index.SegmentReader$Norm.bytes(SegmentReader.java:463)

        at org.apache.lucene.index.SegmentReader.getNorms(SegmentReader.java:1017)

        at org.apache.lucene.index.SegmentReader.norms(SegmentReader.java:1024)

        at org.apache.lucene.index.FilterIndexReader.norms(FilterIndexReader.java:188)

        at org.apache.lucene.search.TermQuery$TermWeight.scorer(TermQuery.java:79)

        at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:306)

        at com.browseengine.bobo.search.BoboSearcher2.search(BoboSearcher2.java:255)

        at com.browseengine.bobo.api.BoboSubBrowser.browse(BoboSubBrowser.java:353)

        at com.browseengine.bobo.api.MultiBoboBrowser.browse(MultiBoboBrowser.java:101)

        at com.browseengine.bobo.api.MultiBoboBrowser.browse(MultiBoboBrowser.java:83)

        at com.browseengine.bobo.api.MultiBoboBrowser.browse(MultiBoboBrowser.java:58)

        at com.browseengine.bobo.api.MultiBoboBrowser.browse(MultiBoboBrowser.java:171)

        at org.intermine.web.search.KeywordSearch.runBrowseSearch(KeywordSearch.java:1337)

        at org.intermine.web.struts.KeywordSearchResultsController.execute(KeywordSearchResultsController.java:186)

        at org.apache.struts.tiles.actions.TilesAction.execute(TilesAction.java:75)

        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)

        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)

        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)

        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)

        at org.apache.struts.tiles.UrlController.execute(UrlController.java:91)

        at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:873)

        at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)

        at org.apache.jsp.layout_jsp._jspx_meth_tiles_005fget_005f1(layout_jsp.java:1392)

        at org.apache.jsp.layout_jsp._jspService(layout_jsp.java:300)

        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

 

 

 

======================

Andrew Vallejos

Web Developer II

Biotechnology and Bioengineering Center

Medical College of Wisconsin

414-955-4104

[hidden email]


_______________________________________________
dev mailing list
[hidden email]
http://mail.intermine.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Java Heap Space

Richard Smith
Hi Andrew,
Lucene requires quite a lot of memory to initialise the search index
before it can be used.  How much memory do you have tomcat configured
to use?

We aren't able to do searches on our desktops most of the time if we're
pointing at a full FlyMine database build.

Thanks,
Richard.


On 14/02/2011 21:07, Vallejos, Andrew wrote:

> My 0.95 development rat mine keeps returning the following error when
> trying to do a quick search:
>
>
>
> SEVERE: Servlet.service() for servlet action threw exception
>
> java.lang.OutOfMemoryError: Java heap space
>
>          at
> org.apache.lucene.index.SegmentReader$Norm.bytes(SegmentReader.java:463)
>
>          at
> org.apache.lucene.index.SegmentReader.getNorms(SegmentReader.java:1017)
>
>          at
> org.apache.lucene.index.SegmentReader.norms(SegmentReader.java:1024)
>
>          at
> org.apache.lucene.index.FilterIndexReader.norms(FilterIndexReader.java:1
> 88)
>
>          at
> org.apache.lucene.search.TermQuery$TermWeight.scorer(TermQuery.java:79)
>
>          at
> org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.
> java:306)
>
>          at
> com.browseengine.bobo.search.BoboSearcher2.search(BoboSearcher2.java:255
> )
>
>          at
> com.browseengine.bobo.api.BoboSubBrowser.browse(BoboSubBrowser.java:353)
>
>          at
> com.browseengine.bobo.api.MultiBoboBrowser.browse(MultiBoboBrowser.java:
> 101)
>
>          at
> com.browseengine.bobo.api.MultiBoboBrowser.browse(MultiBoboBrowser.java:
> 83)
>
>          at
> com.browseengine.bobo.api.MultiBoboBrowser.browse(MultiBoboBrowser.java:
> 58)
>
>          at
> com.browseengine.bobo.api.MultiBoboBrowser.browse(MultiBoboBrowser.java:
> 171)
>
>          at
> org.intermine.web.search.KeywordSearch.runBrowseSearch(KeywordSearch.jav
> a:1337)
>
>          at
> org.intermine.web.struts.KeywordSearchResultsController.execute(KeywordS
> earchResultsController.java:186)
>
>          at
> org.apache.struts.tiles.actions.TilesAction.execute(TilesAction.java:75)
>
>          at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
> ocessor.java:421)
>
>          at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> 226)
>
>          at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>
>          at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>
>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>
>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
>          at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:290)
>
>          at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:206)
>
>          at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
> her.java:630)
>
>          at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
> atcher.java:535)
>
>          at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
> cher.java:472)
>
>          at
> org.apache.struts.tiles.UrlController.execute(UrlController.java:91)
>
>          at
> org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa
> g.java:873)
>
>          at
> org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
>
>          at
> org.apache.jsp.layout_jsp._jspx_meth_tiles_005fget_005f1(layout_jsp.java
> :1392)
>
>          at org.apache.jsp.layout_jsp._jspService(layout_jsp.java:300)
>
>          at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>
>
>
>
>
>
>
> ======================
>
> Andrew Vallejos
>
> Web Developer II
>
> Biotechnology and Bioengineering Center
>
> Medical College of Wisconsin
>
> 414-955-4104
>
> [hidden email]
>
>
>
>
>
> _______________________________________________
> dev mailing list
> [hidden email]
> http://mail.intermine.org/cgi-bin/mailman/listinfo/dev


_______________________________________________
dev mailing list
[hidden email]
http://mail.intermine.org/cgi-bin/mailman/listinfo/dev