virtual-memory.asciidoc 721 B

1234567891011121314151617181920
  1. [[vm-max-map-count]]
  2. === Virtual memory
  3. Elasticsearch uses a <<default_fs,`mmapfs`>> directory by
  4. default to store its indices. The default operating system limits on mmap
  5. counts is likely to be too low, which may result in out of memory exceptions.
  6. On Linux, you can increase the limits by running the following command as
  7. `root`:
  8. [source,sh]
  9. -------------------------------------
  10. sysctl -w vm.max_map_count=262144
  11. -------------------------------------
  12. To set this value permanently, update the `vm.max_map_count` setting in
  13. `/etc/sysctl.conf`. To verify after rebooting, run `sysctl vm.max_map_count`.
  14. The RPM and Debian packages will configure this setting automatically. No
  15. further configuration is required.