Elasticsearch 9.3.x on Windows

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.

Prerequisites

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 and Extract the Elasticsearch Package

  1. Download the Elasticsearch 9.3.x package provided by the OvalEdge team.

  2. Extract the package to the preferred installation path.

  3. For example, extract the package to the following location: C:\Program Files\elasticsearch-9.3.x

Install Elasticsearch as a Windows Service

  1. Open Command Prompt as an administrator.

  2. Navigate to the Elasticsearch bin directory.

  3. For example, navigate to the following location:

    Sample Reference Screenshot:

  4. 1.

  5. Run the following command to install Elasticsearch as a Windows service:

    Sample Reference Screenshot:

Configure JVM Heap Size

For efficient memory allocation, configure the Elasticsearch JVM heap size to 4 GB.

  1. 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.

  2. Open the copied jvm.options file from the jvm.options.d folder and search for the following parameters:

    1. -Xms

    2. -Xmx

  3. If the parameters are commented, uncomment them. Update the values as follows:

    1. -Xms4g

    2. -Xmx4g Sample Reference Screenshot:

Configure Elasticsearch Settings

  1. Open the elasticsearch.yml configuration file located at the following path:

  2. Add the following configuration parameters:

  3. Save the file and close the text editor.

Start the Elasticsearch Service

  1. Open the Windows Services application, locate the Elasticsearch service, and start it.

Optional: Configure the Elasticsearch Service User

If a dedicated service account is available for OvalEdge applications or Tomcat services, Elasticsearch can run under the same account.

  1. Open the Windows Services application.

  2. Locate the Elasticsearch service.

  3. Open the service properties.

  4. Select the Log On tab.

  5. Update the service account details.

  6. Save the changes.

Configure Elasticsearch Authentication

  1. Open Command Prompt as an administrator.

  2. Navigate to the Elasticsearch bin directory.

  3. Run the following command:

    Sample Reference Screenshot:

  4. Provide a password for the elastic user.

  5. Use the same password for the additional prompted users, if required.

  6. Store the password securely for future reference.

  7. Restart the Elasticsearch service.

  8. Integrate Elasticsearch with OvalEdge applications.


Copyright © 2025, OvalEdge LLC, Peachtree Corners, GA, USA.

Last updated

Was this helpful?