Skip to content
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

can't kill java process in alpine image #450

Open
rubensayshi opened this issue Oct 21, 2020 · 1 comment
Open

can't kill java process in alpine image #450

rubensayshi opened this issue Oct 21, 2020 · 1 comment
Labels

Comments

@rubensayshi
Copy link

rubensayshi commented Oct 21, 2020

I'm drawing blanks here, we switch from adoptopenjdk/openjdk13:debian to adoptopenjdk/openjdk13:alpine, and I'm unable to kill my java process anymore ...
Both SIGTERM and SIGINT are ignored by the java process, but SIGKILL works, and SIGQUIT also actually gives a thread dump.

to exclude it being some issue with bash vs busybox sh I also installed bash on the alpine image and used that, didn't make any difference...

we do actually have a Runtime.getRuntime()::addShutdownHook registered.

note; also tested with jdk11, just to be sure

@rubensayshi
Copy link
Author

this looks mildly related; #98

but it's old ... and I'm not doing exec java ..., I'm doing java ... & and then trying to kill the pid

@karianna karianna added the bug label Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants