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 3, 2024
1 parent 1ea4e3c commit d82dfb8
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 @@ -268,7 +268,6 @@ extraEnv: |
- name: JAVA_OPTS
value: >-
-XX:MaxRAMPercentage=50.0
-Djava.awt.headless=true
```
Alternatively one can append custom JVM options by setting the `JAVA_OPTS_APPEND` environment variable.
Expand All @@ -277,6 +276,8 @@ The parameter `-Djava.net.preferIPv4Stack=true` is [optional](https://github.com

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).

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 @@ -18,7 +18,6 @@ extraEnv: |
- name: JAVA_OPTS_APPEND
value: >-
-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 @@ -36,7 +36,6 @@ extraEnv: |
- name: JAVA_OPTS_APPEND
value: >-
-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 @@ -24,7 +24,6 @@ extraEnv: |
- name: JAVA_OPTS_APPEND
value: >-
-XX:MaxRAMPercentage=50.0
-Djava.awt.headless=true
-Djgroups.dns.query={{ include "keycloak.fullname" . }}-headless
dbchecker:
Expand Down

0 comments on commit d82dfb8

Please sign in to comment.