Lucene mmap usage config

I noticed “Make Lucene mmap usage configurable (#4283)” in the release notes but didn’t see anything in the documentation about what the configuration property was.

Hi Zach,

It’s a “hidden” feature that is undocumented, for now. Basically, if you set index.lucene.mmap=false in your stardog.properties, both search and spatial indices will not use memory mapped files.

-pedro

Just curious but why would someone want to use that? I’m guessing it’s using RAMDirectory and heap memory.

No, RAMDirectory is never used. If that option is turned off the NIOFSDirectory will be used. Someone might want to do that if the system has issues with memory mapping (sometimes containers might have that problem). We think most of the time that option should not be necessary but it is there just in case.

Best,
Evren

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.