diff --git a/docs/guides/src/main/server/configuration-production.adoc b/docs/guides/src/main/server/configuration-production.adoc index 8f260bd20b..2ca6d0ab42 100644 --- a/docs/guides/src/main/server/configuration-production.adoc +++ b/docs/guides/src/main/server/configuration-production.adoc @@ -44,11 +44,13 @@ By default, Keycloak is configured to prefer IPv4 addresses. In order to run wit you need to specify `java.net.preferIPv4Stack=false` (the JVM default) and `java.net.preferIPv6Addresses=true`. The latter ensures that any hostname to IP address conversions always return IPv6 address variants. -These system properties are conveniently set by the `JAVA_OPTS_APPEND` environment variable. For example, to change the IP stack preference from its default of IPv4 to IPv6, set an environment variable as follows: +These system properties are conveniently set by the `JAVA_OPTS` environment variable. For example, to change the IP stack preference from its default of IPv4 to IPv6, set an environment variable as follows: [source, bash] ---- -export JAVA_OPTS_APPEND="-Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true" +export JAVA_OPTS="-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true" ---- - +Note that when setting the `JAVA_OPTS` you are replacing the default JVM settings. Make sure to adjust them accordingly to your need. + + \ No newline at end of file