heap-memorykeycloakjvm-arguments

How to change keycloak jvm arguments via CLI in standalone configuration


Is there any way to change JVM arguments via command line interface? I connected CLI using /opt/keycloak/bin/jboss-cli.sh -c controller=127.0.0.1:9990 but couldn't set the JVM arguments. I could see via ps -aef | grep keycloak default heap size and max heap size is -Xms64m -Xmx512m.


Solution

  • You can set in standalone.conf or set environment variable JAVA_OPTS before calling standalone.sh. But be aware that it will overwrite all default settings.