java.lang.OutOfMemoryError: Java heap space

GitHub | attibalazs | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 673#245847766

    GitHub | 8 months ago | attibalazs
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    Android : Bitmaps transmitted as String causing out of memory errors

    Stack Overflow | 1 year ago | We are Borg
    java.lang.OutOfMemoryError: Failed to allocate a 13176356 byte allocation with 370616 free bytes and 361KB until OOM
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Hi, While indexing my document pool, I am having this issue. My document pool is huge, 2015 TREC CDS dataset (about 21gb). After running indexer for about 20+ hours, it reached to the limit I guess. I am attaching the error message below. Am I able to run indexer several times on the same document pool? continuing from where the indexer stopped previously? Or is there a way of "divide and conquer" and then merge the results at the end? === error message ==== java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:68) at java.lang.StringBuilder.<init>(StringBuilder.java:101) at org.terrier.indexing.tokenisation.EnglishTokeniser$EnglishTokenStream.next(EnglishTokeniser.java:114) at org.terrier.indexing.tokenisation.EnglishTokeniser$EnglishTokenStream.next(EnglishTokeniser.java:77) at org.terrier.indexing.SimpleXMLCollection$XMLDocument.doText(SimpleXMLCollection.java:239) at org.terrier.indexing.SimpleXMLCollection$XMLDocument.doNode(SimpleXMLCollection.java:158) at org.terrier.indexing.SimpleXMLCollection$XMLDocument.doRecursive(SimpleXMLCollection.java:126) at org.terrier.indexing.SimpleXMLCollection$XMLDocument.doNode(SimpleXMLCollection.java:148) at org.terrier.indexing.SimpleXMLCollection$XMLDocument.doRecursive(SimpleXMLCollection.java:126) at org.terrier.indexing.SimpleXMLCollection$XMLDocument.<init>(SimpleXMLCollection.java:95) at org.terrier.indexing.SimpleXMLCollection.findDocumentElement(SimpleXMLCollection.java:529) at org.terrier.indexing.SimpleXMLCollection.findDocumentElement(SimpleXMLCollection.java:539) at org.terrier.indexing.SimpleXMLCollection.openNextFile(SimpleXMLCollection.java:609) at org.terrier.indexing.SimpleXMLCollection.nextDocument(SimpleXMLCollection.java:508) at org.terrier.structures.indexing.classical.BasicIndexer.createDirectIndex(BasicIndexer.java:241) at org.terrier.structures.indexing.Indexer.index(Indexer.java:348) at org.terrier.applications.TRECIndexing.index(TRECIndexing.java:154) at org.terrier.applications.TrecTerrier.run(TrecTerrier.java:389) at org.terrier.applications.TrecTerrier.applyOptions(TrecTerrier.java:584) at org.terrier.applications.TrecTerrier.main(TrecTerrier.java:229)

    JIRA | 2 months ago | Jiho Noh
    java.lang.OutOfMemoryError: Java heap space

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at java.lang.AbstractStringBuilder.<init>()
    2. Java RT
      StringBuilder.<init>
      1. java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:68)
      2. java.lang.StringBuilder.<init>(StringBuilder.java:101)
      2 frames
    3. Jackson-core
      UTF8StreamJsonParser.getText
      1. com.fasterxml.jackson.core.util.TextBuffer.contentsAsString(TextBuffer.java:346)
      2. com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishAndReturnString(UTF8StreamJsonParser.java:2415)
      3. com.fasterxml.jackson.core.json.UTF8StreamJsonParser.getText(UTF8StreamJsonParser.java:285)
      3 frames
    4. ElasticSearch
      GetResponse.getSource
      1. org.elasticsearch.common.xcontent.json.JsonXContentParser.text(JsonXContentParser.java:84)
      2. org.elasticsearch.common.xcontent.support.AbstractXContentParser.readValue(AbstractXContentParser.java:299)
      3. org.elasticsearch.common.xcontent.support.AbstractXContentParser.readMap(AbstractXContentParser.java:274)
      4. org.elasticsearch.common.xcontent.support.AbstractXContentParser.readValue(AbstractXContentParser.java:314)
      5. org.elasticsearch.common.xcontent.support.AbstractXContentParser.readMap(AbstractXContentParser.java:274)
      6. org.elasticsearch.common.xcontent.support.AbstractXContentParser.readMap(AbstractXContentParser.java:245)
      7. org.elasticsearch.common.xcontent.support.AbstractXContentParser.map(AbstractXContentParser.java:208)
      8. org.elasticsearch.common.xcontent.XContentHelper.convertToMap(XContentHelper.java:83)
      9. org.elasticsearch.search.lookup.SourceLookup.sourceAsMapAndType(SourceLookup.java:88)
      10. org.elasticsearch.search.lookup.SourceLookup.sourceAsMap(SourceLookup.java:92)
      11. org.elasticsearch.index.get.GetResult.sourceAsMap(GetResult.java:177)
      12. org.elasticsearch.index.get.GetResult.getSource(GetResult.java:182)
      13. org.elasticsearch.action.get.GetResponse.getSource(GetResponse.java:133)
      13 frames
    5. org.codelibs.fess
      IndexUpdater.run
      1. org.codelibs.fess.crawler.service.impl.AbstractCrawlerService.get(AbstractCrawlerService.java:308)
      2. org.codelibs.fess.crawler.service.impl.EsDataService.getAccessResult(EsDataService.java:76)
      3. org.codelibs.fess.crawler.entity.EsAccessResult.getAccessResultData(EsAccessResult.java:77)
      4. org.codelibs.fess.indexer.IndexUpdater.processAccessResults(IndexUpdater.java:346)
      5. org.codelibs.fess.indexer.IndexUpdater.run(IndexUpdater.java:230)
      5 frames