2016-04-03 10:09:24 -04:00
|
|
|
[[vm-max-map-count]]
|
|
|
|
=== Virtual memory
|
|
|
|
|
2017-07-31 03:52:38 -04:00
|
|
|
Elasticsearch uses a <<default_fs,`mmapfs`>> directory by
|
2017-07-31 03:56:06 -04:00
|
|
|
default to store its indices. The default operating system limits on mmap
|
2016-04-03 10:09:24 -04:00
|
|
|
counts is likely to be too low, which may result in out of memory exceptions.
|
|
|
|
|
|
|
|
On Linux, you can increase the limits by running the following command as
|
|
|
|
`root`:
|
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
-------------------------------------
|
|
|
|
sysctl -w vm.max_map_count=262144
|
|
|
|
-------------------------------------
|
|
|
|
|
|
|
|
To set this value permanently, update the `vm.max_map_count` setting in
|
|
|
|
`/etc/sysctl.conf`. To verify after rebooting, run `sysctl vm.max_map_count`.
|
|
|
|
|
|
|
|
The RPM and Debian packages will configure this setting automatically. No
|
|
|
|
further configuration is required.
|