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
{{ message }}
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.
quick summary is running JVMs as pid1 in dockerfiles cause problems -- search for Caused by: com.sun.tools.attach.AttachNotSupportedException: Unable to get pid of LinuxThreads manager thread at sun.tools.attach.LinuxVirtualMachine.<init>(LinuxVirtualMachine.java:86) to see examples
The text was updated successfully, but these errors were encountered:
Here's some more analysis I did internally on the stacktrace:
Caused by: com.sun.tools.attach.AttachNotSupportedException: Unable to get pid of LinuxThreads manager thread
at sun.tools.attach.LinuxVirtualMachine.<init>(LinuxVirtualMachine.java:86)
... 64 more
The reason PID1 is important is that there's a bug in the JRE that doesn't correctly handle the JRE being pid1 (and having more child processes than expected).
Any method that eventually calls sun.tools.attach.LinuxVirtualMachine.<init> triggers this code path and causes an exception, and the ALPN injection calls this as well as some other JVM cli tools like jmap and jstack.
https://github.com/krallin/tini
quick summary is running JVMs as pid1 in dockerfiles cause problems -- search for
Caused by: com.sun.tools.attach.AttachNotSupportedException: Unable to get pid of LinuxThreads manager thread at sun.tools.attach.LinuxVirtualMachine.<init>(LinuxVirtualMachine.java:86)
to see examplesThe text was updated successfully, but these errors were encountered: