~/talk

How to Troubleshoot 9 Types of OutOfMemoryError

Talkat XtremeJ 2025 · on Tuesday, 2025-11-25· [java]
links:none on file
slides:none on file

Nine distinct OutOfMemoryError types map to specific JVM regions and require different fixes: ~80% are heap (Java heap/ESpace) leaks diagnosed by GC log + heap dump and fixed by code changes or XMX increases for traffic spikes; metaspace/PermGen needs maxMetaspaceSize or PermGen tuning; thread, code cache, direct buffer and native-JNI failures need thread dumps, code cache settings, or native diagnostics. Use tools like GCE/GC analysis, Eclipse MAT or YCrash2, and enable the onOutOfMemoryError auto-capture script to collect artifacts at failure; read the text after the colon in the exception to know the subtype.

AI-written summary · about

  1. 0:00Introduction to OutOfMemoryError
  2. 1:18JVM memory model explained
  3. 5:55Java heap space errors
  4. 8:47Demo of memory leak
  5. 10:51Diagnosing error types
  6. 12:16GC logs for memory leaks
  7. 15:25Heap dump analysis
  8. 20:23Fixing Java heap errors
  9. 21:26Other OOM error types overview
  10. 22:47Capturing data on OOM
~/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.