Note that this is not a problem (unless we don't want to use that jdk feature). It happens since java 19+: From the release notes at https://lucene.apache.org/core/9_9_2/changes/Changes.html
Add support for Java 21 foreign memory API. If Java 19 up to 21 is used, MMapDirectory will mmap Lucene indexes in chunks of 16 GiB (instead of 1 GiB) and indexes closed while queries are running can no longer crash the JVM. To disable this feature, pass the following sysprop on Java command line: "-Dorg.apache.lucene.store.MMapDirectory.enableMemorySegments=false"
See also https://github.com/apache/lucene/pull/12294 We just need to figure out how to remove the message:
- Explicitly set the system property "org.apache.lucene.store.MMapDirectory.enableMemorySegments" to "true"
- Tune the logback config to not display the info message
- ...
|