lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Call <>
Subject Caused by: java.lang.OutOfMemoryError: Map failed
Date Fri, 07 Nov 2014 19:45:05 GMT
Hi Guys,

I’m having a problem with the MMDirectory that I don’t understand and I’m wondering
if any one else might have any insight. Our server runs many hundreds (soon to be thousands)
of indexes simultaneously, some of which a smallish (1-4M) and others are largish (1-2G).
We’re deploying on SUSE Enterprise using Java 1.7. 

Here’s the full exception: Map failed
        at org.apache.lucene.index.CompoundFileWriter.copyFile(
        at org.apache.lucene.index.CompoundFileWriter.close(
        at org.apache.lucene.index.DocumentsWriter.flush(
        at org.apache.lucene.index.IndexWriter.doFlush(
        at org.apache.lucene.index.IndexWriter.prepareCommit(
        at org.apache.lucene.index.IndexWriter.commitInternal(
        at org.apache.lucene.index.IndexWriter.commit(
        at org.apache.lucene.index.IndexWriter.commit(
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.lang.OutOfMemoryError: Map failed
        at Method)

During initial development I encountered this exception because my per-process virtual memory
wan’t ‘unlimited’. Once I changed that setting to the “unlimited’ setting, this
problem went away. Until now… 

I’ve checked the max_map_count setting and it’s good at: 65530 and I’ve checked the
per-process map count using cat /proc/<pid>/maps | wc -l and that returned around 4k
maps, well under the 65k limit. 

Does anyone have any ideas on what to check out next? I’m running out of things to try…

Many, many thanks in advance!

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

View raw message