Skip to content

fix(compose): raise keycloak memory limit to stop OOM crash loop - #4843

Open
repudi8or wants to merge 1 commit into
block:mainfrom
repudi8or:fix/keycloak-oom-memory-limit
Open

fix(compose): raise keycloak memory limit to stop OOM crash loop#4843
repudi8or wants to merge 1 commit into
block:mainfrom
repudi8or:fix/keycloak-oom-memory-limit

Conversation

@repudi8or

Copy link
Copy Markdown

Summary

  • buzz-keycloak was OOM-killed (137) during Keycloak 26's config build-and-exit step before the JVM even finished booting, causing an indefinite restart loop (263+ restarts observed on a long-running dev box)
  • Root cause: deploy.resources.limits.memory: 512m is too tight for Keycloak 26 in start-dev mode
  • Raised the limit to 2g; steady-state usage after boot is ~1.1GiB, so this leaves real headroom under load

Test plan

  • Applied the change locally via docker compose up -d keycloak, confirmed the container starts cleanly (RestartCount=0, OOMKilled=false) and Keycloak fully initializes (master realm created, admin console listening on :8080)
  • Confirmed no other services in the compose file were affected

with a helping hand from Claude Code

512m was too tight for Keycloak 26 start-dev — it was OOM-killed
during the config build-and-exit step before the JVM finished
booting, then restarted indefinitely (263+ restarts on llm1).
Steady-state usage after boot is ~1.1GiB, so 512m/1536m both leave
too little margin under real load.

with a helping hand from Claude Code

Signed-off-by: repudi8or <repudi8or@gmail.com>
@repudi8or
repudi8or requested a review from a team as a code owner August 5, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant