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

Customizing Java options #140

Closed
iromli opened this issue Jul 22, 2020 · 2 comments
Closed

Customizing Java options #140

iromli opened this issue Jul 22, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@iromli
Copy link
Contributor

iromli commented Jul 22, 2020

Currently, Java-based container only support modifying heap size through MaxRAMPercentage option set by GLUU_MAX_RAM_PERCENTAGE environment variable. To have a full control of options passed to Java (i.e. -Xmx), we need to add ENV, i.e. GLUU_JAVA_OPTIONS.

@iromli iromli added the enhancement New feature or request label Jul 22, 2020
@iromli
Copy link
Contributor Author

iromli commented Jul 22, 2020

An example of container entrypoint:

exec java \
    -server \
    -XX:+DisableExplicitGC \
    -XX:+UseContainerSupport \
    -XX:MaxRAMPercentage=$GLUU_MAX_RAM_PERCENTAGE \
    -Dgluu.base=/etc/gluu \
    -Dserver.base=/opt/gluu/jetty/oxauth \
    -Dlog.base=/opt/gluu/jetty/oxauth \
    -Dpython.home=/opt/jython \
    -Djava.io.tmpdir=/tmp \
    $(get_debug_opt) \
    ${GLUU_JAVA_OPTIONS} \
    -jar /opt/jetty/start.jar

@moabu moabu changed the title Costumizing Java options Customizing Java options Jul 23, 2020
@iromli
Copy link
Contributor Author

iromli commented Jul 23, 2020

All Java-based images have been updated to support new env var GLUU_JAVA_OPTIONS.

@iromli iromli closed this as completed Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants