lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Cariens <>
Subject MMapDirectory failed to map a 23G compound index segment
Date Wed, 07 Sep 2011 16:25:37 GMT
Ahoy ahoy!

I've run into the dreaded OOM error with MMapDirectory on a 23G cfs compound
index segment file. The stack trace looks pretty much like every other trace
I've found when searching for OOM & "map failed"[1]. My configuration

Solr 1.4.1/Lucene 2.9.3 (plus
CentOS 4.9 (Final)
Linux 2.6.9-100.ELsmp x86_64 yada yada yada
Java SE (build 1.6.0_21-b06)
Hotspot 64-bit Server VM (build 17.0-b16, mixed mode)
    core file size     (blocks, -c)     0
    data seg size    (kbytes, -d)     unlimited
    file size     (blocks, -f)     unlimited
    pending signals    (-i)     1024
    max locked memory     (kbytes, -l)     32
    max memory size     (kbytes, -m)     unlimited
    open files    (-n)     256000
    pipe size     (512 bytes, -p)     8
    POSIX message queues     (bytes, -q)     819200
    stack size    (kbytes, -s)     10240
    cpu time    (seconds, -t)     unlimited
    max user processes     (-u)     1064959
    virtual memory    (kbytes, -v)     unlimited
    file locks    (-x)     unlimited

Any suggestions?

Thanks in advance,

... Map failed
 at Source)
 at Source)
 at org.apache.lucene.index.SegmentReader$CoreReaders.<init>(Unknown Source)

 at org.apache.lucene.index.SegmentReader.get(Unknown Source)
 at org.apache.lucene.index.SegmentReader.get(Unknown Source)
 at org.apache.lucene.index.DirectoryReader.<init>(Unknown Source)
 at org.apache.lucene.index.ReadOnlyDirectoryReader.<init>(Unknown Source)
 at org.apache.lucene.index.DirectoryReader$1.doBody(Unknown Source)
 at org.apache.lucene.index.SegmentInfos$
 at Source)
 at Source)
Caused by: java.lang.OutOfMemoryError: Map failed
 at Method)

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message