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
- To view current usage:
- 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:
- 14.0 & 14.5: Type ‘service.bat manager’
-
15.0+: Type "elasticsearch-service.bat manager"
- Click the Java tab of the ElasticSearch manager, Initial Memory Pool setting to 1024 (1 GB) and the Maximum Memory Pool setting to 6144 (6 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
- Test to see if the search functions correctly
Related Article