You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jack Krupansky (JIRA)" <ji...@apache.org> on 2012/05/29 06:18:23 UTC

[jira] [Commented] (LUCENE-4081) JVM outOfMemory when call IndexWriter.optimize() method

    [ https://issues.apache.org/jira/browse/LUCENE-4081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284610#comment-13284610 ] 

Jack Krupansky commented on LUCENE-4081:
----------------------------------------

Doesn't sound like a bug. Take the issue over to the user mailing list for assistance.

You probably just need more JVM memory.

                
> JVM outOfMemory when call IndexWriter.optimize() method
> -------------------------------------------------------
>
>                 Key: LUCENE-4081
>                 URL: https://issues.apache.org/jira/browse/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(SegmentMergeInfo.java:44)
>         at org.apache.lucene.index.SegmentMerger.appendPostings(SegmentMerger.java:343)
>         at org.apache.lucene.index.SegmentMerger.mergeTermInfo(SegmentMerger.java:315)
>         at org.apache.lucene.index.SegmentMerger.mergeTermInfos(SegmentMerger.java:289)
>         at org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:253)
>         at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:96)
>         at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:1489)
>         at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:900)
>         at com.papcic.epcis.epciscommon.intqry.biz.service.impl.AhsPolicyIndexGeneratorPojoService.generateIndexBatch(AhsPolicyIndexGeneratorPojoService.java:372)
>         at com.papcic.epcis.epciscommon.intqry.biz.service.impl.AhsPolicyIndexGeneratorPojoService.generateAHSPolicyIndex(AhsPolicyIndexGeneratorPojoService.java:196)
>         at com.papcic.epcis.epciscommon.intqry.biz.service.impl.PolicyIndexJobPojoService.generatePolicyIndex(PolicyIndexJobPojoService.java:68)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org