Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4144

OOM when call optimize

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The index file is about 6G, when i update the index, it can work good, but i hit a OOM when call the method optimize
      Caused by: java.lang.OutOfMemoryError: allocLargeObjectOrArray - Object size: 969048, Num elements: 242258
      at org.apache.lucene.index.TermInfosReader.ensureIndexIsRead(TermInfosReader.java:90)
      at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:133)
      at org.apache.lucene.index.SegmentTermDocs.seek(SegmentTermDocs.java:51)
      at org.apache.lucene.index.IndexReader.termDocs(IndexReader.java:482)
      at org.apache.lucene.index.IndexReader.deleteDocuments(IndexReader.java:573)
      at org.apache.lucene.index.IndexWriter.applyDeletes(IndexWriter.java:1776)
      at org.apache.lucene.index.IndexWriter.maybeApplyDeletes(IndexWriter.java:1670)
      at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:1521)
      at org.apache.lucene.index.IndexWriter.flushRamSegments(IndexWriter.java:1351)
      at org.apache.lucene.index.IndexWriter.maybeFlushRamSegments(IndexWriter.java:1344)
      at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:763)
      at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:743)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sunzheng04 Zhenglin Sun
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: