Before reporting an issue
Area
dist/quarkus
Describe the bug
Forked from #45459 (comment).
We run keycloak in our CI pipelines as a JAR (not in a container) using the Keycloak start script. We had inadvertently set a max heap of 256m via JAVA_OPTS globally on CI, but keycloak functions fine under this limit on pre-25.6 versions. After upgrading to 26.5.1, Keycloak started OOMing dugin startup. This was resolved by increasing the memory limit to 512m, so it was not a significant increase in absolute terms.
PS: I saw mention of #45498, but trying to disable swagger-ui via feature toggles did not work and threw errors about not recognizing that feature. What is the correct way to do this?
Version
26.5.1
Regression
Expected behavior
Keycloak's memory consumption during startup is not significantly increased.
Actual behavior
Keycloak's memory consumption increased enough we had to bump the max heap from 256m to 512m.
How to Reproduce?
Run the 26.5.1 JAR via the start script with a max heap of 256m. We do have some custom plugins so I'm not 100% it will reproduce.
Anything else?
Our installed plugin string is agroal, cdi, hibernate-orm, hibernate-validator, jdbc-postgresql, keycloak, narayana-jta, opentelemetry, reactive-routes, rest, rest-jackson, smallrye-context-propagation, smallrye-openapi, swagger-ui, vertx.
Before reporting an issue
Area
dist/quarkus
Describe the bug
Forked from #45459 (comment).
We run keycloak in our CI pipelines as a JAR (not in a container) using the Keycloak start script. We had inadvertently set a max heap of 256m via JAVA_OPTS globally on CI, but keycloak functions fine under this limit on pre-25.6 versions. After upgrading to 26.5.1, Keycloak started OOMing dugin startup. This was resolved by increasing the memory limit to 512m, so it was not a significant increase in absolute terms.
PS: I saw mention of #45498, but trying to disable
swagger-uivia feature toggles did not work and threw errors about not recognizing that feature. What is the correct way to do this?Version
26.5.1
Regression
Expected behavior
Keycloak's memory consumption during startup is not significantly increased.
Actual behavior
Keycloak's memory consumption increased enough we had to bump the max heap from 256m to 512m.
How to Reproduce?
Run the 26.5.1 JAR via the start script with a max heap of 256m. We do have some custom plugins so I'm not 100% it will reproduce.
Anything else?
Our installed plugin string is
agroal, cdi, hibernate-orm, hibernate-validator, jdbc-postgresql, keycloak, narayana-jta, opentelemetry, reactive-routes, rest, rest-jackson, smallrye-context-propagation, smallrye-openapi, swagger-ui, vertx.