Skip to content

Elasticsearch 8.15 fails to start on Windows with bootstrap.memory_lock #111847

@cstack89

Description

@cstack89

Elasticsearch Version

8.15

Installed Plugins

No response

Java Version

bundled

OS Version

Windows Server 2019

Problem Description

When Elasticsearch is installed on Windows 2019 with bootstrap.memory_lock it fails to load with the error.

AssertionError: java.lang.invoke.WrongMethodTypeException: handle's method type (MemorySegment,long,long)MemorySegment but found (MemorySegment,MemorySegment,long,long)boolean
at org.elasticsearch.nativeaccess.jdk.JdkKernel32Library.SetProcessWorkingSetSize(JdkKernel32Library.java:228) elasticsearch-native-8.15.0.jar

Steps to Reproduce

Install Elasticsearch on Windows and set bootstrap.memory_lock to true.

Logs (if relevant)

AssertionError: java.lang.invoke.WrongMethodTypeException: handle's method type (MemorySegment,long,long)MemorySegment but found (MemorySegment,MemorySegment,long,long)boolean
at org.elasticsearch.nativeaccess.jdk.JdkKernel32Library.SetProcessWorkingSetSize(JdkKernel32Library.java:228) elasticsearch-native-8.15.0.jar

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions