Skip to content

[Fix] Remove ARM-specific JVM options from Elasticsearch configuration#191

Merged
JonnyTran merged 2 commits intoExtralit:developfrom
AnshulPatil2005:deployment-docker
Feb 12, 2026
Merged

[Fix] Remove ARM-specific JVM options from Elasticsearch configuration#191
JonnyTran merged 2 commits intoExtralit:developfrom
AnshulPatil2005:deployment-docker

Conversation

@AnshulPatil2005
Copy link
Contributor

PR Title:

[Fix] Remove ARM-specific JVM options from Elasticsearch configuration

Description

This PR fixes the Elasticsearch container startup failure on Windows/x86 systems by removing ARM-specific JVM options that are not compatible with x86 architectures.

The -XX:UseSVE=0 JVM flag (which disables ARM's Scalable Vector Extension) was causing the following error on Windows and x86 Linux systems:
Unrecognized VM option 'UseSVE=0'
Error: Could not create the Java Virtual Machine.

This makes it work on all system architectures.

Related Tickets & Documents

Closes #187

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Steps to QA

  1. On a Windows or x86 Linux system, run docker-compose down to stop existing containers(if not already deployed)
  2. Run docker-compose up -d elasticsearch to start Elasticsearch(can also run whole app but check for elasticsearch errors)
  3. Check logs docker logs extralit-elasticsearch-1
  4. Verify Elasticsearch starts successfully without JVM errors
  5. also test on ARM-based systems (Apple Silicon, AWS Graviton) to ensure compatibility is maintained

Added/updated tests?

  • Yes
  • No, and this is why: docker doesnt require tests
  • I need help with writing tests

Added/updated documentations?

  • Yes
  • No, and this is why: bug fix in docker file(no docs needed)
  • I need help with writing docs

Checklist

@AnshulPatil2005 AnshulPatil2005 requested a review from a team as a code owner February 9, 2026 22:14
@JonnyTran JonnyTran requested review from Copilot and removed request for a team February 12, 2026 23:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes an ARM-specific JVM flag from the root docker-compose.yaml Elasticsearch service to prevent JVM startup failure on Windows/x86 hosts, and records the fix in the server changelog for the upcoming release.

Changes:

  • Removed -XX:UseSVE=0 from Elasticsearch JVM options in docker-compose.yaml.
  • Added a corresponding entry to extralit-server/CHANGELOG.md under Fixed.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
extralit-server/CHANGELOG.md Documents the Elasticsearch startup fix for Windows/x86 in the Unreleased changelog.
docker-compose.yaml Removes the incompatible ARM-only JVM option from Elasticsearch environment configuration.

@JonnyTran JonnyTran merged commit 060daa3 into Extralit:develop Feb 12, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG-python/deployment]Elasticsearch fails to start on Windows/x86 due to ARM-specific JVM option

2 participants

Comments