Configuring OpenSearch heap sizes when using multiple indexes
If your OpenSearch instance uses multiple indexes, increase the value for its initial and maximum heap sizes (which both default to 1 gigabyte).
Procedure
OpenSearch initial and maximum heap sizes are set to 1 gigabyte by default. If your OpenSearch instance uses multiple indexes, make these values higher by doing one of the following:
- Consult the OpenSearch documentation at https://opensearch.org/docs/latest/install-and-configure/install-opensearch/index/#important-settings to learn how to configure these properties as environment variables, and then set them to your higher values.
- In the config/ subdirectory of OpenSearch, in the file jvm.options, add the following lines:
where BIGGERHEAPSIZE is the bigger heap size you want to use.-XmsBIGGERHEAPSIZE -XmxBIGGERHEAPSIZE