~/talk

Who Ate My RAM?

TalkinPolishat JDD 2019 · 2019-10-14..10-15· [java]
links:none on file
slides:none on file

Analysis of a JVM out-of-memory crash showing that memory reserved outside -Xmx (thread stacks, metaspace, code cache, direct buffers, mmaped files and C library anonymous mappings) can cause os::commit_memory failures. Reproduction uses parent/child JVMs with Xms=Xmx and -XX:+AlwaysPreTouch to force page faults so the kernel OOMs; diagnosis uses jcmd VM.native_memory, /proc/<pid>/smaps, pmap, strace and dmesg. Recommended fixes are to avoid pretouch or reduce native reservations and thread stack sizes.

AI-written summary · about

  1. 0:00Introduction
  2. 4:22OS basics
  3. 13:15Memory allocation
  4. 24:20JVM memory layout
  5. 31:56VM behavior
  6. 37:56Memory analysis tools
  7. 40:06Parent-child processes
  8. 42:17Summary
~/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.