Skip to content

Commit

Permalink
Remove Keycloak JDK UseContainerSupport parameter (#744)
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]>
Co-authored-by: Gabriel Mainberger <[email protected]>
  • Loading branch information
megian and Gabriel Mainberger authored Jul 2, 2024
1 parent 3c2dd87 commit 1ea4e3c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion charts/keycloakx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ 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
```
Expand All @@ -276,6 +275,8 @@ Alternatively one can append custom JVM options by setting the `JAVA_OPTS_APPEND

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 1ea4e3c

Please sign in to comment.