Skip to content

Commit 8679c3e

Browse files
Change vm.max_map_count default to 1048576 in All ES docs for version 8.16+ (#4295)
<!-- Thank you for contributing to the Elastic Docs! 🎉 Use this template to help us efficiently review your contribution. --> ## Summary <!-- Describe what your PR changes or improves. If your PR fixes an issue, link it here. If your PR does not fix an issue, describe the reason you are making the change. --> This is to address elastic/docs-content-internal#592. I am raising this as the first PR to decide the wording with docs, and ES dev / PM team. Thanks! ## Generative AI disclosure <!-- To help us ensure compliance with the Elastic open source and documentation guidelines, please answer the following: --> 1. Did you use a generative AI (GenAI) tool to assist in creating this contribution? - [ ] Yes - [x] No <!-- 2. If you answered "Yes" to the previous question, please specify the tool(s) and model(s) used (e.g., Google Gemini, OpenAI ChatGPT-4, etc.). Tool(s) and model(s) used: --> ## Preview / View ### Before PR merge [deploy-manage/deploy/self-managed/vm-max-map-count.md](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4295/deploy-manage/deploy/self-managed/vm-max-map-count) ### After PR merge https://www.elastic.co/docs/deploy-manage/deploy/self-managed/vm-max-map-count --------- Co-authored-by: Vlada Chirmicci <[email protected]>
1 parent c1eb036 commit 8679c3e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

deploy-manage/deploy/self-managed/vm-max-map-count.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ products:
1010

1111
# Increase virtual memory [vm-max-map-count]
1212

13-
{{es}} uses a [`mmapfs`](elasticsearch://reference/elasticsearch/index-settings/store.md#mmapfs) directory by default to store its indices. The default operating system limits on mmap counts is likely to be too low, which may result in out of memory exceptions.
13+
{{es}} uses a [`mmapfs`](elasticsearch://reference/elasticsearch/index-settings/store.md#mmapfs) directory by default to store its indices. The default operating system limits on mmap counts could be too low, which may result in out of memory exceptions.
14+
15+
:::{admonition} Verify vm.max_map_count configuration
16+
If the operating system's default `vm.max_map_count` value is `1048576` or higher, no configuration change is necessary. If the default value is lower than `1048576`, configure the `vm.max_map_count` parameter to `1048576`.
17+
:::
1418

1519
On Linux, you can increase the limits by running the following command as `root`:
1620

1721
```sh
18-
sysctl -w vm.max_map_count=262144
22+
sysctl -w vm.max_map_count=1048576
1923
```
2024

2125
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`.

0 commit comments

Comments
 (0)