~/talk

OOMs!... I did it again

Talkat GeeCON 2024 · 2024-05-15..05-17· [java]
links:none on file
slides:none on file

Explains concrete diagnostics and fixes: use always pre-touch to avoid late RSS surprises; inspect proc maps, JFR and run jcmd nmt for native-memory breakdown (NMT omits RSS); profile retained native allocations with the async-profiler branch; set container JVMs with Xms = Xmx and matching CPU request/limit; reduce Netty arenas and run malloc_trim periodically (default 0) to shrink RSS. Practical numbers: default maxDirectMemory equals heap (recommend maxDirectMemory=128m), and packing 64 flags into a HashSet can jump from 8 bytes to ~5.7KB — measure live set via heap dump before resizing.

AI-written summary · about

  1. 0:00Introduction and speaker bio
  2. 1:34Process memory basics
  3. 7:01JVM memory regions
  4. 11:21Out of memory errors overview
  5. 15:38JVM in containers
  6. 20:42Direct memory deep dive
  7. 24:58Native memory and NIO
  8. 28:56Java heap and GC fundamentals
  9. 37:32Heap sizing and optimization
  10. 45:19Summary and Q&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.