Issues running agent in OpenJ9 Java runtime provided by IBM Semuru

Questions about YourKit Java Profiler
Post Reply
itsnagaraj
Posts: 3
Joined: Sun Aug 28, 2022 10:52 am

Issues running agent in OpenJ9 Java runtime provided by IBM Semuru

Post by itsnagaraj »

I am having issues running yourkit profiler in openj9 java 11 runtime provided by IBM Semuru

Java runtime

Code: Select all

Eclipse OpenJ9 VM 11.0.14.1 (build openj9-0.30.1, JRE 11 Linux aarch64-64-Bit Compressed References 20220210_329 (JIT enabled, AOT enabled)
OpenJ9   - 9dccbe076
OMR      - 56c3376ba
JCL      - 5c423dacd0 based on jdk-11.0.14.1+1)
Yorkit profiler

Code: Select all

YourKit-JavaProfiler-2022.3-b107
OS

Code: Select all

Linux a25996a26f43 5.15.57-0-virt #1-Alpine SMP Fri, 29 Jul 2022 07:15:20 +0000 aarch64 GNU/Linux
I start the JVM by running the following command

Code: Select all

java -agentpath:"/opt/java/lib/libyjpagent.so"
Error message that I see is

Code: Select all

JVMJ9TI001E Agent library /opt/java/lib/libyjpagent.so could not be opened (/opt/java/lib/libyjpagent.so: cannot open shared object file: No such file or directory)
JVMJ9VM015W Initialization error for library j9jvmti29(-3): JVMJ9VM009E J9VMDllMain failed
Any help with fixing the issue is much appreciated.
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: Issues running agent in OpenJ9 Java runtime provided by IBM Semuru

Post by Vladimir Kondratyev »

Is your OS Alpine linux aarch64?

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
itsnagaraj
Posts: 3
Joined: Sun Aug 28, 2022 10:52 am

Re: Issues running agent in OpenJ9 Java runtime provided by IBM Semuru

Post by itsnagaraj »

Yes.This is the base image I use https://hub.docker.com/layers/library/i ... jre-focal/

Code: Select all

ibm-semeru-runtimes:open-11.0.14.1_1-jre-focal
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: Issues running agent in OpenJ9 Java runtime provided by IBM Semuru

Post by Vladimir Kondratyev »

YourKit Java Profiler 2022.3 does not support Alpine linux on aarch64 architectured (only x64 is supported). You need to install compatibiluty libraries to make libc apps work on musl.

The upcoming version 2022.9 will support aarch64 natively. The EAP starts in a few days, so stay tuned.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
itsnagaraj
Posts: 3
Joined: Sun Aug 28, 2022 10:52 am

Re: Issues running agent in OpenJ9 Java runtime provided by IBM Semuru

Post by itsnagaraj »

Will wait for next release to test this out
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: Issues running agent in OpenJ9 Java runtime provided by IBM Semuru

Post by Vladimir Kondratyev »

We have just started EAP for v2022.9 https://www.yourkit.com/eap/
This version support Alpine Linux on arm64 artitecture. Please give it a try, and report the problems if any.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Post Reply