-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[Bug]: Service does not start on Windows with OpenJDK #19141
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingv3.6.0Issues and PRs related to version 3.6.0Issues and PRs related to version 3.6.0
Description
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:
- Install OpenJDK 21 (https://api.adoptium.net/v3/binary/version/jdk-21.0.8+9/windows/x64/jdk/hotspot/normal/eclipse)
- Download & Install Opensearch for Windows
- Goto Opensearch installation directory & run
bin/opensearch-service.bat install& then start the servicebin/opensearch-service.bat start - 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingv3.6.0Issues and PRs related to version 3.6.0Issues and PRs related to version 3.6.0
Type
Projects
Status
✅ Done