You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ java -version
openjdk version "21.0.4" 2024-07-16 LTS
IBM Semeru Runtime Open Edition 21.0.4.1 (build 21.0.4+7-LTS)
Eclipse OpenJ9 VM 21.0.4.1 (build openj9-0.46.1, JRE 21 Mac OS X aarch64-64-Bit 20240716_258 (JIT enabled, AOT enabled)
OpenJ9 - 4760d5d320
OMR - 840a9adba
JCL - db3fffb417c based on jdk-21.0.4+7)
Some executions of this java on the system path work fine but when trying to start OpenLiberty, Semeru hangs indefinitely; however, if I add the JDK to PATH explicitly using export PATH=/Library/Java/JavaVirtualMachines/ibm-semeru-open-21.jdk/Contents/Home/bin/:${PATH}, then it works fine, so this issue seems to be something about the Semeru pkg installation of /usr/bin/java in the system.
Create OpenLiberty server (note that this is a Java execution which works fine):
$ wlp/bin/server create server1
Server server1 created.
Start OpenLiberty Server:
$ wlp/bin/server start server1
Both Java processes are hung indefinitely. Open a new Terminal tab to find the PIDs (the one with --status:start is the Java process trying to start the actual OpenLiberty Java server process):
Adding the Semeru installation to PATH fixes the issue:
$ export PATH=/Library/Java/JavaVirtualMachines/ibm-semeru-open-21.jdk/Contents/Home/bin/:${PATH}
$ java -version
openjdk version "21.0.4" 2024-07-16 LTS
IBM Semeru Runtime Open Edition 21.0.4.1 (build 21.0.4+7-LTS)
Eclipse OpenJ9 VM 21.0.4.1 (build openj9-0.46.1, JRE 21 Mac OS X aarch64-64-Bit 20240716_258 (JIT enabled, AOT enabled)
OpenJ9 - 4760d5d320
OMR - 840a9adba
JCL - db3fffb417c based on jdk-21.0.4+7)
$ bin/server start server1
Starting server server1.
Server server1 started with process ID 37560.
kill -3 works as expected:
$ kill -3 37560
$ ls usr/servers/server1/javacore*
usr/servers/server1/javacore.20241118.122039.37560.0001.txt
macOS version:
$ system_profiler SPSoftwareDataType SPHardwareDataType | grep -v -e UUID -e UDID -e 'User Name' -e 'Computer Name' -e Serial
Software:
System Software Overview:
System Version: macOS 14.6.1 (23G93)
Kernel Version: Darwin 23.6.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Secure Virtual Memory: Enabled
System Integrity Protection: Disabled
Time since boot: 2 hours, 46 minutes
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: Mac14,10
Model Number: Z1740017JLL/A
Chip: Apple M2 Pro
Total Number of Cores: 12 (8 performance and 4 efficiency)
Memory: 32 GB
System Firmware Version: 10151.140.19
OS Loader Version: 10151.140.19
Activation Lock Status: Disabled
The text was updated successfully, but these errors were encountered:
Semeru is installed using the
pkg
download of the JDK from https://developer.ibm.com/languages/java/semeru-runtimes/downloads/?version=21&os=macOSSome executions of this
java
on the system path work fine but when trying to start OpenLiberty, Semeru hangs indefinitely; however, if I add the JDK toPATH
explicitly usingexport PATH=/Library/Java/JavaVirtualMachines/ibm-semeru-open-21.jdk/Contents/Home/bin/:${PATH}
, then it works fine, so this issue seems to be something about the Semerupkg
installation of/usr/bin/java
in the system.Reproduction steps:
pkg
version of the JDK: https://developer.ibm.com/languages/java/semeru-runtimes/downloads/?version=21&os=macOSTerminal
and ensure thatjava
points to/usr/bin/java
:--status:start
is the Java process trying to start the actual OpenLiberty Java server process):kill -3
to the OpenLiberty server process (without--status:start
):wlp/usr/servers/server1
but there's no javacore:kill -3
to the other process and it core dumps in the other Terminal tab:PATH
fixes the issue:kill -3
works as expected:macOS version:
The text was updated successfully, but these errors were encountered: