~/talk

Cures for OOMKills, Warm-ups, and Slowness in JVM Containers

TalkinFrenchat Devoxx France 2022 · 2022-04-20..04-22· [java, web-performance]
links:none on file
links:none on file
slides:none on file

Explains why JVM containers suffer OOMKills and slow startups due to off‑heap native memory (direct buffers, metaspace, native arenas, threads, file mmaps) increasing RSS, and recommends first increasing container memory then instrumenting with Native Memory Tracking (jcmd vm.native_memory), /proc/pid/maps or pmap, and Prometheus/Grafana RSS metrics. Advises using fixed Xms=Xmx or observing RSS stabilization, capturing slow C2 compilation with jcmd/JFR/JMC (example: C2 23s vs C1 6s), and mitigating native allocator fragmentation by using tcmalloc via LD_PRELOAD to stop RSS growth.

AI-written summary · about

  1. 0:00JVM container problems
  2. 20:20Memory virtual vs RSS
  3. 49:50Native JVM monitoring
  4. 1:11:41Diagnosing OOMKills
  5. 1:35:54JVM startup with JFR
  6. 2:08:56CPU tuning in containers
  7. 2:31:47Monitoring best practices
  8. 2:38:05Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.