eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.27k stars 721 forks source link

OpenJ9 jvm stuck and tools all have no response #19891

Open xiangtianyu opened 1 month ago

xiangtianyu commented 1 month ago

Java -version output

openjdk version "1.8.0_345" IBM Semeru Runtime Open Edition (build 1.8.0_345-b01) Eclipse OpenJ9 VM (build openj9-0.33.1, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20220817_453 (JIT enabled, AOT enabled) OpenJ9 - https://github.com/eclipse-openj9/openj9/commit/1d9d16830f713e97410e8eeed1c350e58f34fadb OMR - b58aa2708 JCL - e361c66299 based on jdk8u345-b01)

Summary of problem

I used jvm-sandbox https://github.com/alibaba/jvm-sandbox to build my javaagent, and when i running my app and agent in k8s environment, it will stuck when starting javaagent incidentally. At this time, jtools (jstack, jcmd, jps) cannot connect to jvm, the jvm maybe down. I print some log in the code https://github.com/alibaba/jvm-sandbox/blob/c01c28ab5d7d97a64071a2aca261804c47a534[…]sandbox/core/manager/impl/DefaultCoreLoadedClassDataSource.java like this pic

image

, and the log is ended with “INFO c.a.j.s.c.m.i.DefaultCoreLoadedClassDataSource - Found class: com.sun.proxy.$Proxy30” and no more log. Is this a bug caused by openj9? Or if it’s other bug, how can i find the problem? jtools cannot use .

hangshao0 commented 1 month ago

Is this a bug caused by openj9?

Does it happen on other JVMs, like OpenJDK ?

Also I see you are using a 0.33.1 OpenJ9 build from 2022. May be worth trying on the latest release of OpenJ9.

pshipton commented 1 month ago

Also, does the same problems occur with Semeru outside of the k8s environment?

xiangtianyu commented 1 month ago

Also, does the same problems occur with Semeru outside of the k8s environment?

In tried many times in my macos, i cannot appear this problem again in the local environment

xiangtianyu commented 1 month ago

Is this a bug caused by openj9?

Does it happen on other JVMs, like OpenJDK ?

Also I see you are using a 0.33.1 OpenJ9 build from 2022. May be worth trying on the latest release of OpenJ9.

Hotspot doesnot occur so far