~/talk

Troubleshooting Native Memory Issues in Java Applications

slides:none on file

Identifies native OutOfMemoryError as the JVM running out of C heap or native allocations and demonstrates concrete diagnostics: monitor RSS/PSS with ps/top/pmap, compare pmap snapshots, inspect JVM pools with JConsole/JMC, enable native memory tracker (NMT) to split JVM-internal allocations, use je_malloc + jeprof to heap‑profile native mallocs and valgrind with suppressions for external leaks. Shows a deflater native init consuming ~95% of allocations, notes NMT costs ~5–10% and je_malloc ~2%, and uses core files/GDB to find JNI code that never frees memory.

AI-written summary · about

  1. 0:00Intro
  2. 1:09What is a Native OutOfMemoryError ?
  3. 3:02Native memory leaks are hard to diagnose
  4. 6:11Confirm Native Memory Leak
  5. 7:43Heap or Non-Heap areas of the JVM
  6. 11:10Diagnose Native Memory Leaks
  7. 11:49Native Memory Leaks within the JVM - NMT
  8. 15:32Native Memory Leaks from Outside the JVM
  9. 16:19jemalloc
  10. 22:10valgrind
  11. 25:14pmap and core files
  12. 28:44Common scenarios
  13. 33:33Summary
~/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.