Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd55c3d

Browse files
committed
doc disabling mlockall by default
1 parent 6c7e677 commit bd55c3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/elasticsearch/setup/installation/index.textile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ p. In order to test how many open files the process can open, start it with @-De
5555

5656
h3. Memory Settings
5757

58-
p. By default, when starting, an "mlockall":http://opengroup.org/onlinepubs/007908799/xsh/mlockall.html will be called to try and lock the process address space so it won't be swapped. For this to work, it is recommended to set both the min and max memory allocation to be the same.
58+
p. There is an option to use "mlockall":http://opengroup.org/onlinepubs/007908799/xsh/mlockall.html to try and lock the process address space so it won't be swapped. For this to work, the @bootstrap.mlockall@ should be set to @true@ and it is recommended to set both the min and max memory allocation to be the same.
5959

60-
p. In order to see if this works or not, set the @common.jna@ logging to DEBUG level. In order to disable even trying to @mlockall@, set @bootstrap.mlockall@ to @false@.
60+
p. In order to see if this works or not, set the @common.jna@ logging to DEBUG level. A solution to "Unknown mloclall error 0" can be to set @ulimit -l unlimited@.
6161

62-
p. A solution to "Unknown mloclall error 0" can be to set @ulimit -l unlimited@.
62+
p. Note, this is experimental feature, and might cause the JVM or shell session to exit if failing to allocate the memory (because not enough memory is available on the machine).
6363

6464
h2. Running As a Service
6565

0 commit comments

Comments
 (0)