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