~/talk

Calibrating JVM on K8s

Talkat Devoxx Poland 2021 · 2021-08-25..08-27· [java, kubernetes]
links:none on file
slides:none on file

Java 8 is not container-aware but Java 10+ honors cgroup limits and Java 11 can use CPU quota; until fixed JVM can pick a huge Xmx and trigger swapping or OOM. Uses JConsole to measure heap vs non‑heap (example demo shows ~80% heap on a dev Mac), recommends set heap to ~60% of node RAM and bump max‑RAM‑percent if needed. Kubernetes maps 1000 millicores ≈ 1024 CPU shares; CPU request drives scheduling, avoid CPU limits, set requests from real measurements, and set memory limit ~10–25% above request to avoid evictions.

AI-written summary · about

  1. 0:00Introduction and context
  2. 4:04OS resource fundamentals
  3. 9:27JVM memory and CPU management
  4. 18:16Containerization mechanics
  5. 23:12Java container awareness
  6. 27:57Kubernetes resource tuning
  7. 38:11Empirical calibration demo
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.