Elasticsearch 9.3.x on Windows
Was this helpful?
This article describes the steps to install and configure Elasticsearch 9.3.x on a Windows machine for use with OvalEdge applications. It includes the required prerequisites, service configuration, JVM heap settings, authentication setup, and service startup instructions. Follow the steps in the order provided to ensure a successful installation.
Before starting the installation, ensure the following prerequisites are met:
Install Java 21.
Obtain the Elasticsearch 9.3.x installation package from the OvalEdge team.
Ensure local administrator access is available on the Windows machine.
Ensure sufficient system memory is available to allocate a 4 GB heap to Elasticsearch.
Download the Elasticsearch 9.3.x package provided by the OvalEdge team.

Extract the package to the preferred installation path.

For example, extract the package to the following location: C:\Program Files\elasticsearch-9.3.x
Open Command Prompt as an administrator.
Navigate to the Elasticsearch bin directory.
For example, navigate to the following location:
Sample Reference Screenshot:
1.

Run the following command to install Elasticsearch as a Windows service:
Sample Reference Screenshot:

For efficient memory allocation, configure the Elasticsearch JVM heap size to 4 GB.
Navigate to the Elasticsearch installation directory. Open the config folder, copy the jvm.options file, and paste the file into the jvm.options.d folder.

Open the copied jvm.options file from the jvm.options.d folder and search for the following parameters:
-Xms
-Xmx
If the parameters are commented, uncomment them. Update the values as follows:
-Xms4g
-Xmx4g Sample Reference Screenshot:

Open the elasticsearch.yml configuration file located at the following path:
Add the following configuration parameters:
Save the file and close the text editor.
Open the Windows Services application, locate the Elasticsearch service, and start it.

If a dedicated service account is available for OvalEdge applications or Tomcat services, Elasticsearch can run under the same account.
Open the Windows Services application.
Locate the Elasticsearch service.
Open the service properties.
Select the Log On tab.
Update the service account details.
Save the changes.
Open Command Prompt as an administrator.
Navigate to the Elasticsearch bin directory.
Run the following command:
Sample Reference Screenshot:

Provide a password for the elastic user.
Use the same password for the additional prompted users, if required.
Store the password securely for future reference.
Restart the Elasticsearch service.
Integrate Elasticsearch with OvalEdge applications.
Copyright © 2025, OvalEdge LLC, Peachtree Corners, GA, USA.
Was this helpful?
Was this helpful?
C:\Program Files\elasticsearch-9.3.x-windows-x86_64\elasticsearch-9.3.x\binelasticsearch-service.bat installC:\Program Files\elasticsearch-9.3.x-windows-x86_64\elasticsearch-9.3.x\config\elasticsearch.ymlcluster.name: ovaledge
network.host: 0.0.0.0
transport.host: 127.0.0.1
http.host: 0.0.0.0
xpack.security.enabled: trueelasticsearch-setup-passwords.bat interactive
