AdoptOpenJDK / AdoptOpenJDK/openjdk-docker

User provided OPENJ9_JAVA_OPTIONS env var overrides OpenJ9 SCC options

未关闭
#402 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Slim
星标
423
派生
220
PR 合并指标
30 天内没有已合并 PR

描述

https://github.com/AdoptOpenJDK/openjdk-docker/pull/338 added the ability to embed a shared-class-cache (SCC) in OpenJ9 containers. This OpenJ9 JVM feature is enabled by setting the following env var:
```
ENV OPENJ9_JAVA_OPTIONS="-Xshareclasses:name=openj9_system_scc,cacheDir=/opt/java/.scc,readonly,nonFatal"
```
However, if the user runs an OpenJ9 container image with `-e OPENJ9_JAVA_OPTIONS="..."` it may inadvertently remove the options that enable the embedded SCC.

I see two possible solutions:
1. Append the user provided options to the ones set in the container
2. Use a different env var for setting OpenJ9 options in container (for instance `JAVA_TOOL_OPTIONS` which already is used)

Attn: @bharathappali @dinogun

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。