How to resolve the event viewer error received while trying to start the Elastic Search service from Services.msc as it stops automatically, specifically with version 7.7.0 and throws error in event viewer : "Elastic.ProcessHosts.Process.StartupException: Could not evaluate jvm.options" ?
After installing Elastic Search, when trying to start the service, it starts and stops a moment later and sometime fails to start.
Error logged in Event Viewer:
Service cannot be started. Elastic.ProcessHosts.Process.StartupException: Could not evaluate jvm.options file: C:\ProgramData\Elastic\Elasticsearch\config\jvm.options result: Exception in thread "main" java.nio.file.NoSuchFileException: C:\ProgramData\Elastic\Elasticsearch\config\jvm.options\jvm.options
This happens when the service is not able to locate the file called jvm.options in the desired directory.
Work - Around:
- Create a new folder in C:\ProgramData\Elastic\Elasticsearch\config: jvm.options_
- Move the file jvm.options [which would be present at C:\ProgramData\Elastic\Elasticsearch\config location] into the newly created folder jvm.options_
- Rename folder jvm.options_ to jvm.options.
Elastic Search Version : 7.7.0
Read more on