~/talk

Heap sizing and GC tuning for Solr and friends

Talkat Berlin Buzzwords 2024 · 2024-06-09..06-11· [linux-and-operating-systems]
links:none on file
links:none on file
slides:none on file

Solr/Elasticsearch-style nodes need heap sized from measured peaks not rules of thumb: take highest peak and lowest peak and use twice the low as a baseline, keep Xmx and Xms equal and pre-touch to avoid resizing. If a heap OOM occurs, take a heap dump and inspect with Eclipse MAT to tell “need more heap” vs “GC fell behind.” Follow the ~30–32 GB pointer-compression hump (compressed pointers around 32GB); prefer G1 with target-pause and GC-time-ratio knobs, or ZGC (Java 21 generational) for very large heaps.

AI-written summary · about

  1. 0:00Introduction and architecture
  2. 3:27Understanding JVM heap
  3. 5:37Performance and cache tuning
  4. 8:11Sizing and monitoring
  5. 10:00Pointers and memory limits
  6. 11:51Diagnosing GC issues
  7. 13:35Garbage collector tuning
  8. 17:55Questions and answers
~/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.