Skip to content

Increase in startup memory consumption in post 26.5 versions #45662

@rnett

Description

@rnett

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

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

  • The issue is a 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions