# 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.<br>

   <figure><img src="/files/jlv6yrHYwQQSlEC1Rts4" alt=""><figcaption></figcaption></figure>
2. Extract the package to the preferred installation path.<br>

   <figure><img src="/files/bAi2OOvTo59SLeEBxvZM" alt=""><figcaption></figcaption></figure>
3. For example, extract the package to the following location: `C:\Program Files\elasticsearch-9.3.x`&#x20;

### 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:

   ```
   C:\Program Files\elasticsearch-9.3.x-windows-x86_64\elasticsearch-9.3.x\bin
   ```

   \
   Sample Reference Screenshot:
4. 1\.&#x20;

   <figure><img src="/files/Xe6xfe3aYMfNQl1KM3a0" alt=""><figcaption></figcaption></figure>
5. Run the following command to install Elasticsearch as a Windows service:

   ```
   elasticsearch-service.bat install
   ```

   \
   Sample Reference Screenshot:

   <figure><img src="/files/jZ0OJcNT3ysjYxafHNGS" alt=""><figcaption></figcaption></figure>

### 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.<br>

   <figure><img src="/files/wHkMMxZ7HygpfhnCxFX9" alt=""><figcaption></figcaption></figure>

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:<br>

      <figure><img src="/files/G8c3hF63Y0J5B6Gd48PC" alt=""><figcaption></figcaption></figure>

### Configure Elasticsearch Settings

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

   ```
   C:\Program Files\elasticsearch-9.3.x-windows-x86_64\elasticsearch-9.3.x\config\elasticsearch.yml
   ```

2. Add the following configuration parameters:

   ```
   cluster.name: ovaledge
   network.host: 0.0.0.0
   transport.host: 127.0.0.1
   http.host: 0.0.0.0
   xpack.security.enabled: true
   ```

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

   <figure><img src="/files/WGXV1jLx4LsH2mWg44eA" alt=""><figcaption></figcaption></figure>

### 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:

   ```
   elasticsearch-setup-passwords.bat interactive
   ```

   \
   Sample Reference Screenshot:

   <figure><img src="/files/wHbhslboDV8gkejqgpiI" alt=""><figcaption></figcaption></figure>
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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ovaledge.com/release8.1/deployment-and-maintenance/installation/elasticsearch-9.3.x-on-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
