Disable calling mlockall by default, can be enabled by setting bootstrap.mlockall to `true`, closes #567.
This commit is contained in:
parent
415bb5d7f3
commit
96a2950ab5
|
@ -60,7 +60,7 @@ public class Bootstrap {
|
||||||
|
|
||||||
private void setup(boolean addShutdownHook, Tuple<Settings, Environment> tuple) throws Exception {
|
private void setup(boolean addShutdownHook, Tuple<Settings, Environment> tuple) throws Exception {
|
||||||
// Loggers.getLogger(Bootstrap.class, tuple.v1().get("name")).info("heap_size {}/{}", JvmStats.jvmStats().mem().heapCommitted(), JvmInfo.jvmInfo().mem().heapMax());
|
// Loggers.getLogger(Bootstrap.class, tuple.v1().get("name")).info("heap_size {}/{}", JvmStats.jvmStats().mem().heapCommitted(), JvmInfo.jvmInfo().mem().heapMax());
|
||||||
if (tuple.v1().getAsBoolean("bootstrap.mlockall", true)) {
|
if (tuple.v1().getAsBoolean("bootstrap.mlockall", false)) {
|
||||||
Natives.tryMlockall();
|
Natives.tryMlockall();
|
||||||
}
|
}
|
||||||
tuple = setupJmx(tuple);
|
tuple = setupJmx(tuple);
|
||||||
|
|
Loading…
Reference in New Issue