lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhenglin Sun (JIRA)" <>
Subject [jira] [Created] (LUCENE-4081) JVM outOfMemory when call IndexWriter.optimize() method
Date Tue, 29 May 2012 03:19:22 GMT
Zhenglin Sun created LUCENE-4081:

             Summary: JVM outOfMemory when call IndexWriter.optimize() method
                 Key: LUCENE-4081
             Project: Lucene - Java
          Issue Type: Bug
          Components: core/index
    Affects Versions: 2.1
         Environment: jvm 2048, jdk1.5
            Reporter: Zhenglin Sun

    I have a luccen application,while the index file has 6.3G. When I update the indexes every
night, It can update successfully, but when i call the optimize() method, there is a outOfMemory
error. The error informations are listed as follows:

Caused by: java.lang.OutOfMemoryError: allocLargeObjectOrArray - Object size: 122069080, Num
elements: 30517266
        at org.apache.lucene.index.SegmentMergeInfo.getDocMap(
        at org.apache.lucene.index.SegmentMerger.appendPostings(
        at org.apache.lucene.index.SegmentMerger.mergeTermInfo(
        at org.apache.lucene.index.SegmentMerger.mergeTermInfos(
        at org.apache.lucene.index.SegmentMerger.mergeTerms(
        at org.apache.lucene.index.SegmentMerger.merge(
        at org.apache.lucene.index.IndexWriter.mergeSegments(
        at org.apache.lucene.index.IndexWriter.optimize(

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message