Lucene - Core
  1. Lucene - Core
  2. LUCENE-2376

java.lang.OutOfMemoryError:Java heap space

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.9.1
    • Fix Version/s: None
    • Component/s: core/index
    • Labels:
      None
    • Environment:

      Windows

    • Lucene Fields:
      New

      Description

      I see an OutOfMemory error in our product and it is happening when we have some data objects on which we built the index. I see the following OutOfmemory error, this is happening after we call Indexwriter.optimize():

      4/06/10 02:03:42.160 PM PDT [ERROR] Lucene Merge Thread #12 In thread Lucene Merge Thread #12 and the message is org.apache.lucene.index.MergePolicy$MergeException: java.lang.OutOfMemoryError: Java heap space
      4/06/10 02:03:42.207 PM PDT [VERBOSE] Lucene Merge Thread #12 [Manager] Uncaught Exception in thread Lucene Merge Thread #12
      org.apache.lucene.index.MergePolicy$MergeException: java.lang.OutOfMemoryError: Java heap space
      at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:351)
      at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:315)
      Caused by: java.lang.OutOfMemoryError: Java heap space
      at java.util.HashMap.resize(HashMap.java:462)
      at java.util.HashMap.addEntry(HashMap.java:755)
      at java.util.HashMap.put(HashMap.java:385)
      at org.apache.lucene.index.FieldInfos.addInternal(FieldInfos.java:256)
      at org.apache.lucene.index.FieldInfos.read(FieldInfos.java:366)
      at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:71)
      at org.apache.lucene.index.SegmentReader$CoreReaders.<init>(SegmentReader.java:116)
      at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:638)
      at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:608)
      at org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:686)
      at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4979)
      at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4614)
      at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:235)
      at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:291)
      4/06/10 02:03:42.895 PM PDT [ERROR] this writer hit an OutOfMemoryError; cannot complete optimize

      1. InfoStreamOutput.txt
        2.77 MB
        Shivender Devarakonda
      2. CheckIndex_PermGenSpaceOOM.txt
        12 kB
        Shivender Devarakonda
      3. CheckIndex_JavaHeapOOM.txt
        9 kB
        Shivender Devarakonda

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Shivender Devarakonda
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development