弊ぼっちのPumaとSidekiqの使うメモリを抑えたい。まず現状は
~ $ printenv | grep RUBY_
(なし)
~ $ bundle exec ruby --version
ruby 4.0.1 (2026-01-13 revision e04267a14b) +PRISM [x86_64-linux]
~ $ bundle exec ruby -rpp -e 'pp GC.stat'
{count: 11,
time: 19,
marking_time: 15,
sweeping_time: 4,
heap_allocated_pages: 88,
heap_empty_pages: 0,
heap_allocatable_slots: 0,
heap_available_slots: 90241,
heap_live_slots: 81321,
heap_free_slots: 8920,
heap_final_slots: 0,
heap_marked_slots: 64924,
heap_eden_pages: 88,
total_allocated_pages: 88,
total_freed_pages: 0,
total_allocated_objects: 197343,
total_freed_objects: 116022,
malloc_increase_bytes: 297595,
malloc_increase_bytes_limit: 16777216,
minor_gc_count: 8,
major_gc_count: 3,
compact_count: 0,
read_barrier_faults: 0,
total_moved_objects: 0,
remembered_wb_unprotected_objects: 0,
remembered_wb_unprotected_objects_limit: 431,
old_objects: 51894,
old_objects_limit: 86234,
oldmalloc_increase_bytes: 579429,
oldmalloc_increase_bytes_limit: 16777216}