-
Notifications
You must be signed in to change notification settings - Fork 3k
Increase Keycloak container memory limit by 500MB #47340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase Keycloak container memory limit by 500MB #47340
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I have also experienced OOM when running unit tests in OIDC extension. +1 but 1250M is a lot, let's hope someone finds a time and investigate this.
Status for workflow
|
|
🎊 PR Preview 75b67ec has been successfully built and deployed to https://quarkus-pr-main-47340-preview.surge.sh/version/main/guides/
|
Status for workflow
|
| Status | Name | Step | Failures | Logs | Raw logs | Build scan |
|---|---|---|---|---|---|---|
| ✔️ | JVM Integration Tests - JDK 17 | Logs | Raw logs | 🔍 | ||
| ✖ | JVM Integration Tests - JDK 17 Windows | Build |
Failures | Logs | Raw logs | 🔍 |
| ✔️ | JVM Integration Tests - JDK 21 | Logs | Raw logs | 🔍 |
You can consult the Develocity build scans.
Failures
⚙️ JVM Integration Tests - JDK 17 Windows #
- Failing: integration-tests/oidc-wiremock-logout
📦 integration-tests/oidc-wiremock-logout
✖ Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.5.2:test (default-test) on project quarkus-integration-test-oidc-wiremock-logout:
See D:\a\quarkus\quarkus\integration-tests\oidc-wiremock-logout\target\surefire-reports for the individual test results.
See dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
There was an error in the forked process
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sberyozkin I'm ok to increase the limit for now, and I'll check it further. Thanks!
|
Thanks, one of the integration tests fails on Windows during the docker environment checks, I'll tune it separately |

Fixes #47102.
The current Keycloak container memory limit was designed to support running it in constrained environments, but unfortunately it causes side-effects, with no obvious logic.
For example, on my laptop I've never heard any issues with the
750 MBlimit.On my new laptop, which has twice as much memory and disk storage compared to the old laptop, it fails.
Users who have reported the side-effect before, confirmed 1.2 GB is sufficient for a case with the custom realm, and it works on my laptop.
I propose to increase it now and for Keycloak experts, @mabartos, and others, to investigate further.
I'm not sure about setting
JAVA_OPTS_KC_HEAP="-XX:MaxRAMPercentage=50 -XX:MinRAMPercentage=50"by default without further analysis