-
Notifications
You must be signed in to change notification settings - Fork 236
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
User provided OPENJ9_JAVA_OPTIONS env var overrides OpenJ9 SCC options #402
Comments
Thanks for pointing it @mpirvu , I feel |
@bharathappali It would be ideal if we had a solution for this issue in the upcoming release. Thanks |
@mpirvu As I have raised a WIP PR #430 and would like to see the community to take call on the best possible resolution for the given problem. Please correct me if any of my assumptions were wrong, Thanks in advance. |
I agree with this point
I do not agree with this point. It's cumbersome for someone to lookup the container definition to see in detail what it does. In this case one would have to scan the git repo to find Is there any downside to prepend the -Xshareclasses options to whatever the user provides? In this case the user can provide her options on top of the -Xshareclasses options from the container, or even override the Xshareclasses options from the container should she chose to do so. |
I do accept its an extra effort for a user to have a test run of image to check
I might be wrong please correct me if I'm, The possible way i see is to add a startup script which reads the user provided env options and append I'm not sure if docker has any option to set a ENV at build time which considers (holds up like a placeholder) runtime setting change, I need to take a look to check if its possible to make it via docker options. |
I realize now that appending is not easily done. I'll leave the implementation up to you: either with a script or through JAVA_TOOL_OPTIONS. |
If we append SCC options how would the user override them if they needed to? |
Thanks for raising this point, the SCC option should be prepended so if the user adds the To avoid these corner cases #430 adds SCC option to |
#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:
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:
JAVA_TOOL_OPTIONS
which already is used)Attn: @bharathappali @dinogun
The text was updated successfully, but these errors were encountered: