~/talk

Memory Matters: Troubleshooting 9 Types of OutOfMemoryError

Talkat jPrime 2024 · 2024-05-28..05-29· [java]
links:none on file
slides:none on file

Claims that there are nine types of OutOfMemoryError with distinct causes and fixes, demonstrates reproducible failures (map grow memory leak, metaspace class generator, huge direct ByteBuffer and thread-spawning storm) and shows diagnostics that work: enable GC log + heap dump and use jcmd/jmap, Eclipse MAT or EEP/OOM analyzers to find the largest object (one demo shows a class holding 99.96% of heap), capture thread dumps (jstack/FastThread) for a 1,859-thread leak versus normal 300–400, and check kernel OOM kills; examples reliably reproduce the specific OOMs.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:54Java process memory beyond XMX
  3. 6:29Causes of OutOfMemoryError
  4. 9:00Java heap space error
  5. 14:27Diagnosing memory leaks
  6. 23:43GC overhead limit exceeded
  7. 24:24Requested array size exceeds VM limit
  8. 26:55Metaspace OutOfMemoryError
  9. 32:20PermGen space error
  10. 33:03Unable to create native threads
  11. 38:43Direct buffer memory error
  12. 40:58Kernel kills Java process
  13. 44:08Native memory exhaustion
  14. 44:53Q&A and closing
~/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.