add bootstrap.mlockall setting to control if mlockall should be called or not
This commit is contained in:
parent
30929c3d01
commit
d0ac9087b6
|
@ -60,7 +60,9 @@ 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());
|
||||||
Natives.tryMlockall();
|
if (tuple.v1().getAsBoolean("bootstrap.mlockall", true)) {
|
||||||
|
Natives.tryMlockall();
|
||||||
|
}
|
||||||
tuple = setupJmx(tuple);
|
tuple = setupJmx(tuple);
|
||||||
|
|
||||||
NodeBuilder nodeBuilder = NodeBuilder.nodeBuilder().settings(tuple.v1()).loadConfigSettings(false);
|
NodeBuilder nodeBuilder = NodeBuilder.nodeBuilder().settings(tuple.v1()).loadConfigSettings(false);
|
||||||
|
|
Loading…
Reference in New Issue