~/talk

Save Java memory

Talkat JavaDay Kyiv 2015 · 2015-11-06..11-07· [java]
name:Jan Kotek
links:none on file
slides:none on file

Shows how to measure object footprints using runtime allocation, OOME counting, profilers (VisualVM, Flight Recorder) and Java Object Layout to get precise header, alignment and padding numbers; an Integer object costs ~20 bytes, a String + char[] ~45–60 bytes. Replaces boxed objects with primitive collections (fastutil/Trove style), uses off-heap Chronicle Map or packed bitfields, and reports typical wins: single-collection swaps cut RAM by ~30% and switching to primitives yields up to ~100% speedups while dramatically reducing GC pressure.

AI-written summary · about

  1. 0:00Introduction to optimization
  2. 2:05Measuring memory footprint
  3. 9:45Understanding object overhead
  4. 12:29Common class inefficiencies
  5. 18:11Advanced data representations
  6. 24:07Using primitive collections
  7. 32:47Off-heap serialization
  8. 35:00Conclusion and JIT impact
~/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.