fix(keycloak): cap glibc malloc arenas at two #672

Sammanfogat
supernaut sammanfogade 1 incheckning från fix/keycloak-malloc-arena in i main 2026-10-11 17:36:36 +00:00
Ägare

Closes #671

Set MALLOC_ARENA_MAX=2 in the Keycloak Quadlet unit. glibc's default of 8 arenas per core let 33 arenas hold 350 MB of native memory on prod, outside the 440 MB the JVM pools commit. That kept KeycloakMemoryHigh firing after #666.

The runbook gets a "Keycloak native memory" note with the check for the heap and native split. The alert text now says to run that check before raising the cap.

Apply restarts Keycloak once (template change). Verify after a day: unit memory below 80 % of MemoryMax, and few 64 MiB-aligned anonymous regions in the java process.

Closes #671 Set `MALLOC_ARENA_MAX=2` in the Keycloak Quadlet unit. glibc's default of 8 arenas per core let 33 arenas hold 350 MB of native memory on prod, outside the 440 MB the JVM pools commit. That kept `KeycloakMemoryHigh` firing after #666. The runbook gets a "Keycloak native memory" note with the check for the heap and native split. The alert text now says to run that check before raising the cap. Apply restarts Keycloak once (template change). Verify after a day: unit memory below 80 % of `MemoryMax`, and few 64 MiB-aligned anonymous regions in the java process.
supernaut lade till 1 incheckning 2026-10-11 17:34:08 +00:00
fix(keycloak): cap glibc malloc arenas at two
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m57s
90f34802b9
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-11 17:35:40 +00:00
supernaut sammanfogade incheckning d5ac181a4f till main 2026-10-11 17:36:36 +00:00
supernaut tog bort grenen fix/keycloak-malloc-arena 2026-10-11 17:36:36 +00:00
supernaut refererade denna ändringsförfrågan från en incheckning 2026-10-11 17:36:38 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!672
Ingen beskrivning angiven.