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
Hi everyone, I was following the guide in [1], however, when attaching the usdt it fails with the error:
libbpf: usdt: no USDT notes section (.note.stapsdt) found in '/usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so'
Which I believe to be caused by not having dtrace enabled in the JVM, however, I can not find any guide/tutorial to enabling it.
Sorry for the unrelated question to eBPF, but did you enable anything to run java USDT? or use a specific java version?
@lcxjy @sebastiaoamaro
USDT requires JDK support (set --enable-dtrace when compiling the JVM)
To determine whether the current JDK supports USDT, enter the following command
readelf -n /path/to/openjdk/lib/server/libjvm.so
If it does, the following message will be displayed, otherwise, it means that the current JDK does not support USDT.
Hi everyone, I was following the guide in [1], however, when attaching the usdt it fails with the error:
Which I believe to be caused by not having dtrace enabled in the JVM, however, I can not find any guide/tutorial to enabling it.
Sorry for the unrelated question to eBPF, but did you enable anything to run java USDT? or use a specific java version?
Thanks in advance.
[1]https://github.com/eunomia-bpf/bpf-developer-tutorial/tree/main/src/15-javagc
The text was updated successfully, but these errors were encountered: