Disable calling mlockall by default, can be enabled by setting bootstrap.mlockall to `true`, closes #567.

This commit is contained in:
kimchy 2010-12-19 02:30:48 +02:00
parent 415bb5d7f3
commit 96a2950ab5
1 changed files with 1 additions and 1 deletions

View File

@ -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);