Introduction
The latest release of the Evolve Web Platform has had the version of Elastic Search that it uses upgraded to 7.16. If this version when installed with evolve is using too much memory, then it can be reduced by changing some settings in the options file.
For these settings to take effect, the Elastic Search service needs to be uninstalled and reinstalled. While this operation does not take too long, we recommend that it is done when the evolve application is not being used or during a relatively quiet period.
Option File Changes
If the Evolve Web Platform has been installed using the default location, then you need to change the file.
The file to be changed is in the folder:
“C:\erwin\Evolve\Elasticsearch\elasticsearch-7.16.2\config”
The file required to change is called “jvm.options”
Edit this file with any text editor, but don’t set it as the default.
Locate these lines
################################################################
## IMPORTANT: JVM heap size
################################################################
After a short description you should find these lines
##
# -Xms4g
# -Xmx4g
##
Change them to the following
##
-Xms500M
-Xmx1g
##
So that whole section should look like this
################################################################
## IMPORTANT: JVM heap size
################################################################
##
## The heap size is automatically configured by Elasticsearch
## based on the available memory in your system and the roles
## each node is configured to fulfill. If specifying heap is
## required, it should be done through a file in jvm.options.d,
## and the min and max should be set to the same value. For
## example, to set the heap to 4 GB, create a new file in the
## jvm.options.d directory containing these lines:
##
-Xms500M
-Xmx1g
##
## See https://www.elastic.co/guide/en/elasticsearch/reference/7.16/heap-size.html
## for more information
##
################################################################
Save the file.
Updating the Service
1.Start the Windows Services (eg. by typing services in the windows search and clicking the application that appears)
2.Locate the “CWS.elasticsearch-service-x64” and stop it, this will also stop the “CWS.Search” service
3.Open a command prompt and navigate to the folder “C:\erwin\Evolve\Elasticsearch” assuming the default location.
In the command prompt type: UninstallService
When complete type: InstallService
4.When completed open the Windows Services application. If it did not open, refresh it, and start the “CWS.elasticsearch-service-x64” service. Wait a minute or so and start the “CWS.Search” service.
DO NOT start the “CWS.Search” first as a small amount of time is required for the Elastic Search service to initialize before search requests are made. |
5.The memory usage for the service should now be at a reasonable level.
Upgrading
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center