Updating production guide about how to change network stack setting
Closes #15925
This commit is contained in:
parent
0c4ac62a5f
commit
1ed81fa377
1 changed files with 5 additions and 3 deletions
|
@ -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"
|
||||
----
|
||||
|
||||
</@tmpl.guide>
|
||||
Note that when setting the `JAVA_OPTS` you are replacing the default JVM settings. Make sure to adjust them accordingly to your need.
|
||||
|
||||
</@tmpl.guide>
|
Loading…
Reference in a new issue