Skip to content

Commit

Permalink
Remove the JDK parameter java.awt.headless=true
Browse files Browse the repository at this point in the history
There is a a lot of evidence that the parameter is set to `java.awt.headless=true` in Quarkus by default.

* Quarkus Building native Images: https://quarkus.io/guides/building-native-image) see default value for `java.awt.headless`
* quarkusio/quarkus#20565
* quarkusio/quarkus#20850

Signed-off-by: Gabriel Mainberger <[email protected]>
  • Loading branch information
Gabriel Mainberger committed Jul 1, 2024
1 parent 3c2dd87 commit ea104e0
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 @@ -269,13 +269,14 @@ extraEnv: |
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 `-Djava.awt.headless=true` is no longer required for Quarkus based Keycloak as it is set by [default](https://quarkus.io/guides/building-native-image).

#### 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 @@ -19,7 +19,6 @@ extraEnv: |
value: >-
-XX:+UseContainerSupport
-XX:MaxRAMPercentage=50.0
-Djava.awt.headless=true
-Djgroups.dns.query={{ include "keycloak.fullname" . }}-headless
database:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ extraEnv: |
value: >-
-XX:+UseContainerSupport
-XX:MaxRAMPercentage=50.0
-Djava.awt.headless=true
-Dkubeping_namespace={{ .Release.Namespace }}
-Dkubeping_label="keycloak-cluster=default"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ extraEnv: |
value: >-
-XX:+UseContainerSupport
-XX:MaxRAMPercentage=50.0
-Djava.awt.headless=true
-Djgroups.dns.query={{ include "keycloak.fullname" . }}-headless
dbchecker:
Expand Down

0 comments on commit ea104e0

Please sign in to comment.