--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/2452a851-3fb5-46d9-9600-7540f3dde592n%40googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/81b98d66-7642-4061-8676-b10e1fdd4e1an%40googlegroups.com.
Thank you both for you replies.Regarding allocating more space to the heap, my impression was that the -XX:+UseContainerSupport combined with -XX:MaxRAMPercentage=100 and -XX:MinRAMPercentage=100 would force JVM to use all of the pod's available RAM. I did also try setting -Xms2048m and -Xmx2560m. Neither set of options increased the RAM used by the JVM from the value seen above (1.21GiB).
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/40f42f63-4b7b-4ae9-84ab-d1e0eb6caf98n%40googlegroups.com.
That would also be my guess. JAVA_OPTS is not picked up by the JVM directly, it is just passed as a command line parameter when the jvm is started in the docker-entrypoint.sh. You need to be sure your additions to JAVA_OPTS are really in the environment of the process. In our case, we modified the docker image to actually do a
“source our_script_where_java_opts_get_modified.sh” instead of it being run in a sub-shell with a different environment.
More specifically, we are doing this in our derived Keycloak image:
# patch autorun script so it sources our startup script instead of running it in another bash
# this way we can add environment variables
sed -i -e 's/^\([ ]*\)\("$f"\)$/\1. \2/g' /opt/jboss/tools/autorun.sh
sed -i -e 's/\/opt\/jboss\/tools\/autorun.sh/. &/g' /opt/jboss/tools/docker-entrypoint.sh
I know it’s a dirty hack, but it works. ;)
Best regards,
Sebastian
Mit freundlichen Grüßen / Best regards
Dr.-Ing. Sebastian Schuster
Project Delivery Berlin 22 (IOC/PDL22)
Bosch.IO GmbH | Ullsteinstr. 128 | 12109 Berlin |
GERMANY | www.bosch.io
Tel. +49 30 726112-485 | Mobil +49 152 02177668 | Telefax +49 30 726112-100 |
Sebastian...@bosch.io
Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B
Aufsichtsratsvorsitzender: Dr.-Ing. Thorsten Lücke; Geschäftsführung: Dr. Stefan Ferber, Dr. Aleksandar Mitrovic, Yvonne Reckling
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/2935946F-9A72-4E3F-826F-B8620946BA83%40gmail.com.
