ElasticSearch Memory Settings

You can adjust how much memory is allocated to ElasticSearch. Increasing the memory will need to be done if your site has a large number of documents and you're noticing that the memory usage of the Elasticsearch service is hitting the maximum value that you have set. This will primarily affect the speed of the site data re-indexing.

To adjust the memory allocation:

Ensure that the web server has enough free RAM to adjust the allocation

Check in the start menu for a shortcut called 'Elastic Search Service Manager' if this is here double click it and skip to step 6 if it is not continue from step 3

On the web server, open the command prompt as an administrator

Type ‘cd c:\elasticsearch\bin’

Type ‘service.bat manager’

Click the Java tab of the ElasticSearch manager, increase the Initial Memory Pool setting to 1024 (1 GB) and the Maximum Memory Pool setting to either 2048 or 4096 (2 GB or 4 GB)

Click Apply

On the General tab, click Stop, then Start

Rerun the site search reindexing process by going to Admin > Site Search and click Re-index my site data