lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Fehling <bernd.fehl...@uni-bielefeld.de>
Subject howto run CheckIndex on huge index size
Date Wed, 15 Aug 2012 11:24:39 GMT

I'm trying to run CheckIndex as seperate tool on a large index to get
nice infos about number of terms, number of tokens, ... but always get OOM exception.

Already have JAVA_OPTS -d64 -Xmx25g -Xms25g -Xmn6g


Any idea how to use CheckIndex on huge index size?



Opening index @ /srv/www/solr/solr/solrserver/solr/data/index
Segments file=segments_5u numSegments=1 version=3.6.1 format=FORMAT_3_1 [Lucene 3.1+]
  1 of 1: name=_2rhe docCount=37821132
    compound=false
    hasProx=true
    numFiles=8
    size (MB)=182.992,35
    diagnostics = {mergeFactor=1, os.version=2.6.32.23-0.3-xen, os=Linux, lucene.version=3.6.1-SNAPSHOT
1325634 - solr - 2012-04-13 14:08:0
6, source=merge, os.arch=amd64, mergeMaxNumSegments=1, java.version=1.6.0_29, java.vendor=Sun
Microsystems Inc.}
    no deletions
    test: open reader.........FAILED
    WARNING: fixIndex() would remove reference to this segment; full exception:
java.io.IOException: Map failed
        at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:748)
        at org.apache.lucene.store.MMapDirectory$MMapIndexInput.<init>(MMapDirectory.java:271)
        at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:221)
        at org.apache.lucene.index.TermInfosReader.<init>(TermInfosReader.java:104)
        at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:83)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:116)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:94)
        at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:523)
        at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:1064)
Caused by: java.lang.OutOfMemoryError: Map failed
        at sun.nio.ch.FileChannelImpl.map0(Native Method)
        at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:745)
        ... 8 more
WARNING: 1 broken segments (containing 37821132 documents) detected
WARNING: would write new segments file, and 37821132 documents would be lost, if -fix were
specified



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


Mime
View raw message