Skip to content

[Bug]: Service does not start on Windows with OpenJDK #19141

@krishy91

Description

@krishy91

Describe the bug

From Opensearch 3, there was -javaagent option added to the jvm.options. With this option, on Windows (with Adoptium OpenJDK installed), the opensearch service doesnot start. But interstingly it works with the Mircosoft OpenJDK.

To reproduce

Steps to Reproduce:

  1. Install OpenJDK 21 (https://api.adoptium.net/v3/binary/version/jdk-21.0.8+9/windows/x64/jdk/hotspot/normal/eclipse)
  2. Download & Install Opensearch for Windows
  3. Goto Opensearch installation directory & run
    bin/opensearch-service.bat install & then start the service bin/opensearch-service.bat start
  4. Above fails. But if we remove the -javagent from jvm.options & add agent/*.jar to classpath Opensearch starts

Expected behavior

No response

Screenshots

If applicable, add screenshots to help explain your problem.

Host / Environment

No response

Additional context

No response

Relevant log output

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv3.6.0Issues and PRs related to version 3.6.0

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions