~/talk

Mastering JVM Memory Troubleshooting - From OutOfMemoryErrors to Leaks

Talkat JavaOne 2025 · 2025-03-18..03-20· [java, observability]
slides:none on file

Covers concrete diagnostics for Java heap, metaspace and native memory problems, with actionable steps: enable -XX:+HeapDumpOnOutOfMemoryError and Xlog:gc, collect GC logs, heap dumps and histograms via jcmd/jmap/JHSDB, analyze with MAT and JMC, and use native memory tracking (NMT) plus pmap/ps/core files to find JNI or native leaks. Shows a metaspace example rising to ~14MB then dropping to ~10MB on full GC, explains patterns (continuous growth vs spikes), and describes a RAG-based troubleshooting assistant built on OCI GenAI and LangChain that returns accurate guidance.

AI-written summary · about

  1. 0:00Introduction
  2. 0:28Session agenda
  3. 0:52JVM memory areas
  4. 3:40Identifying memory problems
  5. 6:28Understanding OOM errors
  6. 8:44Memory growth and performance
  7. 10:53Diagnosis approaches
  8. 13:15Diagnostic data collection
  9. 14:50Analyzing GC logs
  10. 16:40Visualizing GC data
  11. 20:56Collecting heap dumps
  12. 22:16Analyzing heap dumps
  13. 23:55Using heap histograms
  14. 24:39Java Flight Recorder
  15. 26:33Native memory tracking
  16. 27:47OS monitoring and core files
  17. 29:44Debugging native leaks
  18. 30:35AI troubleshooting assistant
  19. 32:00Conclusion
~/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.