fix(keycloak): cap glibc malloc arenas at two #672
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra!672
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "fix/keycloak-malloc-arena"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Closes #671
Set
MALLOC_ARENA_MAX=2in 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 keptKeycloakMemoryHighfiring 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.