Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 517 Bytes

File metadata and controls

21 lines (15 loc) · 517 Bytes

jemalloc

To control how jemalloc handles freed memory

MALLOC_CONF="narenas:2,dirty_decay_ms:1000,muzzy_decay_ms:1000,background_thread:true"

To Confirm MALLOC_CONF Was Applied

tr '\0' '\n' < /proc/$(pgrep -f sidekiq)/environ | grep MALLOC_CONF

Check Which Libraries Ruby is Linked Against

ruby -r rbconfig -e "puts RbConfig::CONFIG['MAINLIBS']"

Elsewhere

  1. malloc doubles ruby memory