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
Switching to liberica alpine linux-musl our docker image failed to start.
We see JDK_JAVA_OPTIONS processed twice, and it fails for options that can only be parsed once like the agentlib below.
Example:
> docker run --rm -e "JDK_JAVA_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005" bellsoft/liberica-openjdk-alpine-musl:11 java -
version
NOTE: Picked up JDK_JAVA_OPTIONS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
NOTE: Picked up JDK_JAVA_OPTIONS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.
Error occurred during initialization of VM
agent library failed to init: jdwp
Same for liberica-openjdk-alpine-musl:17.
Note: JAVA_TOOL_OPTIONS is parsed only once, but we prefer the other one because the JAVA_TOOL_OPTIONS is also used for tools like jps.
> docker run --rm -e "JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005" bellsoft/liberica-openjdk-alpine-musl:17 java -version
Picked up JAVA_TOOL_OPTIONS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
Listening for transport dt_socket at address: 5005
openjdk version "17.0.2" 2022-01-18 LTS
OpenJDK Runtime Environment (build 17.0.2+9-LTS)
OpenJDK 64-Bit Server VM (build 17.0.2+9-LTS, mixed mode)
The text was updated successfully, but these errors were encountered:
stokpop
changed the title
liberica-openjdk-alpine images pick up JDK_JAVA_OPTIONS twice, fail to start
liberica-openjdk-alpine-musl images pick up JDK_JAVA_OPTIONS twice, fail to start
Mar 12, 2022
Switching to liberica alpine linux-musl our docker image failed to start.
We see
JDK_JAVA_OPTIONS
processed twice, and it fails for options that can only be parsed once like the agentlib below.Example:
Same for liberica-openjdk-alpine-musl:17.
Note:
JAVA_TOOL_OPTIONS
is parsed only once, but we prefer the other one because theJAVA_TOOL_OPTIONS
is also used for tools likejps
.Note: using non-musl alpine seems to work fine.
Maybe related? adoptium/adoptium-support#303
The text was updated successfully, but these errors were encountered: