fix(keycloak): native memory from malloc arenas trips KeycloakMemoryHigh #671

Stängd
öppnade 2026-10-11 17:31:56 +00:00 av supernaut · 0 kommentarer
Ägare

KeycloakMemoryHigh went pending again on 2026-10-11 at about 17:25 UTC, two hours after the heap fix (#666). The unit sat at 824 MB of 1 GiB.

The growth is not heap and not page cache:

  • Unit memory.stat: anon 812 MB, file 3 MB.
  • JVM pools committed 440 MB (heap 192 MB, live data 69 MB, metaspace 154 MB, code cache 72 MB).
  • 33 glibc malloc arenas held 350 MB. glibc allows 8 per core, so 32 on 4 cores.

Fix: MALLOC_ARENA_MAX=2 in the Keycloak Quadlet unit, plus a runbook note on checking the heap and native split. Branch fix/keycloak-malloc-arena.

Done when the unit settles below the 80 % alert after a day of traffic on prod.

`KeycloakMemoryHigh` went pending again on 2026-10-11 at about 17:25 UTC, two hours after the heap fix (#666). The unit sat at 824 MB of 1 GiB. The growth is not heap and not page cache: - Unit `memory.stat`: `anon` 812 MB, `file` 3 MB. - JVM pools committed 440 MB (heap 192 MB, live data 69 MB, metaspace 154 MB, code cache 72 MB). - 33 glibc malloc arenas held 350 MB. glibc allows 8 per core, so 32 on 4 cores. Fix: `MALLOC_ARENA_MAX=2` in the Keycloak Quadlet unit, plus a runbook note on checking the heap and native split. Branch `fix/keycloak-malloc-arena`. Done when the unit settles below the 80 % alert after a day of traffic on prod.
Logga in för att delta i denna konversation.
Ingen milstolpe
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#671
Ingen beskrivning angiven.