New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AdoptOpenJDK + OpenJ9 11 to 15 java process hanging on mac os catalina #10885
Comments
@vitorpavanelli Is the issue reproducible with any spring boot application? If not, can you provide your spring boot application for reproducing the issue? |
hi @babsingh! yes, you can go ahead and create a simple example from spring initialiser. You will notice when trying doing ctrl + c the java process won't quit. It seems whatever is waiting for the kill signal is not receiving or something got stuck. I even had this issue when running within IntelliJ IDE where I had to click twice on the stop button to actually kill the application. |
Thanks, @vitorpavanelli. We will look into this issue. fyi @dusanboskovic ^^^. |
I was able to replicate this issue on Mac and zOS |
I was able to replicate the issue on Linux and zOS using a test springboot application. Narrowed down the problem between these 2 IBM Java builds Works as expected (Nightly build June 15):
Sometimes works (Nightly build June 16)
Never works (nightly build June 18)
These are the git compare SHAs: Reverted @gacholio change: ac6141a Steps to reproduce
|
Summary: Reverting #9885 resolves the hang. |
That code has already been reverted. Current builds should work. |
Ran the test scenario with a nightly build from the 20th of October and SIGTERM was properly handled. Seems like the fix will be officially released in one of the next versions of Eclipse OpenJ9 |
JDK14 is no longer supported since it only had a 6 month support life cycle. The latest release of JDK15 replaces JDK14 and was released on 23 Sept 20. It should have the above fixes. The latest release of macOS x64 JDK 15 can be downloaded from Adopt: https://adoptopenjdk.net/archive.html?variant=openjdk15&jvmVariant=openj9. @vitorpavanelli Can you please close this issue after verifying that the latest release of JDK15 fixes the hang? |
Hi @babsingh, 15 doesn't work. I actually installed it first and then tried older versions to make sure it wasn't an issue with 15. I understand 14 it isn't supported but if there will be no fixes for 11, 12, 13 and 14 then it should be removed from download page as well. At least 11 must be supported because it LTS. Thank you for your hard work on this. |
@vitorpavanelli Can you please try the latest nightly build? The fix has not yet made it into a public release. |
Nightly builds: https://adoptopenjdk.net/nightly.html?variant=openjdk15&jvmVariant=openj9. Latest one was generated on 21 Oct 20.
LTS versions (8 & 11) will be supported along with JDK-latest. I didn't realize that the fix was not delivered to a release branch yet. |
The old unsupported JDKs (9, 12, 13 and 14) are not publicized at Adopt's home page: https://adoptopenjdk.net/index.html?variant=openjdk8&jvmVariant=openj9. Only LTS (8 & 11) and JDK-latest versions are publicized. I don't think the old unsupported JDKs will be removed. They will be retained for future reference. But, they won't be publicized at Adopt. |
I was able to access them in another manner, I don't recall where but anyway. Your fix did work. Thank you |
when can I download the release version, please? |
@pshipton When do you expect 0.23 to be available? |
I hope it will be available on Friday if nothing goes wrong, otherwise early next week. |
The 0.23 release occurred on Oct 23 with a jdk15 respin for Mac on Oct 26. Release information available here https://github.com/eclipse/openj9/releases/tag/openj9-0.23.0 |
Java -version output
openjdk version "14.0.2" 2020-07-14
OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.2+12)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.21.0, JRE 14 Mac OS X amd64-64-Bit Compressed References 20200715_143 (JIT enabled, AOT enabled)
OpenJ9 - 34cf4c0
OMR - 113e54219
JCL - 1d231bd6a2 based on jdk-14.0.2+12)
Summary of problem
I am running a spring boot application and when doing control + C or stopping the application from within IntelliJ a java process keeps hanging and I need to kill it manually. I have tried version 11, 14 and 15 and the same happens.
I have attached screenshots for reference from the terminal.
If I run OpenJDK without OpenJ9 everything works fine.
Also, it could be something similar to this one #3468
Please, can someone take a look at it?
Thank you,
Vitor
Diagnostic files
The text was updated successfully, but these errors were encountered: