Improve error when mlockall fails (closes #6288)

This commit is contained in:
Robert Muir 2014-05-23 10:16:26 -04:00
parent 5fafd2451a
commit 2cbe9371d2
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ public class Natives {
if (errno == CLibrary.ENOMEM && System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("linux")) {
logger.warn("Unable to lock JVM memory (ENOMEM)."
+ " This can result in part of the JVM being swapped out."
+ " Increase RLIMIT_MEMLOCK or run elasticsearch as root.");
+ " Increase RLIMIT_MEMLOCK (ulimit).");
} else if (!System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("mac")) {
// OS X allows mlockall to be called, but always returns an error
logger.warn("Unknown mlockall error " + errno);