Skip to content

Commit

Permalink
Remove Keycloak JDK UseContainerSupport parameter
Browse files Browse the repository at this point in the history
The parameter `-XX:+UseContainerSupport` is no longer required for Keycloak >= v21 based on JDK v17.
JDK >= v17 has enabled the container support by default.

Signed-off-by: Gabriel Mainberger <[email protected]>
  • Loading branch information
Gabriel Mainberger committed Jul 1, 2024
1 parent 3c2dd87 commit f7cf2fd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion charts/keycloakx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,18 @@ This allows you to only configure memory using Kubernetes resources and the JVM
extraEnv: |
- name: JAVA_OPTS
value: >-
-XX:+UseContainerSupport
-XX:MaxRAMPercentage=50.0
-Djava.awt.headless=true
```
Alternatively one can append custom JVM options by setting the `JAVA_OPTS_APPEND` environment variable.


The parameter `-Djava.net.preferIPv4Stack=true` is [optional](https://github.com/keycloak/keycloak/commit/ee205c8fbc1846f679bd604fa8d25310c117c87e) for [Keycloak >= v22](https://www.keycloak.org/server/configuration-production#_configure_keycloak_server_with_ipv4_or_ipv6).

The parameter `-XX:+UseContainerSupport` is no longer required for [Keycloak >= v21 based on JDK v17](https://github.com/keycloak/keycloak/blob/release/21.0/quarkus/container/Dockerfile#L20).


#### Using an External Database

The Keycloak Docker image supports various database types.
Expand Down
1 change: 0 additions & 1 deletion charts/keycloakx/ci/h2-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ extraEnv: |
key: password
- name: JAVA_OPTS_APPEND
value: >-
-XX:+UseContainerSupport
-XX:MaxRAMPercentage=50.0
-Djava.awt.headless=true
-Djgroups.dns.query={{ include "keycloak.fullname" . }}-headless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extraEnv: |
key: password
- name: JAVA_OPTS_APPEND
value: >-
-XX:+UseContainerSupport
-XX:MaxRAMPercentage=50.0
-Djava.awt.headless=true
-Dkubeping_namespace={{ .Release.Namespace }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ extraEnv: |
key: password
- name: JAVA_OPTS_APPEND
value: >-
-XX:+UseContainerSupport
-XX:MaxRAMPercentage=50.0
-Djava.awt.headless=true
-Djgroups.dns.query={{ include "keycloak.fullname" . }}-headless
Expand Down

0 comments on commit f7cf2fd

Please sign in to comment.